Linux – Can’t reboot Linux box; NFS hangs

linuxnfsUbuntu

I can't reboot my Ubuntu 9.04 x86_64 box. I just see the following, and then nothing happens. I've entered this several times now.

$ sudo reboot
[sudo] password for yang:
$
Broadcast message from yang@harvard.csail.mit.edu
        (/dev/pts/7) at 4:31 ...

The system is going down for reboot NOW!

Probably relevant information: my amd-managed NFS mounts have gone haywire, after the NFS/NIS servers (same host) became inaccessible for several hours. I can create fresh new NFS mounts just fine, but the existing ones are not responding (or more precisely, barely responding). E.g., ls on the directories hangs for minutes, and then fails with only some of the subdirectories actually getting listed (albeit in red) and others resulting in "No such file or directory" error messages.

It's because my NFS mounts have gone haywire that I'm trying to reboot (I tried unmounting these to no avail). I've been waiting for a reboot for three days now.

I'm running Ubuntu 9.04 with regular updates. I don't have physical access to the computer, so it's important that I be able to reboot it and not simply shut down. And BTW, if anyone knows how to deal with the hung NFS mounts without rebooting, that'd be good to know as well.

Thanks in advance for any help.

Best Answer

You could always try "reboot -f" or even "echo b > /proc/sysrq-trigger". That should reboot even the most stubbornly hung system.

Related Topic