Re: Auto doadump()

2010-06-04 Thread John Baldwin
On Thursday 03 June 2010 9:45:56 pm Garrett Cooper wrote: On Thu, Jun 3, 2010 at 2:30 PM, David Rhodus sdrho...@gmail.com wrote: Is there a rc.conf variable to automatically save core on a panic and reboot ? Setting dumpdev=AUTO doesn't seem to do the trick. # uname -a FreeBSD

Re: Auto doadump()

2010-06-04 Thread Alexander Best
maybe you could add a ddb(8) command to your crontab? i for example have this in my crontab: @reboot /sbin/ddb script 'kdb.enter.panic=textdump set; capture on; show pcpu; show allpcpu; bt; ps; show locks; show alllocks; show lockedvnods; alltrace; call doadump' cheers. -- Alexander Best

Auto doadump()

2010-06-03 Thread David Rhodus
Is there a rc.conf variable to automatically save core on a panic and reboot ? Setting dumpdev=AUTO doesn't seem to do the trick. # uname -a FreeBSD 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Thu Jun 3 20:00:22 UTC 2010 root@:/usr/obj/usr/src/sys/GE amd64 #

Re: Auto doadump()

2010-06-03 Thread Benjamin Kaduk
On Thu, 3 Jun 2010, David Rhodus wrote: Is there a rc.conf variable to automatically save core on a panic and reboot ? Setting dumpdev=AUTO doesn't seem to do the trick. dumpdev merely controls which swap device the dump gets written to. You probably want to either compile your kernel with

Re: Auto doadump()

2010-06-03 Thread Bill Moran
In response to David Rhodus sdrho...@gmail.com: Is there a rc.conf variable to automatically save core on a panic and reboot ? Setting dumpdev=AUTO doesn't seem to do the trick. Did you also set dumpdir? Is dumpdir set to a location with enough disk space to hold a kernel dump? Is the swap

Re: Auto doadump()

2010-06-03 Thread Garrett Cooper
On Thu, Jun 3, 2010 at 2:30 PM, David Rhodus sdrho...@gmail.com wrote: Is there a rc.conf variable to automatically save core on a panic and reboot ? Setting dumpdev=AUTO  doesn't seem to do the trick. # uname -a FreeBSD  9.0-CURRENT FreeBSD 9.0-CURRENT #0: Thu Jun  3 20:00:22 UTC 2010