Solution:
Root Cause: Unresponsive NFS Server Causing Uninterruptible D-State Processes
When a remote Network File System (NFS) server goes offline or network connectivity drops, any local process attempting to read or write to the NFS mount enters an uninterruptible sleep state (D state) awaiting server response. These processes cannot be killed with
kill -9 because they are locked inside kernel VFS network wait routines, inflating the system load average indefinitely.
Diagnostic Verification:
1.Identify processes stuck in D state:
bash
ps aux | awk '$8=="D"'
2.Test NFS mount responsiveness:
Run ls -l /mnt/nfs_share and observe if the terminal hangs instantly.Step-by-Step Fix:
1.Force Unmount the Hanging Share:
Force unmount the unresponsive network file system: bash
umount -f -l /mnt/nfs_share
2.Update Fstab to Include Soft Mounts:
Edit /etc/fstab and ensure NFS mounts use the soft option and reasonable timeout parameters instead of default hard mounts: text
server:/share /mnt/nfs_share nfs soft,timeo=30,retrans=3 0 0
3.Restore Network Connectivity:
Investigate network routing or remote server availability with storage administrators.Prevention & Long-Term Monitoring:
Always configure network file systems with soft mount parameters where data integrity loss is acceptable over complete system lockups.