Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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