Use it when the symptom is “NFS Mount Failure”: work through the layers in order and stop at the first one that fails.
NFS Mount Failure
Trace client path → DNS/route → server NFS service → protocol version/port handling → export policy → mount/state → identity/permissions → server filesystem/backend.
1. NFS mount failure: export missing, client not allowed, firewall, version mismatch, DNS.
2. Use verbose mount.
3. Check server logs.
4. Check ID mapping for permission issues.
5. Retry.
client → network → server → export → mount
Context & applicabilityCommon mistakes · platform/version boundaries
A mount error shows access failed before a usable NFS mount existed; it does not automatically identify network, service, export, version or permission cause.
Suspicious evidence includes DNS/routing failure, blocked service ports, version mismatch, export denial, stale state or identity/permission errors after mount.
Operational reference
Fast context before you go deeper.
rpcinfo -p <server>Primary Commands
Configuration and operational commands for this Topic.
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 mount request → DNS/IP path → NFS service/version → export policy → mount/state → identity/permissions → server filesystem → backend
Healthy evidence shows successful intended-version mount, correct export policy and successful client file operation with expected identity mapping.
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.
- Server ping ≠ NFS service reachable.
- Export listed ≠ client is authorized to mount it.
- Mount success ≠ file permissions are correct.
- NFSv3 behavior ≠ NFSv4 namespace/state behavior.
mount -v <srv>:/path /mnt— verbose mountshowmount -e <srv>— exportsrpcinfo -p <srv>— services
ReferenceImportant terms & boundaries3 sections · depth on demand
Scope and what the checks show
A mount error shows access failed before a usable NFS mount existed; it does not automatically identify network, service, export, version or permission cause.
In depth
Separate the failure: network, RPC, export, permission or option
# mount -v -t nfs4 10.0.0.20:/export/data /mnt/data
mount.nfs4: timeout set for ...
mount.nfs4: mount(2): Connection timed out
# nc -zv 10.0.0.20 2049
# showmount -e 10.0.0.20 # NFSv3 servers; needs rpcbind/mountd
# rpcinfo -p 10.0.0.20 # NFSv3 services
The nfs(5) manual notes that NFSv4 uses port 2049 without consulting rpcbind when no port= is set, so NFSv4 needs fewer firewall openings than NFSv3.
Error to cause
| Message | Likely cause |
|---|---|
Connection timed out | Firewall, routing, server down |
access denied by server | Client IP/network not in the export |
No such file or directory | Wrong export path (NFSv4 pseudo-root paths differ from v3) |
Protocol not supported | Requested vers= not offered by the server |
Permission denied after mount | root squash, UID/GID mismatch, Kerberos |
Version and security
If vers= is not given, the client tries 4.2 first and negotiates down; if a specific version is given and the server does not support it, the mount fails. sec= takes sys, krb5, krb5i or krb5p, and the mount fails if the server supports none of them.
Boot-time failures
An NFS line in /etc/fstab must be ordered after the network. On systemd systems use _netdev and consider x-systemd.automount so a missing server does not block boot. Check systemctl status mnt-data.mount and journalctl -b -u mnt-data.mount.
*The mount timeout message illustrates an unsuccessful remote filesystem connection, not a recorded mount attempt.*
Method
NFS mount failures, by message:
| Message | Check |
|---|---|
mount.nfs: access denied by server | Export client list, path, exportfs -v |
No such file or directory | Export path (v4 pseudo root differs from v3 path) |
Connection timed out | Firewall: 2049 (v4), plus 111/mountd for v3 |
Protocol not supported | Version not enabled on server (/proc/fs/nfsd/versions) |
wrong fs type, bad option | nfs-utils/nfs-common not installed |
| Mount ok, files owned by nobody | idmap domain |
mount -v -t nfs -o vers=4.2 nfs01:/srv/projects /mnt/test
rpcinfo -t nfs01 nfs 4
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 Storage Troubleshooting → NFS Mount Failure. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/block/index.html · 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
Storage Troubleshooting → NFS Mount Failure proof map
Fast scope, dependency, failure-boundary and acceptance checks for Storage Troubleshooting → NFS Mount Failure.
| Troubleshooting boundary | What to verify | Proof limit |
|---|---|---|
| Scope / identity | Exact workload, object/device identity, affected hosts and incident window | Symptom naming alone is not root-cause proof |
| Dependency path | Client mount request → DNS/IP path → NFS service/version → export policy → mount/state → identity/permissions → server filesystem → backend | Healthy adjacent layers do not prove end-to-end health |
| Failure boundary | A mount error proves access failed before a usable NFS mount existed; it does not automatically identify network, service, export, version or permission cause. | Correlate evidence for the same operation and timestamps |
| Acceptance | Healthy evidence shows successful intended-version mount, correct export policy and successful client file operation with expected identity mapping. | Close only after the original workload/recovery test and regression check |