Kernel dump during boot

Johannes Totz johannes at jo-t.de
Sun Mar 14 00:41:05 UTC 2021


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)!



More information about the freebsd-hackers mailing list