running RHEL 7.9, on LAN using a cisco switch, and cat6 wired cabling. When there is any kind of network issue, and sometimes not a network issue from what I can tell, linux will hang because of NFS, on an NFS client, why?
For example
- with
/etc/nfs.conf
and/etc/sysconfig/nfs
unmodified from default setup, NFS vers=4.1 happens fairly easily. - server A exports
/data
- server B mount
/data
from Server A - if there is any kind of network hangup, simply unplug a cat6 cable of Server A or B and reconnect... the network will reconnect and things like SSH will work between Servers A & B either way but server B as the NFS client will experience the following types of problems that I do not know how to correct:
- NFS stale handle for
/data
- doing an
ls /
will hang in the terminal window until a ctrl-c is done - doing a
df -h
will hang in the terminal window until a ctrl-c is done - doing a
umount /data
will also hang - it seems like the only reliable fix is to reboot the NFS client
- NFS stale handle for
Can someone explain why such problems happen? Specifically the hanging of doing things like ls
and df
? And there is any kind of instructional on how to troubleshoot NFS? I feel like I am working with a black box when it stops working the only fix is a reboot.