Understanding the Error
Stale file handle
NFS: Stale NFS file handle
NFS file handle no longer valid (file/directory was removed or server restarted).
Fix 1: Remount NFS Share
# Unmount
sudo umount /mount/point
# If busy, force unmount
sudo umount -f /mount/point
sudo umount -l /mount/point # Lazy unmount
# Remount
sudo mount /mount/point
Fix 2: Remount with fstab
# Remount all from fstab
sudo mount -a
# Or specific
sudo mount -o remount /mount/point
Fix 3: Restart NFS Client Services
# Ubuntu/Debian
sudo systemctl restart nfs-common
sudo systemctl restart rpcbind
# CentOS/RHEL
sudo systemctl restart nfs-client
sudo systemctl restart rpcbind
Fix 4: Clear NFS Cache
# On client
echo 3 > /proc/sys/vm/drop_caches
# Reboot client if needed
Fix 5: Check Server Exports
On NFS server:
exportfs -v
# Is directory still exported?
sudo exportfs -ra # Re-export all
Fix 6: Use Hard Mount with Intr
In /etc/fstab:
server:/export /mount nfs hard,intr,timeo=600 0 0
Prevent Future Issues
- Don't delete directories while they are in use
- Use soft mounts or timeouts
- Regularly check NFS health