Pcornel
Storage · NFS

NFS Fundamentals

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

Back to the Topic

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 stats
  • cat /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 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 boundaryNFS 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?