From fb778348c48ad3bc1f959831fc26f939ddd968a0 Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 24 Oct 2011 10:51:58 +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@10866 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/db2install | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/db2install b/xCAT/postscripts/db2install index ce2a5da67..57202e9ab 100755 --- a/xCAT/postscripts/db2install +++ b/xCAT/postscripts/db2install @@ -347,7 +347,15 @@ sub mountdb2code { # not mounted # need to mount the directory - my $cmd = "mount $server:$::installloc $::installloc"; + my $cmd; + if ($ENV{'USENFSV4ONAIX'} && ($ENV{'USENFSV4ONAIX'} =~ /1|Yes|yes|YES|Y|y/)) + { + $cmd = "mount -o vers=4 $server:$::installloc $::installloc"; + } + else + { + $cmd = "mount $server:$::installloc $::installloc"; + } $rc = &runcmd($cmd); }