Date: Thu, 3 Jun 2010 18:45:56 -0700 From: Garrett Cooper <yanefbsd@gmail.com> To: David Rhodus <sdrhodus@gmail.com> Cc: current@freebsd.org Subject: Re: Auto doadump() Message-ID: <AANLkTilZPOwgPITlgb_fH_9sGZJFlPA8AtHnLHHq3HO4@mail.gmail.com> In-Reply-To: <AANLkTilKLPfEfoSfjaXEO4s7L0o5KNHNad7gnFFM6Bjo@mail.gmail.com> References: <AANLkTilKLPfEfoSfjaXEO4s7L0o5KNHNad7gnFFM6Bjo@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 reb=
oot ?
> Setting dumpdev=3D"AUTO" =A0doesn't seem to do the trick.
>
> # uname -a
> FreeBSD =A09.0-CURRENT FreeBSD 9.0-CURRENT #0: Thu Jun =A03 20:00:22 UTC
> 2010 =A0 =A0 root@:/usr/obj/usr/src/sys/GE =A0amd64
dumpdev=3DAUTO 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 sys=
tem
crash. If the value of this variable is ``AUTO'', the fir=
st
suitable swap device listed in /etc/fstab will be used as
dump device. Otherwise, the value of this variable is pas=
sed
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...
HTH,
-Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTilZPOwgPITlgb_fH_9sGZJFlPA8AtHnLHHq3HO4>
