NFS Server
Cheat sheet · https://pcornel.dk/topic.php?topic=4135
Answer
The server accepts NFS requests, matches them to exported namespaces and security policy, evaluates credentials and filesystem authorization, then executes operations against local or clustered backing storage.
Remember
- NFS service running ≠ export available.
- Export listed ≠ client authorized.
- Server filesystem mounted ≠ backend healthy.
- RPC response ≠ durable write completion for every workload semantic.
First checks
systemctl status nfs-server— serviceexportfs -v— active exports with optionscat /etc/exports— configuration
Verify in this order
/etc/exports → exportfs → nfsd → clients
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 Server 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 | Server process health proves the protocol endpoint exists, not that the requested export, permissions, backing path or storage durability are correct. | Correlate client, network, server and filesystem evidence for the same operation/time window |
| Acceptance | Healthy evidence: server listens for the intended NFS version, effective export policy matches the client, backing storage is healthy, and representative operations complete with 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=4135