increase the waiting time for the SRC commands
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5000 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
1884735750
commit
4e7d1736ed
@ -79,9 +79,8 @@ if (! $inoperative) { # active
|
||||
}
|
||||
|
||||
# Wait for end of the xcatd subsystem
|
||||
$check_num = 3;
|
||||
$check_num = 5;
|
||||
while ($check_num > 0) {
|
||||
$check_num--;
|
||||
$cmd = "lssrc -s xcatd | grep 'xcatd' | grep 'inoperative'";
|
||||
@output = `$cmd`;
|
||||
if (scalar(@output) == 0) {
|
||||
@ -89,6 +88,7 @@ if (! $inoperative) { # active
|
||||
} else {
|
||||
last;
|
||||
}
|
||||
$check_num--;
|
||||
}
|
||||
|
||||
if ($check_num <= 0) {
|
||||
@ -122,9 +122,8 @@ if (scalar(@output)) {
|
||||
my $cmd = "/usr/bin/kill -9 $pid >/dev/null 2>&1";
|
||||
`$cmd`;
|
||||
}
|
||||
$check_num = 3;
|
||||
$check_num = 5;
|
||||
while ($check_num > 0) {
|
||||
$check_num--;
|
||||
$cmd = "ps -ef | grep xcatd: | grep -v grep";
|
||||
@output = `$cmd`;
|
||||
if (scalar(@output)) {
|
||||
@ -132,6 +131,7 @@ if (scalar(@output)) {
|
||||
} else {
|
||||
last;
|
||||
}
|
||||
$check_num--;
|
||||
}
|
||||
if ($check_num <= 0) {
|
||||
xCAT::MsgUtils->message("E", "Error: Cannot kill the xcatd processes correctly.\n");
|
||||
@ -164,9 +164,8 @@ if ($rc >> 8) {
|
||||
sleep 3;
|
||||
|
||||
# Check the status of xcatd subsystem
|
||||
$check_num = 3;
|
||||
$check_num = 5;
|
||||
while ($check_num > 0) {
|
||||
$check_num--;
|
||||
$cmd = "lssrc -s xcatd | grep 'xcatd' | grep 'active'";
|
||||
my @output = `$cmd`;
|
||||
if (scalar(@output) == 0) {
|
||||
@ -174,6 +173,7 @@ while ($check_num > 0) {
|
||||
} else {
|
||||
last;
|
||||
}
|
||||
$check_num--;
|
||||
}
|
||||
|
||||
if ($check_num <= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user