diff --git a/xCAT-server/lib/xcat/plugins/zvm.pm b/xCAT-server/lib/xcat/plugins/zvm.pm index 0bb6b0d07..2339cf6bd 100644 --- a/xCAT-server/lib/xcat/plugins/zvm.pm +++ b/xCAT-server/lib/xcat/plugins/zvm.pm @@ -2298,7 +2298,7 @@ sub powerVM { # Power off virtual server elsif ( $args->[0] eq 'off' ) { - $out = `ssh $::SUDOER\@$hcp "$::SUDO $::DIR/smcli Image_Deactivate -T $userId"`; + $out = `ssh $::SUDOER\@$hcp "$::SUDO $::DIR/smcli Image_Deactivate -T $userId -f IMMED"`; xCAT::zvmUtils->printSyslog("smcli Image_Deactivate -T $userId"); xCAT::zvmUtils->printLn( $callback, "$node: $out" ); } @@ -2306,7 +2306,7 @@ sub powerVM { # Power off virtual server (gracefully) elsif ( $args->[0] eq 'softoff' ) { $out = `ssh -o ConnectTimeout=10 $::SUDOER\@$node "shutdown -h now"`; - sleep(90); # Wait 1.5 minutes before logging user off + sleep(15); # Wait 15 seconds before logging user off $out = `ssh $::SUDOER\@$hcp "$::SUDO $::DIR/smcli Image_Deactivate -T $userId"`; xCAT::zvmUtils->printSyslog("smcli Image_Deactivate -T $userId");