How can I see logs in a server after a kernel panic hang ?

Posted by Low Kian Seong on Server Fault See other posts from Server Fault or by Low Kian Seong
Published on 2011-03-10T04:34:54Z Indexed on 2011/03/10 8:11 UTC
Read the original article Hit count: 330

I am running a production gentoo Linux machine, and recently there was a situation where the server hung in my co-located premises and when I got there I noticed that the server was hung on what appeared to be a kernel panic hang. I rebooted the machine with a hard reboot and was disappointed to find out that I could not find a shred of evidence anywhere on why the machine hung.

Is it true that when I do a hard reboot the messages itself will get lost or is there a setting I can do somewhere say in syslog-ng or maybe in sysctl to at least preserve the error log so that I can prevent such mishaps from happening in the future ? I am running a 2.6.x kernel by the way.

Thanks in advance.

© Server Fault or respective owner

Related posts about linux

Related posts about server