π§ NFS Mount Troubleshooting Runbook
Use this flow top to bottom. Stop once the issue is resolved.
π΄ START β NFS mount issue reported
β¬οΈ
β Is the mount visible?
ls <mount_point>
β NO β Mount not present
β¬οΈ
π Check NFS server reachability
ping <nfs-server>
showmount -e <nfs-server>
β Fails β Network / server issue β Works β Continue
β¬οΈ
π Determine mount type
autofs
systemctl status autofs
journalctl -u autofs -f
cat /etc/auto.nfs
fstab
grep <mount_point> /etc/fstab
mount -a
β Errors β Fix configuration & retry β No errors β Continue
β¬οΈ
β Is the mount present but inaccessible?
ls <mount_point>
β Permission denied
β¬οΈ
π Check permissions & identity
ls -ln <mount_point>
On NFS server:
exportfs -v
β Fix UID/GID mismatch or export rules β¬οΈ Retry access
β Is access slow or hanging?
π YES β Timeouts or freezes
β¬οΈ
π Tune NFS options
Recommended:
rw,hard,proto=tcp,timeo=1200,retrans=5
Check:
- Network latency
- NFS server load
- Avoid
softmounts
β¬οΈ Retry access
β Unable to unmount?
umount <mount_point>
β βDevice or resource busyβ
β¬οΈ
π Find open files
lsof | grep <mount_point>
fuser -m <mount_point>
autofs only:
lsof | grep /nfs/<mount_name>
β οΈ Last resort:
umount -l <mount_point>
β Changes not persisting after reboot?
β¬οΈ
π Verify configuration source
fstab
grep <mount_point> /etc/fstab
autofs
cat /etc/auto.master
cat /etc/auto.nfs
systemctl restart autofs
β¬οΈ Reboot test if required
β Service or mount command fails?
β¬οΈ
π« Debug directly
autofs
autofs -f
journalctl -xe
fstab
mount -av
dmesg | tail
β END β Issue resolved
If unresolved:
- Check kernel logs
- Validate NFS server health
- Escalate with logs attached
π§ Operator Notes
- Prefer autofs for many or non-critical mounts
- Avoid boot-blocking mounts when possible
- Keep UID/GID consistent across environments
- Monitor active mounts:
grep nfs /proc/mounts