From b4db3db6171725805401275ff4fde089aeae2ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Beims=20Br=C3=A4scher?= Date: Wed, 2 Mar 2022 13:07:08 +0100 Subject: [PATCH] Use default timeout and retransmission values for the NFS mount. (#6019) This also allows the mount command to apply NFS mount custom values set by ADMINS via '/etc/nfsmount.conf'. --- scripts/vm/hypervisor/kvm/kvmheartbeat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vm/hypervisor/kvm/kvmheartbeat.sh b/scripts/vm/hypervisor/kvm/kvmheartbeat.sh index a931d94aaf2..00e78460e3b 100755 --- a/scripts/vm/hypervisor/kvm/kvmheartbeat.sh +++ b/scripts/vm/hypervisor/kvm/kvmheartbeat.sh @@ -97,7 +97,7 @@ mounts=$(cat /proc/mounts |grep nfs|grep $MountPoint) if [ $? -gt 0 ] then # remount it - mount $NfsSvrIP:$NfsSvrPath $MountPoint -o sync,soft,proto=tcp,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,noac,timeo=133,retrans=10 &> /dev/null + mount $NfsSvrIP:$NfsSvrPath $MountPoint -o sync,soft,proto=tcp,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,noac &> /dev/null if [ $? -gt 0 ] then printf "Failed to remount $NfsSvrIP:$NfsSvrPath under $MountPoint"