From 749767e71165e84fa0415d97fbe4a178c7812626 Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 24 Oct 2011 10:43:57 +0000 Subject: [PATCH] nfsv4 support, add -o vers=4 to mount commands if site.useNFSv4onAIX is set git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10865 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-rmc/scripts/configrmcnode | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-rmc/scripts/configrmcnode b/xCAT-rmc/scripts/configrmcnode index 875a2e407..20ad92476 100755 --- a/xCAT-rmc/scripts/configrmcnode +++ b/xCAT-rmc/scripts/configrmcnode @@ -202,7 +202,11 @@ if [ $ADD -eq 1 ]; then rm -rf $NFSSERVER else mkdir -p /xcatmnt - result=`mount $NFSSERVER:/install/postscripts /xcatmnt` + if [[ $USENFSV4ONAIX = yes ]] || [[ $USENFSV4ONAIX = 1 ]] || [[ $USENFSV4ONAIX = Yes ]] || [[ $USENFSV4ONAIX = YES ]] || [[ $USENFSV4ONAIX = Y ]] || [[ $USENFSV4ONAIX = y ]]; then + result=`mount -o vers=4 $NFSSERVER:/install/postscripts /xcatmnt` + else + result=`mount $NFSSERVER:/install/postscripts /xcatmnt` + fi if [ $? -gt 0 ]; then echo "Failed to mount:$result" logger -t xCAT "Failed to mount $result"