Use it when the storage question has been narrowed to NFS → NFS Troubleshooting. Start from the exact remote path and operation, then separate transport, protocol/session or mount state, identity/security, share/export authorization, filesystem authorization and backend I/O before changing configuration.
NFS Troubleshooting
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.
1. Not responding: network, server down, firewall.
2. Permission denied: export rules, squash, ID mapping.
3. Stale file handle: export/filesystem changed.
4. Slow: retransmits, sync writes.
5. Fix the layer and remount if needed.
client → network → server → export → filesystem
Context & applicabilityCommon mistakes · platform/version boundaries
Troubleshooting is resolved only when the first failing step is explained and the original workload succeeds; service restart or remount alone is not evidence of root cause.
Suspicious evidence: fix is only a restart/remount, symptom moved to another client, errors recur under load or no evidence explains why the failure occurred.
Operational reference
Fast context before you go deeper.
nfsstat -mPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
symptom/time → pathname/mount → NFS client/state → network → server/export → identity/permissions → filesystem → backend → original-test verification
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.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Timeout ≠ permission problem.
- Permission denied ≠ transport failure.
- Stale file handle ≠ server disk failure automatically.
- Remount/restart success ≠ durable root cause.
rpcinfo -p <server>; showmount -e <server>— services/exportsdmesg | grep -i nfs— "server not responding", stale handletcpdump -i <if> port 2049— traffic
ReferenceImportant terms & boundaries3 sections · depth on demand
Namespace and identity
Troubleshooting is resolved only when the first failing step is explained and the original workload succeeds; service restart or remount alone is not evidence of root cause.
In depth
Hangs, stale handles and slow I/O are client-option questions too
Mount failures are one class of NFS problem. Once mounted, most incidents come from timeouts, retransmissions and server-side changes.
hard vs soft
The nfs(5) manual documents hard as the default: requests retry indefinitely. soft (EIO) and softerr (ETIMEDOUT) give up after retrans retransmissions, and the manual warns that a soft timeout can cause silent data corruption in certain cases.
| Option | Documented meaning |
|---|---|
timeo=n | Time before retry, in tenths of a second; TCP default 600 (60 s) |
retrans=n | Retries before further recovery; default 2 for TCP |
proto= | Transport; for NFSv4 tcp is the default |
Look at the client counters
# nfsstat -c
# mountstats /mnt/data
# cat /proc/self/mountinfo | grep nfs
# journalctl -k | grep -i "nfs: server"
nfs: server 10.0.0.20 not responding, still trying
nfs: server 10.0.0.20 OK
not responding, still trying followed by OK is a hard mount riding through a server or network interruption.
Symptom table
| Symptom | Cause | Action |
|---|---|---|
Processes in D state | Hard mount waiting for server | Restore server/network; avoid soft for data |
Stale file handle | Export moved, file system re-created on server | Remount; check server-side change |
| Slow writes | Sync export, small wsize, network loss | Check mountstats RTT and retransmits |
Files owned by nobody | NFSv4 ID mapping domain mismatch | Align Domain in idmapd.conf on both sides |
Measure with the same file sizes and access pattern the application uses before changing rsize/wsize.
*The kernel messages demonstrate a server interruption followed by recovery; they are not captured client logs.*
Method
| Error / symptom | Usual cause |
|---|---|
access denied by server while mounting | Client not in export list, wrong path, export not re-exported |
Stale file handle | Export or file removed/recreated, server filesystem changed |
Processes stuck in D state | Server unreachable with hard mount |
Files owned by nobody | idmap domain mismatch (v4) |
Permission denied as root only | root_squash |
| Mount hangs (v3) | rpcbind/mountd blocked by firewall |
showmount -e nfs01; rpcinfo -p nfs01
mount -v -t nfs4 nfs01:/srv/projects /mnt/test
journalctl -k | grep -i nfs
tcpdump -i any port 2049 -w nfs.pcap
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in NFS → NFS Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8881 · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
NFS → NFS Troubleshooting file-service map
Fast namespace, protocol, identity, authorization and proof boundaries for NFS → NFS Troubleshooting.
| 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 |