From owner-freebsd-current@FreeBSD.ORG Fri Jun 4 12:27:45 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94D68106568C for ; Fri, 4 Jun 2010 12:27:45 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 65B668FC12 for ; Fri, 4 Jun 2010 12:27:45 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 181B846B51; Fri, 4 Jun 2010 08:27:45 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 72C788A01F; Fri, 4 Jun 2010 08:27:44 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Date: Fri, 4 Jun 2010 08:27:42 -0400 User-Agent: KMail/1.12.1 (FreeBSD/7.3-CBSD-20100217; KDE/4.3.1; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Message-Id: <201006040827.42261.jhb@freebsd.org> Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Fri, 04 Jun 2010 08:27:44 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Garrett Cooper , David Rhodus Subject: Re: Auto doadump() X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2010 12:27:45 -0000 On Thursday 03 June 2010 9:45:56 pm Garrett Cooper wrote: > On Thu, Jun 3, 2010 at 2:30 PM, 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. > > > > # 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