Storage · NFS
NFS Client
Cheat sheet · https://pcornel.dk/topic.php?topic=4136
Answer
Applications use a local pathname while the NFS client maintains mount, protocol, caching and state semantics and forwards operations to the remote server.
Remember
- Mounted path ≠ server reachable now.
- Client cache hit ≠ server-side current state.
- Client UID/GID ≠ automatically trusted server identity.
- One working mount ≠ all clients or paths healthy.
First checks
nfsstat -m— mounts and optionsmount -t nfs4 <srv>:/path /mnt -o vers=4.2,hard— mountfindmnt -t nfs4— mounted
Verify in this order
client mount → RPC → server
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 Client 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 | Client mount metadata proves configuration/state on the client, not current server reachability, authorization or backend persistence. | Correlate client, network, server and filesystem evidence for the same operation/time window |
| Acceptance | Healthy evidence: mount source/version/options are expected, request/response traffic is clean, identities map correctly and application operations succeed. | 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=4136