Use it when the storage question has been narrowed to NFS → Export. Start from the exact remote path and operation, then separate transport, protocol/session or mount state, identity/security, share/export authorization, filesystem authorization and backend I/O before changing configuration.
Export
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.
1. An export entry: path + client spec + options (rw, sync, root_squash, sec=).
2. Avoid * world exports.
3. no_subtree_check default.
4. Re-export after edits: exportfs -ra.
5. Document each export.
path + client + options → export
Context & applicabilityCommon mistakes · platform/version boundaries
An export can authorize a client to reach a namespace while the underlying filesystem still denies the operation or the backing storage is unhealthy.
Suspicious evidence: overlapping client rules, wrong network match, export points at unexpected mount, stale policy, or read-write export combined with filesystem denial.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
client identity/address → export match → export options/security → filesystem authorization → backing path
Healthy 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.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Export ≠ mount.
- Export allowed ≠ filesystem permission allowed.
- Export path ≠ guaranteed healthy backing filesystem.
- Read-write export ≠ every client/user can write.
exportfs -v— exports and optionsshowmount -e <server>— exports from clientcat /etc/exports— rules
ReferenceImportant terms & boundaries2 sections · depth on demand
Namespace and identity
An export can authorize a client to reach a namespace while the underlying filesystem still denies the operation or the backing storage is unhealthy.
In depth
An export line names a directory and which clients may mount it with which options:
# /etc/exports
/srv/projects 10.20.0.0/24(rw,sync,no_subtree_check,root_squash) backup01(ro,no_root_squash)
/srv/home *.corp.example.com(rw,sync,sec=krb5p)
| Option | Meaning |
|---|---|
rw / ro | Read-write or read-only |
sync / async | Commit to disk before replying (safe) vs reply early (fast, risk on crash) |
root_squash | Map client root to nobody (default) |
all_squash, anonuid= | Map every user to one UID |
no_subtree_check | Recommended; avoids issues with renamed files |
sec= | sys, krb5, krb5i, krb5p |
A space between client and ( changes the meaning: host (rw) exports read-write to the whole world.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in NFS → Export. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8881 · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
NFS → Export file-service map
Fast namespace, protocol, identity, authorization and proof boundaries for NFS → Export.
| 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 | An 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 |
| Acceptance | Healthy 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 |