From 18e3c0ef2b462b229494de35ff8ed689fc10796a Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 3 May 2012 04:31:05 +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/branches/2.7@12483 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