09-30-2022, 01:09 PM
(This post was last modified: 09-30-2022, 01:12 PM by romain.
Edit Reason: fixed typos
)
(09-30-2022, 12:56 PM)Tim Curtis Wrote: its a super nice script but the command (mountpoint) which is used in the script to check mount points will wait indefinitely if a mount point is an NFS mount and the NFS server service on the NAS has been turned off, is hung or has crashed. In this scenario the script will not continue checking mount points until the NFS server service comes back up on the NAS :-0Tim, in my initial post, I had already raised the NFS problem, it's because NFS mounts are hard mounted by default.
To avoid the script waiting indefinitely for NFS mounts or server to be back online, the solution is simply to use the soft mount option instead of the hard one.
The following NFS mount options work like a charm for me : soft,timeo=10,retrans=1,ro,nolock