From owner-freebsd-bugs Sat Apr 27 17:30: 9 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 64CC237B41F for ; Sat, 27 Apr 2002 17:30:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3S0U3b94614; Sat, 27 Apr 2002 17:30:03 -0700 (PDT) (envelope-from gnats) Date: Sat, 27 Apr 2002 17:30:03 -0700 (PDT) Message-Id: <200204280030.g3S0U3b94614@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Crist J. Clark" Subject: Re: conf/37483: Memory dump after panic on machines with small disk Reply-To: "Crist J. Clark" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/37483; it has been noted by GNATS. From: "Crist J. Clark" To: Ivo Hazmuk 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