LWN.net Logo

Persistent storage for a kernel's "dying breath"

Persistent storage for a kernel's "dying breath"

Posted Mar 24, 2011 13:39 UTC (Thu) by rwmj (subscriber, #5474)
Parent article: Persistent storage for a kernel's "dying breath"

On ordinary PCs, can RAM be reserved that is preserved across a reboot?

I'd love this feature, if it was able to tell me why some box silently rebooted overnight.

Rich.


(Log in to post comments)

Persistent storage for a kernel's "dying breath"

Posted Mar 24, 2011 13:57 UTC (Thu) by mjg59 (subscriber, #23239) [Link]

Not reliably, no. The only persistent storage that's guaranteed on a BIOS-based PC is the real time clock, and there's not really enough space there. EFI actually helps here(!), although right now we don't implement the bits of the spec that cover this.

Persistent storage for a kernel's "dying breath"

Posted Apr 1, 2011 19:20 UTC (Fri) by cbf123 (guest, #74020) [Link]

If the vendor provided storage for ERST, then pstore would work on a normal PC.

If no hardware storage is available, the next best option is to use "kexec -p" to set up a recovery kernel that uses kexec to take over on a panic. The init scripts can then be modified to detect when they're running under the recovery kernel, and they can just dumps the original kernel memory to disk and then reboot.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds