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.
NFSv4
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.
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.
client → 2049 → nfsd v4 (sessions) → filesystem
Context & applicabilityCommon mistakes · platform/version boundaries
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.
Operational reference
Fast context before you go deeper.
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
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 · 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.
- 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.
nfsstat -m | grep vers— negotiated versioncat /proc/fs/nfsd/versions— server versionsnfsidmap -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 version | Adds |
|---|---|
| 4.0 | Stateful protocol, ACLs, Kerberos |
| 4.1 | Sessions, pNFS (parallel data paths), trunking |
| 4.2 | Server-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.
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 → NFSv4. 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 → NFSv4 file-service map
Fast namespace, protocol, identity, authorization and proof boundaries for NFS → NFSv4.
| 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 | Negotiating 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 |
| Acceptance | 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. | Close only after the original operation and server-side/read-back verification succeeds |