This is an automated email from the ASF dual-hosted git repository.

nvazquez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new b4db3db  Use default timeout and retransmission values for the NFS 
mount. (#6019)
b4db3db is described below

commit b4db3db6171725805401275ff4fde089aeae2ab0
Author: Gabriel Beims Bräscher <[email protected]>
AuthorDate: Wed Mar 2 13:07:08 2022 +0100

    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 a931d94..00e7846 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" 

Reply via email to