NFS
Cheat sheet · https://pcornel.dk/topic.php?topic=4133
Answer
An NFS workload resolves a server and export, establishes protocol access, presents a mount in the client namespace, sends file operations using negotiated NFS semantics and credentials, and relies on the server filesystem plus backend storage for durable data.
Remember
- NFS ≠ block storage or SAN.
- NFS mount success ≠ file permissions or application health.
- Network reachability ≠ export authorization.
- NFS availability ≠ backend filesystem or media health.
First checks
showmount -e <server>— exportsnfsstat -m— client mountsexportfs -v (server)— active exports
Verify in this order
client → NFS RPC (2049) → server export → 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 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 | A reachable NFS service or successful mount proves only part of the path; it does not prove correct authorization, lock/state behavior, durable backend writes or application consistency. | Correlate client, network, server and filesystem evidence for the same operation/time window |
| Acceptance | Healthy evidence: expected export is reachable with the intended NFS version/security behavior, the mount maps to the correct server path, identity/permissions are correct, and representative read/write/read-back 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=4133