Pcornel
Storage · NFS

Export

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

Back to the Topic

Answer

An NFS export is a directory the server shares, together with rules for which clients may mount it and how (read-only, root squash, security mode). The export rules are checked first; normal file permissions apply after that.

Remember

  • Export ≠ mount.
  • Export allowed ≠ filesystem permission allowed.
  • Export path ≠ guaranteed healthy backing filesystem.
  • Read-write export ≠ every client/user can write.

First checks

  • exportfs -v — exports and options
  • showmount -e <server> — exports from client
  • cat /etc/exports — rules

Verify in this order

path + client + options → export

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 → Export 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 boundaryAn export can authorize a client to reach a namespace while the underlying filesystem still denies the operation or the backing storage is unhealthy.Correlate client, network, server and filesystem evidence for the same operation/time window
AcceptanceHealthy evidence: effective export policy selects the intended client, exposes the intended server path with expected access/security options, and client operations map to correct ownership.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=4137

Confirmation

Confirm action

Continue?