Fix code and add manpage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@961 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
339d9f1b57
commit
a188362ffa
69
xCAT-client-2.0/pods/man8/mkrrnodes.8.pod
Normal file
69
xCAT-client-2.0/pods/man8/mkrrnodes.8.pod
Normal file
@ -0,0 +1,69 @@
|
||||
=head1 NAME
|
||||
|
||||
B<mkrrnodes> - Adds or deletes nodes in the xCAT cluster database.
|
||||
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
B<mkrrnodes> [-d ]| [-C a|b|,...,r] -R [startrange,endrange]
|
||||
|
||||
|
||||
B<mkrrnodes> [B<-h> | B<--help>]
|
||||
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
The mkrrnodes add or delete (-d) the nodes requested by inputting the CU name (-C) flag and the start and end range (-R) flag. It will also automatically define required nodegroups.
|
||||
|
||||
=head1 OPTIONS
|
||||
|
||||
|
||||
=over 10
|
||||
|
||||
=item B<-h|--help>
|
||||
|
||||
Display usage message.
|
||||
|
||||
=back
|
||||
|
||||
|
||||
=head1 RETURN VALUE
|
||||
|
||||
=over 3
|
||||
|
||||
=item 0
|
||||
|
||||
The command completed successfully.
|
||||
|
||||
=item 1
|
||||
|
||||
An error has occurred.
|
||||
|
||||
=back
|
||||
|
||||
|
||||
=head1 EXAMPLES
|
||||
|
||||
=over 2
|
||||
|
||||
=item *
|
||||
|
||||
To build a nodelist entry like this "rrb048c","rrb048,qs22,cub,cell,cell-c,compute,tb,rack06",,,,:
|
||||
|
||||
B<mkrrnodes> -C b -R 048,048
|
||||
|
||||
To delete a nodelist entry like this "rrb048c","rrb048,qs22,cub,cell,cell-c,compute,tb,rack06",,,,:
|
||||
|
||||
B<mkrrnodes> -d -C b -R 048,048
|
||||
|
||||
=item *
|
||||
|
||||
|
||||
=back
|
||||
|
||||
|
||||
=head1 FILES
|
||||
|
||||
/opt/xcat/share/xcat/tools/mkrrnodes
|
||||
|
||||
|
@ -16,7 +16,7 @@ use Getopt::Long;
|
||||
mkrrnodes -d -C <cu letter> -R <startrange,endrange> (delete)
|
||||
Build an nodelist entry that looks like this
|
||||
|
||||
"rrb048c","rrb048,qs22,cub,cell,cell-c,compute,tb,rack06","blade,osi",,,
|
||||
"rrb048c","rrb048,qs22,cub,cell,cell-c,compute,tb,rack06",,,,
|
||||
|
||||
|
||||
=cut
|
||||
@ -58,7 +58,6 @@ foreach my $CU (@::CU)
|
||||
} else {
|
||||
$cmd .= ",rack06";
|
||||
}
|
||||
$cmd .=" nodelist.nodetype=blade,osi";
|
||||
if ($::DELETE) {
|
||||
system("noderm $cmd");
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user