Bug 206005

Summary: KDB should give a more helpful error message for encrypted swap
Product: Base System Reporter: Tony Narlock <tony>
Component: binAssignee: freebsd-bugs mailing list <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Tony Narlock 2016-01-07 16:04:09 UTC
On two systems running 11-CURRENT, I configured encrypted swap (both manually through shell and through the installer front end).  Both dumps I switched on the setting for dumping to dev, which added:


to /etc/rc.conf as expected.

However, when panics occur and dropped into KDB, 'dump' would not work:

   Cannot dump: no dump device specified

I ended up going around in circles for a while, until eventually I was explained it worked by dumping to swap, and I volunteered that my swap was an eli drive.

So since then, I reconfigured my system to use a swap drive without eli and now dump works.

I think KDB should give a more helpful message for encrypted swaps. KDB doesn't support dumping to encrypted swap. This confused me for quite a while, since there isn't much in handbooks / forums / lists about this shortcoming.