Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

NFSv4

Direct answer

NFSv4 clients operate through a protocol namespace and state model rather than the NFSv3 plus separate mount-service model. State, leases, sessions in v4.1+, callbacks and security flavor can all affect behavior beyond simple TCP reachability.

When to use this

Use it when the storage question has been narrowed to NFS → NFSv4. 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. NFSv4: stateful, single port 2049, compound ops, delegations, ACLs.

2. v4.1 adds sessions and pNFS; v4.2 server-side copy, sparse files.

3. Needs ID mapping (domain) for names.

4. Grace period after server restart.

5. Kerberos recommended.

Operational verification

client → 2049 → nfsd v4 (sessions) → filesystem

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

Negotiating NFSv4 shows protocol compatibility, but it does not show optional feature support, correct namespace mapping, Kerberos configuration, lock recovery or application consistency.

Suspicious evidence: wrong pseudo-root path, state recovery loops, callback/session problems, security flavor mismatch or assumptions that an optional v4.2 feature must exist.

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
Scope / prerequisiteUse it when the storage question has been narrowed to NFS → NFSv4. Start from the exact remote path and operation, then…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
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

application → NFSv4 client state → COMPOUND/session/transport → server namespace/state → filesystem → backend

Healthy evidence: intended minor version/security are negotiated, namespace resolves correctly, stateful open/lock behavior is stable and representative I/O completes without lease/session recovery errors.

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
  • NFSv4 ≠ NFSv3 with only a different port.
  • TCP 2049 reachable ≠ NFSv4 state/session healthy.
  • NFSv4.0 ≠ NFSv4.1 sessions.
  • NFSv4.2 feature support ≠ every optional extension implemented.
Key checks
  • nfsstat -m | grep vers — negotiated version
  • cat /proc/fs/nfsd/versions — server versions
  • nfsidmap -c; cat /etc/idmapd.conf — ID mapping
ReferenceHow it works1 section · depth on demand

How it works

How it works: Remote file I/O crosses client name/routing/authentication, mount/session negotiation, protocol permissions/locking/caching, server filesystem and backend storage.

ReferenceImportant terms & boundaries2 sections · depth on demand

Namespace and identity

Negotiating NFSv4 shows protocol compatibility, but it does not show optional feature support, correct namespace mapping, Kerberos configuration, lock recovery or application consistency.

In depth

NFSv4 uses one TCP port (2049), a pseudo-filesystem root, compound operations, built-in locking with leases, delegations (clients cache files they alone use) and string-based user identities (user@domain).

Minor versionAdds
4.0Stateful protocol, ACLs, Kerberos
4.1Sessions, pNFS (parallel data paths), trunking
4.2Server-side copy, sparse files, SEEK_HOLE, labelled NFS
mount -t nfs4 -o vers=4.2 nfs01:/ /mnt        # shows the pseudo root
cat /proc/fs/nfsd/versions

After a server restart, clients get a grace period (default 90 s) to reclaim locks; new opens wait during it, which looks like a short hang.

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 → NFSv4. 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
nfsv4nfs version 4nfsv4.1nfsv4.2
Embedded reference data

Quick lookup tables

NFS → NFSv4 file-service map

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

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 boundaryNegotiating NFSv4 proves protocol compatibility; it does not prove optional feature support, correct namespace mapping, Kerberos configuration, lock recovery or application consistency.Correlate client, network, server and filesystem evidence for the same operation/time window
AcceptanceHealthy evidence: intended minor version/security are negotiated, namespace resolves correctly, stateful open/lock behavior is stable and representative I/O completes without lease/session recovery errors.Close only after the original operation and server-side/read-back verification succeeds
Confirmation

Confirm action

Continue?