Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jun 2010 08:27:42 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-current@freebsd.org
Cc:        Garrett Cooper <yanefbsd@gmail.com>, David Rhodus <sdrhodus@gmail.com>
Subject:   Re: Auto doadump()
Message-ID:  <201006040827.42261.jhb@freebsd.org>
In-Reply-To: <AANLkTilZPOwgPITlgb_fH_9sGZJFlPA8AtHnLHHq3HO4@mail.gmail.com>
References:  <AANLkTilKLPfEfoSfjaXEO4s7L0o5KNHNad7gnFFM6Bjo@mail.gmail.com> <AANLkTilZPOwgPITlgb_fH_9sGZJFlPA8AtHnLHHq3HO4@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 03 June 2010 9:45:56 pm Garrett Cooper wrote:
> On Thu, Jun 3, 2010 at 2:30 PM, David Rhodus <sdrhodus@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     root@:/usr/obj/usr/src/sys/GE  amd64
> 
> dumpdev=AUTO in rc.conf has been broken for a while from what I've
> seen, despite what rc.conf(5) suggests:
> 
>      dumpdev     (str) Indicates the device (usually a swap partition) to
>                  which a crash dump should be written in the event of a system
>                  crash.  If the value of this variable is ``AUTO'', the first
>                  suitable swap device listed in /etc/fstab will be used as
>                  dump device.  Otherwise, the value of this variable is passed
>                  as the argument to dumpon(8).  To disable crash dumps, set
>                  this variable to ``NO''.
> 
> You have to explicitly note the dump device in /boot/loader.conf and
> have to reboot the box (otherwise it won't pick up the appropriate
> value via kenv). Kind of lame if you ask me...

Err, how is it broken?  It just worked for me just now on a box running HEAD.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006040827.42261.jhb>