Date: Sat, 27 Apr 2002 17:30:03 -0700 (PDT) From: "Crist J. Clark" <cjc@FreeBSD.ORG> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/37483: Memory dump after panic on machines with small disk Message-ID: <200204280030.g3S0U3b94614@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR conf/37483; it has been noted by GNATS.
From: "Crist J. Clark" <cjc@FreeBSD.ORG>
To: Ivo Hazmuk <ivo@vutbr.cz>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/37483: Memory dump after panic on machines with small disk
Date: Sat, 27 Apr 2002 17:18:47 -0700
On Fri, Apr 26, 2002 at 01:09:02PM +0200, Ivo Hazmuk wrote:
[snip]
> >How-To-Repeat:
> Install FreeBSD on small disk (200MB) and provoke kernel panic.
> If variable $dumpdev is "NO" kernel dumps memory to any filesystem.
> On small disk it can destroy this filesystem.
When 'dumpdev="NO"', the dumpon(8) is not set to anything.
> >Fix:
> Add following lines to /etc/rc:
> 389,391d388
> < [Oo][Ff][Ff])
> < /sbin/dumpon -v off
> < ;;
>
> If you want disable dumping set variable "dumpdev" to "OFF" in
> /etc/rc.conf or /etc/rc.conf.local:
> dumpdev="OFF"
Setting it to "NO" already disables it (by never enabling it). If you
are getting crash dumps even though dumpon(8) is never set, something
is wrong.
And all of this is moot. If you put,
dumpdev="off"
In rc.conf(5) today, the code in rc(5),
case ${dumpdev} in
[Nn][Oo] | '')
dumpdev='NO'
;;
*)
/sbin/dumpon -v ${dumpdev}
;;
esac
Will run,
/sbin/dumpon -v off
For you. No need to add any code.
--
Crist J. Clark | cjclark@alum.mit.edu
| cjclark@jhu.edu
http://people.freebsd.org/~cjc/ | cjc@freebsd.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204280030.g3S0U3b94614>
