Troubleshoot Linux NFS Client Hangs and Timeouts
Before you begin
- Applies to:Linux NFS clients, including Ubuntu and Red Hat Enterprise Linux (RHEL).
- Where to start:Open a shell on the affected NFS client. Use the server owner to check server health when needed.
- What you need:Have the affected mount point. The example uses /mnt/projects. For mountstats, use nfs-common on Ubuntu or nfs-utils on RHEL.
Guide tools
Troubleshooting Steps
Confirm which mount is affected
Start hereCheck the kernel’s mount table using findmnt’s kernel view. Confirm the source, target, version, and options. If the mount is managed by an automounter, distinguish the automount unit from the actual NFS mount.
What you should see · The client’s kernel lists the stalled NFS mount with its server, export, and target path.
If you see something else · If the target is absent, check the automounter or mount configuration. If it is present, record the source and continue to Step 2. Avoid walking the stalled directory to identify it.
findmnt --kernel -t nfs,nfs4 -o TARGET,SOURCE,FSTYPE,OPTIONSCorrelate the kernel message with the incident
Look for an NFS server not responding message and subsequent recovery around the incident. Compare client and server timelines in UTC. Check whether every client or only one client is affected.
sudo journalctl -k --utc --since '30 minutes ago' --no-pagerRead per-mount RPC statistics
Use the exact target listed in Step 01. Compare retransmissions, round-trip time, and execution time during ordinary activity. The first report can reflect cumulative history, so compare later interval reports. An idle mount may have too little activity for a useful comparison.
mountstats iostat 5 3 /mnt/projectsNarrow client, path, and server causes
Confirm the server name and address match the established mount. Check the selected network path from the client. Compare server load and storage latency with healthy clients. Retransmissions can reflect transport loss or an overloaded server. Treat the numbers as leads rather than proof.
Correct the confirmed dependency
Have the owner restore the network or server dependency and let pending work recover where possible. If the mount itself must change, quiesce dependent writers and preserve the established mount configuration. Use a maintenance window and confirm both sides expect the same export and security settings.
Confirm service and data recovery
VerifyCheck for resumed RPC activity and the end of repeat timeout messages. Test a known file or an approved small write when safe. Confirm the application completed any previously stuck operation. If a mount change regresses behavior, restore the approved settings through the planned recovery path.
Decide What to Do Next
| Finding | Next action |
|---|---|
| All clients fail together | Ask the server or network owner to check shared dependencies. |
| Only one client shows intermittent retransmits | Compare its route and local interface with a healthy client. |
References
Your feedback keeps these production procedures accurate and battle-tested.