Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 2021 00:40:56 +0000
From:      Johannes Totz <johannes@jo-t.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Kernel dump during boot
Message-ID:  <s2jm2p$5mc$1@ciao.gmane.io>
In-Reply-To: <fe6561ba-6daa-68b6-9bc8-abe0ae647166@grosbein.net>
References:  <s2ipk9$13kq$1@ciao.gmane.io> <fe6561ba-6daa-68b6-9bc8-abe0ae647166@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 14/03/2021 00:01, Eugene Grosbein wrote:
> 13.03.2021 23:35, Johannes Totz wrote:
> 
>> Hey everyone,
>>
>> is there a way to dump the kernel from DDB?
> 
> Try this:
> 
> call doadump
> 
>> I've got a panic during boot, before init is started but after geom and friends are up. So dumpdev hasnt been set yet.
>> Can I hardcode it somewhere? Setting kern.shutdown.dumpdevname in loader.conf doesn't seem to work.
> 
> It should work. It worked for me in 11.4. For example:
> 
> dumpdev="/dev/label/swap"
> 
> Later, in multiuser:
> 
> $ sysctl kern.shutdown.dumpdevname
> kern.shutdown.dumpdevname: label/swap

Ah yes, a simple dumpdev did the trick... (how did I miss that...)

Thanks Eugene and Jordan (who replied off-list)!




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?s2jm2p$5mc$1>