Pcornel
Storage · NFS

NFS Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=4145

Back to the Topic

Answer

Start with symptom and time, determine whether the failure is name/path, transport, mount/state, authorization, server filesystem or backend I/O, then collect correlated evidence before changing exports, identities or mounts.

Remember

  • Timeout ≠ permission problem.
  • Permission denied ≠ transport failure.
  • Stale file handle ≠ server disk failure automatically.
  • Remount/restart success ≠ durable root cause.

First checks

  • rpcinfo -p <server>; showmount -e <server> — services/exports
  • dmesg | grep -i nfs — "server not responding", stale handle
  • tcpdump -i <if> port 2049 — traffic

Commands

nfsstat -m
Inspect NFS client mount state. Focus fields: server/export, NFS version, mount flags, transport and client options.

Verify in this order

client → network → server → export → filesystem

Where it usually breaks

First mismatch in client identity/DNS → network transport → protocol session → authentication/authorization → export/share → backend filesystem → file operation; preserve identity/pre-state before mutation.

NFS → NFS Troubleshooting file-service map

File-service boundaryWhat to verifyProof limit
Endpoint / namespaceCorrect client, server, export/share, path and negotiated protocol versionReachability or namespace visibility does not prove authorization or backend health
Identity / securityEffective identity, protocol security state and export/share/filesystem authorizationAuthentication or one permission layer does not prove complete file access
Failure boundaryTroubleshooting closes only when the first failed boundary is explained and the original workload succeeds; service restart or remount alone is not evidence of root cause.Correlate client, network, server and filesystem evidence for the same operation/time window
AcceptanceHealthy evidence: the original failing operation now succeeds, identity and server-side persistence are correct, no correlated protocol/backend errors remain and adjacent regression checks pass.Close only after the original operation and server-side/read-back verification succeeds

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4145

Confirmation

Confirm action

Continue?