We all know that, sometimes we get NFS Stale File Handle error when we try to access the NFS mount point on the client machine.
Error: ” mount.nfs: Stale file handle ”
This NFS Stale File Handle error occurs due to following reasons:
A file handle becomes stale when the file or directory referenced by the handle is removed by another host|server, while your client still holds an active reference to the object|file|directory. A typical example occurs when the current directory of a process, running on your client, is removed on the server (either by a process running on the server or on another client).
How to resolve this error:
Now consider below scenario you have got NFS server having hostname “myserver” . One of its mount point called /dmp is mounted using NFS on the client machine having hostname “client1”. Now you are getting “NFS Stale File Handle error” on the client machine “client1”. Now to remove “NFS Stale File Handle error” perform following course of action.
At NFS server:
1. See exported mounts on nfs server
#showmount -e myserver
2. Perform re-export from server
At NFS Client
1. Remount at destination
#mount -o remount /dmp
That’s all your NFS Stale File Handle error is resolved.