🧭 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:

⬇️ 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:


🧠 Operator Notes

grep nfs /proc/mounts