Add a new option "r" for rmvm to remain the node's definition when removing it.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5095 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e051a40b2c
commit
ce36812204
@ -379,7 +379,7 @@ sub rmvm_parse_args {
|
||||
$Getopt::Long::ignorecase = 0;
|
||||
Getopt::Long::Configure( "bundling" );
|
||||
|
||||
if ( !GetOptions( \%opt, qw(V|verbose service) )) {
|
||||
if ( !GetOptions( \%opt, qw(V|verbose service r) )) {
|
||||
return( usage() );
|
||||
}
|
||||
####################################
|
||||
@ -711,7 +711,7 @@ sub remove {
|
||||
################################
|
||||
# Remove LPAR from database
|
||||
################################
|
||||
if ( $Rc == SUCCESS ) {
|
||||
if ( $Rc == SUCCESS and !exists( $opt->{r} ) ) {
|
||||
my $err = xCATdB( "rmvm", $name );
|
||||
if ( defined( $err )) {
|
||||
push @values, [$lpar,$err,RC_ERROR];
|
||||
|
@ -9,7 +9,7 @@ I<rmvm [-h| --help]>
|
||||
I<rmvm [-v| --version]>
|
||||
|
||||
|
||||
I<rmvm [-V| --verbose] noderange [--service]>
|
||||
I<rmvm [-V| --verbose] noderange [-r] [--service]>
|
||||
|
||||
|
||||
=head1 DESCRIPTION
|
||||
@ -25,6 +25,8 @@ B<-v> Command Version.
|
||||
|
||||
B<-V> Verbose output.
|
||||
|
||||
B<-r> Remain the data object definitions of the nodes.
|
||||
|
||||
B<--service> Remove the service partitions of the specified CECs.
|
||||
|
||||
|
||||
@ -63,6 +65,14 @@ Output is similar to:
|
||||
cec01: Success
|
||||
cec02: Success
|
||||
|
||||
4. To remove the partition lpar1, but remaining its definition, enter:
|
||||
|
||||
I<rmvm lpar1 -r>
|
||||
|
||||
Output is similar to:
|
||||
|
||||
lpar1: Success
|
||||
|
||||
|
||||
=head1 FILES
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user