I have a server running on Centos 5.2 and is there any a better way to know why the server crashed or what it's doing at that time?
I am sorry I am a newbie and any help is appreciated~ Thanks
centoskernellinux
I have a server running on Centos 5.2 and is there any a better way to know why the server crashed or what it's doing at that time?
I am sorry I am a newbie and any help is appreciated~ Thanks
Best Answer
If you have experienced a kernel panic, you can set up a remote kernel console to capture all the data that might be lost on the local console (especially if the crash is from a non-maskable interrupt, which tends to reboot the system).
On the system that you expect might crash:
On the remote system, run (this requires that you have netcat installed):
This will capture all kernel output on the remote system. This runs at a much lower level (the same point in the kernel that writes to /dev/klog), so you may see the very last bit of information that the kernel outputs when it panics even if syslog et. al have stopped operating.