Dumpdev issue in 6.4-STABLE
Hello Stable I have an issue with a kernel panic on bootup where the dumpdev loader variable is ignored. I rebuilt my 6.4-STABLE amd64 kernel with the following options to try an track down an issue with a patch. options KDB options DDB options GDB options BREAK_TO_DEBUGGER options INVARIANTS options INVARIANT_SUPPORT options WITNESS options DEBUG_VFS_LOCK I then built and installed the resulting kernel.debug no issues there I then set in /boot/loader.conf dumpdev=/dev/da0s1b When I reboot and crash the box on the new kernel at the db prompt I cant call doadump to work or get an automated one from continue both complain about no dumpdev defined . Does anyone have a solution for this ? -- Mark Saad mark.s...@ymail.com ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Dumpdev issue in 6.4-STABLE
On 08/06/2010 02:24 PM, Mark Saad wrote: I then set in /boot/loader.conf dumpdev=/dev/da0s1b On 8-STABLE dumpdev should be defined in rc.conf(5). Not sure about 6-STABLE offhand. -- Benjamin Lee http://www.b1c1l1.com/ signature.asc Description: OpenPGP digital signature
Re: Dumpdev issue in 6.4-STABLE
wrote: I then set in /boot/loader.conf dumpdev=/dev/da0s1b On 8-STABLE dumpdev should be defined in rc.conf(5). Not sure about 6-STABLE offhand. The box dies before init is started so dumpdev in rc.conf is pointless. -- Benjamin Lee http://www.b1c1l1.com/ -- Mark Saad mark.s...@ymail.com ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Dumpdev issue in 6.4-STABLE
Mark Saad wrote: wrote: I then set in /boot/loader.conf dumpdev=/dev/da0s1b On 8-STABLE dumpdev should be defined in rc.conf(5). Not sure about 6-STABLE offhand. The box dies before init is started so dumpdev in rc.conf is pointless. I'm afraid you can't set dumpdev from the loader. In ancient times it was possible to hardcode the dumpdev via the kernel configuration, but that option is long gone, AFAIK. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I started using PostgreSQL around a month ago, and the feeling is similar to the switch from Linux to FreeBSD in '96 -- 'wow!'. -- Oddbjorn Steffensen ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Dumpdev issue in 6.4-STABLE
Mark Saad wrote: wrote: I then set in /boot/loader.conf dumpdev=/dev/da0s1b On 8-STABLE dumpdev should be defined in rc.conf(5). Not sure about 6-STABLE offhand. The box dies before init is started so dumpdev in rc.conf is pointless. I'm afraid you can't set dumpdev from the loader. In ancient times it was possible to hardcode the dumpdev via the kernel configuration, but that option is long gone, AFAIK. Oliver so how do I get a core file of what the kernel is doing ? What is the new way of doing this ? Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I started using PostgreSQL around a month ago, and the feeling is similar to the switch from Linux to FreeBSD in '96 -- 'wow!'. -- Oddbjorn Steffensen -- Mark Saad mark.s...@ymail.com ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Dumpdev issue in 6.4-STABLE
Mark, Perhaps remote GDB via serial console... http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug-online-gdb.html This explain it in very good detail. ~Paul On Fri, Aug 06, 2010 at 06:37:37PM -0400, Mark Saad wrote: Mark Saad wrote: wrote: I then set in /boot/loader.conf dumpdev=/dev/da0s1b On 8-STABLE dumpdev should be defined in rc.conf(5).? Not sure about 6-STABLE offhand. The box dies before init is started so dumpdev in rc.conf is pointless. I'm afraid you can't set dumpdev from the loader. In ancient times it was possible to hardcode the dumpdev via the kernel configuration, but that option is long gone, AFAIK. Oliver so how do I get a core file of what the kernel is doing ? What is the new way of doing this ? Best regards ???Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606,? Gesch?ftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M?n- chen, HRB 125758,? Gesch?ftsf?hrer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr:? http://www.secnetix.de/bsd I started using PostgreSQL around a month ago, and the feeling is similar to the switch from Linux to FreeBSD in '96 -- 'wow!'. ? ? ? ? -- Oddbjorn Steffensen -- Mark Saad mark.s...@ymail.com ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately and delete this message. See http://www.datapipe.com/about-us-legal-email-disclaimer.htm for further information on confidentiality and the risks of non-secure electronic communication. If you cannot access these links, please notify us by reply message and we will send the contents to you. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: Dumpdev issue in 6.4-STABLE
On Fri, Aug 06, 2010 at 03:37:37PM -0700, Mark Saad wrote: Mark Saad wrote: wrote: I then set in /boot/loader.conf dumpdev=/dev/da0s1b On 8-STABLE dumpdev should be defined in rc.conf(5). Not sure about 6-STABLE offhand. The box dies before init is started so dumpdev in rc.conf is pointless. I'm afraid you can't set dumpdev from the loader. In ancient times it was possible to hardcode the dumpdev via the kernel configuration, but that option is long gone, AFAIK. Oliver so how do I get a core file of what the kernel is doing ? What is the new way of doing this ? Use of dumpdev in /etc/rc.conf is utilised by /etc/rc.d/dumpon. This rc script runs /sbin/dumpon, specifying the device, which tells the kernel what device to dump stuff to using an ioctl() call for DIOCSKERNELDUMP. There doesn't appear to be a way to make an ioctl call from within DDB. I would say you're basically out of luck; someone on freebsd-hackers may know of a secret way. Otherwise I would say DDB needs to be extended to provide a dumpdev command or something along those lines which would do the ioctl() equivalent. You can drop to DDB interactively by pressing Control-Alt-Escape. You can examine the system state from there, but even call doadump probably won't work given that the kernel doesn't know what dump device to use (re: the ioctl() call above). -- | Jeremy Chadwick j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org