About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
A kernel log line such as nfs: server nfs01.example.com not responding, still trying means an NFS request to that server got no reply within the allowed time. With the default hard mount the client does not give up, so programs that touch the share wait, often in an uninterruptible state, until the server answers. When it does, the kernel logs nfs: server nfs01.example.com OK. The line is a symptom; the cause is the server, the network between the two, or the mount's transport settings.
What the error means
Reading the kernel's RPC client code, rpc_check_timeout in net/sunrpc/clnt.c (tag v6.12) logs %s: server %s not responding, still trying with the protocol name (nfs) and the server name, for a task that is not soft, once per call (flag RPC_CALL_MAJORSEEN). For a soft task the same function logs %s: server %s not responding, timed out instead, so a share mounted soft shows that wording. A later reply logs %s: server %s OK. The kernel rate-limits these messages (pr_notice_ratelimited), so repeated lines are fewer than the retries.
The nfs(5) manual explains the behaviour behind it:
timeo=nis the time in deciseconds the client waits for a response before it retries. For NFS over TCP the default is 600, which is 60 seconds, and the client "performs linear backoff", increasing the timeout bytimeoafter each retransmission up to 600 seconds.retrans=nis the number of retries before further recovery. If not set, the client tries each UDP request three times and each TCP request twice. The client generates a "server not responding" message afterretransretries, then attempts further recovery depending on whetherhardapplies.hardis the default. The manual says that with it, "NFS requests are retried indefinitely". Withsoftorsofterr, the client fails the request afterretransretransmissions and returns the error EIO (soft) or ETIMEDOUT (softerr).- The manual warns: "A so-called "soft" timeout can cause silent data corruption in certain cases", so soft options are for cases where client responsiveness matters more than data integrity.
intris documented as provided for backward compatibility and ignored after kernel 2.6.25.
The manual does not give the total wait before the first message. It depends on the transport, timeo, retrans and the backoff, so measure from the log timestamps instead of calculating it.
Different NFS problems produce different messages. For a stale handle see NFS "Stale file handle": what changed on the server and how to remount, and for a refused mount see mount.nfs: access denied by server while mounting: check the export, the client address, the source port and the NFS version. The subject here is the wait.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| The NFS server is down, rebooting or its NFS service stopped | The message repeats until the server returns | The server's own console and service state; no TCP connection to port 2049 on the client |
| The network path drops or delays packets (firewall, switch, link fault, MTU) | The message comes and goes, with OK lines in between |
ss shows retransmissions or no connection; the same delay appears to other services on that server |
| The server is overloaded or its storage stalls | The server answers, slowly | The server's own load and disk latency; messages cluster at busy times |
| The mount uses UDP | More timeouts under loss; the manual warns about UDP on high-speed links | nfsstat -m shows proto=udp |
| A name or address changed | The client keeps retrying a server that no longer answers there | The server name in the log resolves to a different address from before |
| Hard-mount waits are blocking applications | Processes stay in state D |
ps shows D in the state column for processes using the mount |
Prove the cause before changing anything
All of these only read.
1. Find the messages and their times.
journalctl -k -g 'not responding|server .* OK'
The journalctl manual says -k shows only kernel messages and -g filters on a regular expression. A good result shows short gaps: a not responding line followed soon by an OK line. A bad result shows a not responding line with no OK after it; the server has not answered since.
2. Show how the share is mounted.
findmnt -t nfs,nfs4
nfsstat -m
The findmnt manual says -t limits the output to the listed file-system types. The nfsstat manual says -m prints information about each mounted NFS file system, with flags as given to mount. Look for hard or soft, proto=, timeo=, retrans= and the NFS version.
3. Is there a connection to the server?
ss -tn '( dport = :2049 )'
The nfs(5) manual gives 2049 as the standard NFS port. The ss manual documents dport expressions. A good result shows an established connection to the server's address. No connection while a hard mount waits points at the server or the path.
4. Which processes are stuck?
ps -eo pid,stat,wchan,args
The ps manual says state D is uninterruptible sleep, usually I/O. A few processes in D that use the mount match a hard-mount wait. Many unrelated processes in D point at a wider problem, such as storage on the client itself.
5. Check from the server side. On the NFS server, read its own log, the state of the NFS service and the disk and network load at the times from step 1.
Fix
Server or network faults
Restore the server or the path. Programs waiting on a hard mount resume by themselves when the server answers, and the kernel logs OK. This is the fix to prefer, because it keeps data integrity.
Detach a mount whose server will not return soon
First save the current state of the mounts:
findmnt -t nfs,nfs4 > /root/nfs-mounts-before.2026-12-01.txt
nfsstat -m > /root/nfs-nfsstat-before.2026-12-01.txt
Disruptive step: the next command forces an unmount of the share. Programs that have files open on it lose access, and unwritten data for that share can be lost.
The umount manual says -f forces "an unmount (in case of an unreachable NFS system)", does not guarantee that the command does not hang, and recommends absolute paths without symbolic links. Use the mount point shown by findmnt:
umount -f /mnt/data
To back out the forced unmount, mount the share again by its mount point once the server answers. This needs a matching line in /etc/fstab, and the saved findmnt output shows the options it used:
mount /mnt/data
findmnt -t nfs,nfs4
If the forced unmount does not complete, the manual says -l is a lazy unmount that detaches the file system "now" and cleans up when it is no longer busy. It adds that a reboot "would be expected in near future" when this is used on a network file system, and that the recommended use is preventing hangs at shutdown.
Disruptive step: the next command detaches the share from the file tree at once, while processes may still hold it, and the manual expects a reboot soon afterwards. Do it only after the forced unmount has failed, and plan the reboot:
umount -l /mnt/data
To back out the lazy unmount: the umount manual says remounts of the share "will not be possible" after it, so there is no remount step. The way back is the reboot the manual expects. That a reboot brings the share back is this guide's own statement, not the manual's, and it holds only if /etc/fstab has a matching line for the share without noauto; if so, the share mounts again at boot, and findmnt -t nfs,nfs4 compared with the saved file shows the result.
Change the transport to TCP
Only if nfsstat -m showed proto=udp. First save the file and the current mount options:
cp -p /etc/fstab /etc/fstab.2026-12-01
nfsstat -m > /root/nfs-nfsstat-before.2026-12-01.txt
Risk: the next edit changes how the share is mounted, and the unmount and mount that apply it make the share unavailable for a moment, so programs using it lose access. A wrong line can stop the mount, and at boot it can delay start-up while the client waits for the server.
In the share's line in /etc/fstab, set proto=tcp in the options. The manual says proto=netid selects the transport and that each transport has its own default retrans and timeo. Then unmount and mount the share so the option applies, and compare nfsstat -m with the saved file:
umount /mnt/data
mount /mnt/data
To undo it, restore the saved file, then unmount and mount again:
ls -l /etc/fstab.2026-12-01
cp -p /etc/fstab.2026-12-01 /etc/fstab
umount /mnt/data
mount /mnt/data
Soft mounts
Do not switch a share that holds writable data to soft to hide the wait. The manual's warning about silent data corruption applies. The manual's condition is to "use the soft or softerr option only when client responsiveness is more important than data integrity". Whether a read-only share where an error is acceptable meets that condition is this guide's own judgement, not a statement in the manual.
Example (illustrative): On app01, journalctl -k -g 'not responding|server .* OK' shows nfs: server nfs01 not responding, still trying at 02:10:04 and nfs: server nfs01 OK at 02:13:41 on three nights running. nfsstat -m shows a TCP hard mount with default timeouts. ss -tn '( dport = :2049 )' shows the connection missing during the gap. The storage team finds a nightly job on nfs01 that stalls its disks for about 3.5 minutes (02:10:04 to 02:13:41 is 3 minutes 37 seconds). They move the job. The messages stop and no mount option is changed.
Confirm the fix
journalctl -k -g 'not responding|server .* OK'shows no newnot respondinglines over a full day, or only pairs that close within seconds.ss -tn '( dport = :2049 )'shows an established connection to the server.ps -eo pid,stat,wchan,argsshows no processes stuck inDon the mount.nfsstat -mmatches the options you intend.
What to watch afterwards
- Record the times of
not respondingandOKpairs; the gap length points at the server job or network event. - Check the mount options after any change to
/etc/fstab, and after a client update. - A hung mount blocks shutdown; plan reboots for clients with a waiting hard mount.
Read next
Related articles you may want next.
- TroubleshootingNFS "Stale file handle": what changed on the server and how to remountNFS Stale file handle means the server no longer honours a handle the client holds. Find what changed on the server, then unmount and remount safely.Read article
- Troubleshootingmount.nfs: access denied by server while mounting: check the export, the client address and the source portmount.nfs: access denied by server while mounting. Check the export, the client address, the source port and the NFS version, then apply and test.Read article
- VMwareLinux VM on VMware: "INFO: task blocked for more than 120 seconds" and what to check on the hostLinux guest logs 'task blocked for more than 120 seconds'? Read the message, then check esxtop latency, vmkernel.log, snapshots and vNVMe.Read article
Risks and limits
- These commands have not been run or lab-tested.
- The nfs(5) text covers options for NFS versions 2, 3 and 4; some options apply to only some versions.
- The kernel message text is read from source code and can change between releases.
- The manual does not state how long a hard mount waits in total, so the waits quoted above come only from your own logs.
umount -fandumount -lcannot be undone for data that was not written; only the mount can be restored.
Sources
- nfs(5) — man7.org copy, HTML rendering created 2026-09-09, accessed 1 December 2026
- umount(8) — man7.org copy, HTML rendering created 2026-09-09, accessed 1 December 2026
- nfsstat(8) — man7.org copy, HTML rendering created 2026-09-09, accessed 1 December 2026
- findmnt(8) — man7.org copy, HTML rendering created 2026-09-09, accessed 1 December 2026
- journalctl(1) — man7.org copy (systemd 262 development snapshot), HTML rendering created 2026-09-09, accessed 1 December 2026
- ps(1) — man7.org copy, HTML rendering created 2026-09-09, accessed 1 December 2026
- ss(8) — man7.org copy, HTML rendering created 2026-09-09, accessed 1 December 2026
- net/sunrpc/clnt.c (tag v6.12) — Linux kernel source at tag v6.12, no date shown, accessed 1 December 2026
This article was originally published on .