From 659b01a6e22759abb78d9f8adae322555a884697 Mon Sep 17 00:00:00 2001 From: sjing Date: Tue, 7 Dec 2010 09:26:27 +0000 Subject: [PATCH] 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 --- xCAT/postscripts/HPCbootstatus.aix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xCAT/postscripts/HPCbootstatus.aix b/xCAT/postscripts/HPCbootstatus.aix index dbb853046..59378fd13 100644 --- a/xCAT/postscripts/HPCbootstatus.aix +++ b/xCAT/postscripts/HPCbootstatus.aix @@ -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;