Pcornel
Storage

NFS

Cheat sheet · https://pcornel.dk/topic.php?topic=4133

Back to the Topic

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> — exports
  • nfsstat -m — client mounts
  • exportfs -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 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 boundaryA 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?