NFS Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=4134
Answer
NFS lets a client mount a directory from a server and use it like a local folder. Every operation still travels over the network and is checked against the server's export rules, user mapping and file permissions.
Remember
- Remote path appearance ≠ local filesystem ownership.
- Client cache ≠ durable server persistence.
- NFSv3 ≠ NFSv4 state and namespace behavior.
- File visibility ≠ write authorization.
First checks
rpcinfo -p <server>— RPC services (v3)nfsstat -s (server) / nfsstat -c (client)— operation statscat /proc/fs/nfsd/versions— versions enabled on server
Verify in this order
client RPC → server nfsd → filesystem
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 Fundamentals 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 | NFS abstracts remote files, but local-looking paths do not remove network, identity, server policy or backend failure boundaries. | Correlate client, network, server and filesystem evidence for the same operation/time window |
| Acceptance | Healthy evidence: client and server agree on version/security, mount identity matches the intended export, and metadata plus data operations behave as expected. | 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=4134