Ubuntu – How to get a kernel panic report

kernel-panicUbuntu

I have a server on datapipe clould. I am running ubuntu 12.04. My servers have been crashing in the sense that mmonit marks the server with a red dot and I cant ssh into the machine. This is due to chef-client. So…I want to reboot a machine so I can get the panic report logs. How do I get what I need so I can send to chef support?

Thanks

Best Answer

It is possible that in case of a kernel panic, last valuable entries are not written to the logs, but are lost.

I recommend the introduce yourself to LKCD (Linux Kernel Crash Dump) project in http://lkcd.sourceforge.net/. Ubuntu has additionally its own set of instructions available: https://wiki.ubuntu.com/Kernel/CrashdumpRecipe.

With this method the system basically boots from another kernel in case of a crash, saves the system state and reboots the system gracefully.

Best of luck :-)