Jump to Navigation

149 - How to solve 'Stale NFS file handle'

This error is typically seen in a system which has active NFS mount point. The NFS protocol doesn’t define any way of communication for
any change of NFS server configuration. In this case, 'df' command starts showing this error ‘Stale NFS file handle’on the screen.
Such problems have no other choice but need to remount the NFS volume as the followings.

# ls mydir

ls: cannot access nfsdir: Stale NFS file handle

A normal unmount operation fails as shown below:

[root@server1 /]# umount /nfsdir
umount: /mydir: device is busy Stale NFS file handle.
[root@server1 /]#

So you can just unmount the NFS volume using “-f” command.

[root@server1 /]# umount -f /mydir
umount.nfs: Server failed to unmount '192.168.1.2:/mydir'
[root@server1 /]#

You can attempt to mount the NFS volume again if you are sure that it is mountable:

[root@server1 /]# mount 192.168.1.2:/mydir /mydir -t nfs

 

 

 

 



Main menu 2

Story | by Dr. Radut