From fd6fcab6e7aea225366f3755fe25a9932529319c Mon Sep 17 00:00:00 2001 From: mxi1 Date: Thu, 12 Aug 2010 03:24:40 +0000 Subject: [PATCH] increased the retry times; replace udp with tcp as the default nfs options; git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7057 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/sles/genimage | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/sles/genimage b/xCAT-server/share/xcat/netboot/sles/genimage index e9d02102c..ae2ffa90d 100755 --- a/xCAT-server/share/xcat/netboot/sles/genimage +++ b/xCAT-server/share/xcat/netboot/sles/genimage @@ -802,10 +802,10 @@ if [ "\$NFSROOT" = "1" ]; then # for loop back mounting capability! mknod /dev/loop0 b 7 0 mkdir -p \$NEWROOT - MAXTRIES=5 + MAXTRIES=15 ITER=0 ME=`hostname` - while ! mount.nfs \${SERVER}:\${ROOTDIR}/rootimg \$NEWROOT -r -n -o nolock,rsize=32768,udp,nfsvers=3,timeo=14 + while ! mount.nfs \${SERVER}:\${ROOTDIR}/rootimg \$NEWROOT -r -n -o nolock,rsize=32768,tcp,nfsvers=3,timeo=14 do ITER=\$(expr \$ITER + 1) if [ "\$ITER" == "\$MAXTRIES" ] @@ -859,7 +859,7 @@ if [ "\$NFSROOT" = "1" ]; then mkdir -p \$NEWROOT/\$RWDIR/persistent MAXTRIES=5 ITER=0 - while ! mount \$SNAPSHOTSERVER:\$SNAPSHOTROOT \$NEWROOT/\$RWDIR/persistent -o nolock + while ! mount \$SNAPSHOTSERVER:\$SNAPSHOTROOT \$NEWROOT/\$RWDIR/persistent -o nolock,tcp do ITER=\$(expr \$ITER + 1) if [ "\$ITER" == "\$MAXTRIES" ]