LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to tell what causes kernel panic at restart/shutdown (http://www.linuxquestions.org/questions/linux-server-73/how-to-tell-what-causes-kernel-panic-at-restart-shutdown-4175448875/)

rjo98 02-06-2013 08:29 AM

How to tell what causes kernel panic at restart/shutdown
 
We have an old server we're spinning down for hopefully the last time, but for grins I wanted to restart it and fsck it just in case we needed to bring it up. So i issued the restart, then I checked the console and it had a kernel panic so I had to hard power it down and brought it back up. figured this may be a great learning experience for me though since the server is going away anyway.

If a server has a kernel panic, how would I go about telling what's causing it and how to fix it? Below are the last few entries in messages from before it panic'd.



Code:

Feb  5 12:04:57 ServerName vsftpd: vsftpd shutdown succeeded
Feb  5 12:04:57 ServerName xinetd[3428]: Exiting...
Feb  5 12:04:57 ServerName xinetd: xinetd shutdown succeeded
Feb  5 12:04:57 ServerName acpid: acpid shutdown succeeded
Feb  5 12:04:57 ServerName crond: crond shutdown succeeded
Feb  5 12:04:57 ServerName autofs: Stopping automount:
Feb  5 12:04:57 ServerName autofs: automount shutdown succeeded
Feb  5 12:04:57 ServerName autofs:
Feb  5 12:04:57 ServerName autofs:
Feb  5 12:04:57 ServerName rc: Stopping autofs:  succeeded
Feb  5 12:04:57 ServerName ntpd[3446]: ntpd exiting on signal 15
Feb  5 12:04:57 ServerName ntpd: ntpd shutdown succeeded
Feb  5 12:04:57 ServerName irqbalance: irqbalance shutdown succeeded
Feb  5 12:04:57 ServerName kernel: Kernel logging (proc) stopped.
Feb  5 12:04:57 ServerName kernel: Kernel log daemon terminating.
Feb  5 12:04:58 ServerName syslog: klogd shutdown succeeded
Feb  5 12:04:58 ServerName exiting on signal 15


vikky 02-07-2013 02:45 AM

go to single user mode and run fsck. This is may be due to the file corrupt or more uses of the cpu and check the services you are running.

rjo98 02-07-2013 07:59 AM

Yeah, I did that, but still had the problem. The server was missing a bunch of updates, and after I installed those, the server now boots normally. So I'm guessing one of them fixed or cleaned up whatever was wrong.

vikky 02-09-2013 12:59 PM

mainly issue is with the filesystem and inodes sometimes due to over usage of CPU or running of some process files were got corrupted.

please provide the logs if you are facing issue.

cheers


All times are GMT -5. The time now is 05:11 AM.