I have had a hard drive failure which has caused a lot of processes to go into an uninterruptable state ("D" state in ps- See this question). I cannot kill these processes, so I wish to shut down, but unfortunately halt is also now showing as "D" and the machine will not restart!

ben@jack:~$ ps aux | grep "halt"
root      7875  0.0  0.0   4148   700 ?        S    Mar08   0:00 /bin/sh /etc/rc0.d/S01halt stop
root      7880  0.0  0.0  10436   680 ?        D    Mar08   0:00 halt -d -f -i -p

How can I recover from this?

link|improve this question

feedback

1 Answer

up vote 3 down vote accepted

If your system has it enabled, you can probably use Magic SysRq to force a shutdown or reboot. Otherwise hopefully you have a network-accessible power supply you can log into? Then you can power-cycle the outlet the host is connected to.

Or maybe you have iLO or ipmi on the box, and you can log in to one of those to force a power cycle?

And of course as a last resort, it's time to send a flunky onsite.

link|improve this answer
1  
echo b > /proc/sysrq-trigger – Steven Mar 9 '11 at 1:19
Spot-on, the print screen key has never been so useful! Thanks! – Ben Hymers Mar 9 '11 at 1:34
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.