From 840293e273270c606fc8bdeb6c4699257b045441 Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 24 Oct 2011 11:07: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@10867 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 0160cef03..667a59431 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -2028,7 +2028,16 @@ sub updateAIXsoftware } # mount source dir to node - my $mcmd = qq~mkdir -m 644 -p /xcatmnt; mount $serv:$pkgdir /xcatmnt~; + my $mcmd; + my @nfsv4 = xCAT::Utils->get_site_attribute("useNFSv4onAIX"); + if ($nfsv4[0] && ($nfsv4[0] =~ /1|Yes|yes|YES|Y|y/)) + { + $mcmd = qq~mkdir -m 644 -p /xcatmnt; mount -o vers=4 $serv:$pkgdir /xcatmnt~; + } + else + { + $mcmd = qq~mkdir -m 644 -p /xcatmnt; mount $serv:$pkgdir /xcatmnt~; + } if ($::VERBOSE) {