From owner-freebsd-current@FreeBSD.ORG Fri Jun 4 01:45:58 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C3421065673 for ; Fri, 4 Jun 2010 01:45:58 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id D7C308FC08 for ; Fri, 4 Jun 2010 01:45:57 +0000 (UTC) Received: by vws19 with SMTP id 19so338239vws.13 for ; Thu, 03 Jun 2010 18:45:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=A8hjkcc1eBlIrOv0/y/M/GgFNMjfnhFmWPY45zfMR5M=; b=fizIvtQHu8BYbKSlnh7qA/fiuKDDtKEizg8elAqHLz5nct5MNjD1YyhlhOLjnbgYqI tbfXls3fY4l1wazODYmlTbgkWCOZjrjKR3gtxKXErHrD0NRp1qDhRwzd0b4IWYH9xr8+ ss1+edn9/1xnLwCzj9meh5bWFS5pCOvx1gHLo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=LbGMpux1zz172ynpY6TK1ALrCFYTTtAOYo7gqrND4fRrHpTt07tCNG1JaswhzqHmDx aFhPAG2lrBs5moBmpMNaA/8SqbL9EkuuMzhUaZiaCSsCDi7eOtybLbMsr/Xt9esx9FM3 W4y9oBTKeRSrumxDN5piZAqEsVXt7EijQsHB8= MIME-Version: 1.0 Received: by 10.224.95.199 with SMTP id e7mr5578228qan.68.1275615956463; Thu, 03 Jun 2010 18:45:56 -0700 (PDT) Received: by 10.229.233.74 with HTTP; Thu, 3 Jun 2010 18:45:56 -0700 (PDT) In-Reply-To: References: Date: Thu, 3 Jun 2010 18:45:56 -0700 Message-ID: From: Garrett Cooper To: David Rhodus Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: current@freebsd.org 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 01:45:58 -0000 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 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