Hard reboot of Server

You never want to do it, you should never need to, but sweet mary when you have to, beware of hangs.

2 November 2011 • 1 min read


Sometimes when you run a “sudo reboot now” a couple of processes can get stuck and cause the system to hang. It’s usually worth creating a new SSH connection before you start the boot and connect to the server. If the first reboot fails, run this in the second connection:

echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger

This will tell the system to perform an immediate reboot without running through the normal shutdown sequeneces.

Published on 2 November 2011


Other content you may be interested in....

You love to write tools for your systems, your external is Server Density and you write in PHP. Oh Hai.

4 min read

sdk monitoring

Use MongoDB to find a regex term inside field values.

1 min read

mongodb regex

bodged with ♥ in NCL, AMS, NAP, NYC, BOS and LDN