Troubleshooting stale NFS mount locking up the system.
by itsallgood from LinuxQuestions.org on (#4ZPWJ)
All,
I have an NFS export running on a server in another VLAN and I am mounting it on a computer in the DMZ. I don't know if that is relevant at all but the appropriate ports have been opened and I am able to successfully mount this filesystem on the computer in the DMZ.
I mention the DMZ thing because the NFS mount seems to be freezing up the computer it is mounted on and I wonder if that might have something to do with it. It mounts fine then I will go back to the computer after about 20 minutes or so and will navigate to the mount point... my system is frozen and I have to do a ctrl+c. Df -h also freezes up the system. Annoyingly the only way to fix this is to issue an umount -l /data/dir.
If I try to remount it using 'mount -t nfs -v -o "vers=3" nfsserver:/data/dir' it works. But again it's locked up after several minutes.
The only relevant messsage in /var/log/messages is
Code:'computer kernel: nfs: server nfsserver not responding, still tryingI have the appropriate entries in /etc/fstab and I have tried both the DNS name of the NFS server and the IP just in case there was something odd going on there, and both fail.
Other than this I am not really sure how to troubleshoot. Any suggestions are greatly appreciated.


I have an NFS export running on a server in another VLAN and I am mounting it on a computer in the DMZ. I don't know if that is relevant at all but the appropriate ports have been opened and I am able to successfully mount this filesystem on the computer in the DMZ.
I mention the DMZ thing because the NFS mount seems to be freezing up the computer it is mounted on and I wonder if that might have something to do with it. It mounts fine then I will go back to the computer after about 20 minutes or so and will navigate to the mount point... my system is frozen and I have to do a ctrl+c. Df -h also freezes up the system. Annoyingly the only way to fix this is to issue an umount -l /data/dir.
If I try to remount it using 'mount -t nfs -v -o "vers=3" nfsserver:/data/dir' it works. But again it's locked up after several minutes.
The only relevant messsage in /var/log/messages is
Code:'computer kernel: nfs: server nfsserver not responding, still tryingI have the appropriate entries in /etc/fstab and I have tried both the DNS name of the NFS server and the IP just in case there was something odd going on there, and both fail.
Other than this I am not really sure how to troubleshoot. Any suggestions are greatly appreciated.