From owner-freebsd-hackers@freebsd.org Thu Dec 22 07:31:52 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F443C8C434 for ; Thu, 22 Dec 2016 07:31:52 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 238C9649; Thu, 22 Dec 2016 07:31:51 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id uBM7QZFP071054; Wed, 21 Dec 2016 23:26:35 -0800 (PST) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id uBM7QZtJ071053; Wed, 21 Dec 2016 23:26:35 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201612220726.uBM7QZtJ071053@pdx.rh.CN85.dnsmgr.net> Subject: Re: Setting a dump device from db> ? In-Reply-To: <20161219213308.GA55919@wkstn-mjohnston.west.isilon.com> To: Mark Johnston Date: Wed, 21 Dec 2016 23:26:35 -0800 (PST) CC: Alan Somers , "freebsd-hackers@freebsd.org" X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Mailman-Approved-At: Thu, 22 Dec 2016 12:07:59 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2016 07:31:52 -0000 > On Mon, Dec 19, 2016 at 02:16:25PM -0700, Alan Somers wrote: > > Is it possible to set a dump device from loader.conf or from the db> > > prompt? I'm trying to investigate a panic in mpr(4), but I can only > > reproduce it during the boot, before rc(8) has set my dump device. It > > looks like ada(4) initializes before mpr(4), so I should be able to > > dump to an ada device, if only I can figure out how. If not, I > > suppose I'll have to try gdb over firewire. > > You can set "dumpdev=ada0p1" or so in loader.conf. See g_dev_init() and > init_dumpdev(). This should probably be documented in loader.conf(5). Please review and if OK commit Index: sys/boot/forth/loader.conf =================================================================== --- sys/boot/forth/loader.conf (revision 310132) +++ sys/boot/forth/loader.conf (working copy) @@ -101,6 +101,7 @@ #prompt="\\${interpret}" # Set the command prompt #root_disk_unit="0" # Force the root disk unit number #rootdev="disk1s1a" # Set the root filesystem +#dumpdev="disk1s1b" # Set a dump device early on for crashes during boot #tftp.blksize="1428" # Set the RFC 2348 TFTP block size. # If the TFTP server does not support RFC 2348, # the block size is set to 512. If the value -- Rod Grimes rgrimes@freebsd.org