NFS Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=4145
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/exportsdmesg | grep -i nfs— "server not responding", stale handletcpdump -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 boundary | What to verify | Proof limit |
|---|---|---|
| Endpoint / namespace | Correct client, server, export/share, path and negotiated protocol version | Reachability or namespace visibility does not prove authorization or backend health |
| Identity / security | Effective identity, protocol security state and export/share/filesystem authorization | Authentication or one permission layer does not prove complete file access |
| Failure boundary | Troubleshooting 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 |
| Acceptance | Healthy 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