Linux – NFS mount point is not being accessible after stopping NFS service

linuxmountnfsrhel6

I have shared a directory on my NFS server to another machine. I am successfully mounting the NFS Share and able to access.

After few days, I was supposed to stop the NFS service on the NFS server due to server maintenance. But unfortunately I did not unmount the NFS mount point on the NFS client.

Now, keeping NFS mount point in unmounted state, if I try to access the mount point as a local directory of NFS client, I could not access it and in fact the machine is hanging and I need to open a new session.

I even checked by starting the NFS service on the NFS server and even tried to mount from the client machine, but still the same issue persists.

Please help me in urgent.

Best Answer

Run a lazy unmount of the mount. This is accomplished with umount -l /mountpoint - That will work until you resolve your other issues.