Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

NFS Troubleshooting

Direct 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.

When to use this

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.

First 30 seconds

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.

Operational verification

client → network → server → export → filesystem

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
Network file storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformNetwork file storage · Linux / NFS
Key commandnfsstat -m
Scope / prerequisiteUse it when the storage question has been narrowed to NFS → NFS Troubleshooting. Start from the exact remote path and o…
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Storage command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Timeout ≠ permission problem.
  • Permission denied ≠ transport failure.
  • Stale file handle ≠ server disk failure automatically.
  • Remount/restart success ≠ durable root cause.
Key checks
  • rpcinfo -p <server>; showmount -e <server> — services/exports
  • dmesg | grep -i nfs — "server not responding", stale handle
  • tcpdump -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.

OptionDocumented meaning
timeo=nTime before retry, in tenths of a second; TCP default 600 (60 s)
retrans=nRetries 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

SymptomCauseAction
Processes in D stateHard mount waiting for serverRestore server/network; avoid soft for data
Stale file handleExport moved, file system re-created on serverRemount; check server-side change
Slow writesSync export, small wsize, network lossCheck mountstats RTT and retransmits
Files owned by nobodyNFSv4 ID mapping domain mismatchAlign 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.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Method

Error / symptomUsual cause
access denied by server while mountingClient not in export list, wrong path, export not re-exported
Stale file handleExport or file removed/recreated, server filesystem changed
Processes stuck in D stateServer unreachable with hard mount
Files owned by nobodyidmap domain mismatch (v4)
Permission denied as root onlyroot_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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docNetwork file storage current

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%
Terminology layer

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.

Aliases that resolve here
nfs troubleshootingnfs mount failurenfs permission timeout
Embedded reference data

Quick lookup tables

NFS → NFS Troubleshooting file-service map

Fast namespace, protocol, identity, authorization and proof boundaries for NFS → NFS Troubleshooting.

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
Confirmation

Confirm action

Continue?