CentOS 5.x
Hi all,
For some reason, my CentOS server didn't want to reboot after I issued the reboot and shutdown -r now commands. All I saw in the /var/log/messages logs were:
Aug 25 13:34:32 voltage-out shutdown[1784]: shutting down for system reboot
Aug 25 13:34:33 voltage-out init: Switching to runlevel: 6
What would cause this? A hung process? How can I best troubleshoot this if it comes up in the future?
-M
-
You should perform a
ps auxto see if any of the shutdown scripts are hung waiting for a process to finish. It should look something like this:/etc/rc6.d/K##procnameYou can try manually issuing a
killcommand for that hung script. Strange though, since there's a timeout set on the scripts where it will force a-KILLsignal to any leftover process.Also, what's the uptime of the server/box? I've experienced an issue in the past where a box that has an uptime of over a year refuses to shut down. In that case, I've killed each process manually, run
syncseveral times to flush all data to disk and forced a reboot (power cycle).Mikey B : @vmfarms thanks for the tip. That's exactly what I wanted to know. Uptime was over 300+ daysFrom vmfarms
0 comments:
Post a Comment