I have a problem when executing "df -h" command it hungs, I know since there is a unreachable/not responding NFS path this is causing the hung. All my scripts dependent of df -h is also piling up because of this.
The only way is to manually lazy unmount (umount -l ) such automount filesystems.
But is there a way to define some options in autofs so that if there is a non-responding NFS path it should automatically unmount such directories in autofs?
Or
Any scripts to fix such issues?