Pcornel
Storage · NFS

NFS Client

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

Back to the Topic

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 options
  • mount -t nfs4 <srv>:/path /mnt -o vers=4.2,hard — mount
  • findmnt -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 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 boundaryClient 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?