update to reading xcat MN from xcatinfo file instead of using the exported $MASTER value, because it will be unreadable during diskfull reboot.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8348 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2010-12-07 09:26:27 +00:00
parent 434591e3b0
commit 659b01a6e2

View File

@ -31,6 +31,17 @@ if (-f "/etc/xcatinfo") {
my $gpfsd = "hpcbootstatus gpfs-daemon=up";
my $gpfsq = "hpcbootstatus gpfs-quorum=achieved";
# add HPCbootstatus.aix to /etc/inittab for diskful node reboot
# see if it is already there
my $cmd = "/usr/sbin/lsitab hpcbootstatus > /dev/null 2>&1";
my $rc = system("$cmd") >>8;
if ($rc != 0)
{
# add new entry
my $mkcmd = '/usr/sbin/mkitab "hpcbootstatus:2:wait:/xcatpost/HPCbootstatus.aix > /dev/console 2>&1"';
system("$mkcmd");
}
while (1)
{
my $count= 0;