Today, when I df-h in the Linux system to view disk usage, an NFS client system error:Stale NFS file handle.
I checked the information and said it was when we were in the NFS client already mount the file or directory, on the NFS server suddenly removed or unexport, this will appear. For example, after NFS client mount is on the NFS server side of the directory, if the NFS server side unshare this directory. This error will occur on the NFS client side.
Workaround: Cancel the document or directory mount on the NFS client.
1. Use Fuser to find the process that consumes NFS shared directories or files.
Fuser-m-V $file _path
2. Kill the process.
Kill-9 $PID
3. Force Umount to unload the file directory already mount on the NFS client.
Umount-f $file _path
This article is from the "Lin XI" blog, please be sure to keep this source http://lutaoxu.blog.51cto.com/4224602/1591697
Workaround for Stale NFS file handle