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.
nfs server *** not responding
nfs server *** not responding
nfs server *** not responding
nfs server *** not responding
nfs server *** not responding
nfs server *** not responding

I am getting this repeatedly and machine is hung. How can I stop that request?

I cannot initiate a new ssh connection also.

share|improve this question
add comment

4 Answers 4

up vote 2 down vote accepted

You can try using umount -f to forcibly unmount. Depending on disk activity, it hasn't always worked for me; sometimes I've had to cycle the machine (unless I could restore the service).

For the future, you can look into whether mount_nfs arguments -i (interruptible), -s (soft mount), or -Rn (maximum retry count) are appropriate for your environment.

I wasn't able to quickly tease out a gold standard for this, but here are some related items:

share|improve this answer
add comment

Mike's answer is correct. I would add, that lsof is helpful to see what processes have files open on the NFS mount. I've always had to kill -9 those pids and quickly umount -f immediately after. Sometimes it doesn't work and you have to reboot and reset.

share|improve this answer
add comment

umount -l /mnt/nfs is very handy in situations like this as it will basically umount and ask questions later. What it does is immediately umount the file system, and leave any open files hangining. As it can it will kill off any open files to the dead nfs mount.

share|improve this answer
1  
Also, be careful not to "tab" into the NFS mount when doing this as it will freeze!! –  Niall Donegan Mar 7 '11 at 18:34
add comment

Getting to a point where you can manipulate fstab is important here.

You will need to boot the machine with a rescue disk, then edit the /etc/fstab to remove the line that is automounting the volume. Then you should be able to restart the machine and make appropriate changes mentioned by the other posters.

share|improve this answer
    
Sorry may have misread the question. I thought, for some reason, that the machine was hanging during boot. Sorry if it isn't. –  Mike Mar 7 '11 at 19:14
add comment

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.