From d77845f04e04d6281ac1563d594ea8b228643fbb Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 3 May 2012 04:31:35 +0000 Subject: [PATCH] fix for bug 3523175: use nfsv3 to mount the statelite directories git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12484 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite | 2 +- .../share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat | 2 +- xCAT-server/share/xcat/netboot/rh/dracut/xcatroot | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite index 8b51f99cd..373b70ba1 100755 --- a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite +++ b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite @@ -148,7 +148,7 @@ MountTrees () { mkdir -p ${TREEMOUNT}/${SERV}/${MNT} MAX=15 TRIES=1 - while ! mount $SERV:$MNT ${TREEMOUNT}/${SERV}/${MNT} -r -n -o nolock,tcp + while ! mount $SERV:$MNT ${TREEMOUNT}/${SERV}/${MNT} -r -n -o nolock,tcp,nfsvers=3 do if [ "$TRIES" = "$MAX" ]; then echo "Can't mount $i. I give up.. ">/dev/console diff --git a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat index 50cbe0f6f..6216a37ac 100755 --- a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat +++ b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat @@ -148,7 +148,7 @@ MountTrees () { mkdir -p ${TREEMOUNT}/${SERV}/${MNT} MAX=15 TRIES=1 - while ! mount $SERV:$MNT ${TREEMOUNT}/${SERV}/${MNT} -r -n -o nolock,tcp + while ! mount $SERV:$MNT ${TREEMOUNT}/${SERV}/${MNT} -r -n -o nolock,tcp,nfsvers=3 do if [ "$TRIES" = "$MAX" ]; then echo "Can't mount $i. I give up.. ">/dev/console diff --git a/xCAT-server/share/xcat/netboot/rh/dracut/xcatroot b/xCAT-server/share/xcat/netboot/rh/dracut/xcatroot index b02abe09f..05cadab92 100755 --- a/xCAT-server/share/xcat/netboot/rh/dracut/xcatroot +++ b/xCAT-server/share/xcat/netboot/rh/dracut/xcatroot @@ -99,7 +99,7 @@ elif [ -r /rootimg-statelite.gz ]; then MAXTRIES=5 ITER=0 if [ -z $MNTOPTS ]; then - MNT_OPTIONS="nolock,rsize=32768,tcp,timeo=14" + MNT_OPTIONS="nolock,rsize=32768,tcp,nfsvers=3,timeo=14" else MNT_OPTIONS=$MNTOPTS fi