From af1cd4333faf3ada915fa5fbe98259c8d9541b07 Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 23 Nov 2009 10:59:29 +0000 Subject: [PATCH] set nfs_use_reserved_ports=1 for mixed cluster Linux MN=>AIX node git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4651 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index ec3e1f231..8d65040c8 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -553,6 +553,28 @@ sub updatenode $callback->($rsp); } + if (scalar(@$AIXnodes)) + { + if (xCAT::Utils->isLinux()) + { + # mixed cluster enviornment, Linux MN=>AIX node + # linux nfs client can not mount AIX nfs directory with default settings. + # settting nfs_use_reserved_ports=1 could solve the problem + my $cmd = qq~nfso -o nfs_use_reserved_ports=1~; + my $output = + xCAT::InstUtils->xcmd($callback, $subreq, "xdsh", $AIXnodes, $cmd, 0); + if ($::RUNCMD_RC != 0) + { + my $rsp; + push @{$rsp->{data}}, + "Could not set nfs_use_reserved_ports=1 on nodes. Error message is:\n"; + push @{$rsp->{data}}, "$output\n"; + xCAT::MsgUtils->message("E", $rsp, $callback); + return 1; + } + } + } + # # handle software updates #