xcat-core/xCAT-client/pods/man1/nodediscoverstart.1.pod

183 lines
9.2 KiB
Plaintext
Raw Permalink Normal View History

=head1 NAME
B<nodediscoverstart> - starts the node discovery process
=head1 SYNOPSIS
B<nodediscoverstart> [B<-h>|B<--help>|B<-v>|B<--version>]
B<Sequential Discovery Specific:>
=over 2
B<nodediscoverstart> B<noderange=>I<noderange> [B<hostiprange=>I<imageprofile>] [B<bmciprange=>I<bmciprange>] [B<groups=>I<groups>] [B<rack=>I<rack>] [B<chassis=>I<chassis>] [B<height=>I<height>] [B<unit=>I<unit>] [osimage=<osimagename>] [-n|--dns] [-s|--skipbmcsetup] [B<-V|--verbose>]
=back
B<Profile Discovery Specific:>
=over 2
B<nodediscoverstart> B<networkprofile=>I<network-profile> B<imageprofile=>I<image-profile> B<hostnameformat=>I<nost-name-format> [B<hardwareprofile=>I<hardware-profile>] [B<groups=>I<node-groups>] [B<rack=>I<rack-name>] [B<chassis=>I<chassis-name>] [B<height=>I<rack-server-height>] [B<unit=>I<rack-server-unit-location>] [B<rank=>I<rank-num>]
=back
=head1 DESCRIPTION
The B<nodediscoverstart> command starts either the B<Sequential Discovery> or B<Profile Discovery> process. They can not both be
running at the same time.
B<Sequential Discovery Specific:>
=over 2
This is the simplest discovery approach. You only need to specify the B<noderange>, B<hostiprange> and B<bmciprange> that should be
given to nodes that are discovered. (If you pre-define the nodes (via nodeadd or mkdef) and specify their host and BMC IP addresses,
then you only need to specify the B<noderange> to the B<nodediscoverstart> command.) Once you have run B<nodediscoverstart>, then
physically power on the nodes in the sequence that you want them to receive the node names and IPs, waiting a short time (e.g. 30 seconds)
between each node.
=back
B<Profile Discovery Specific:>
=over 2
This is the PCM discovery approach. I<networkprofile>, I<imageprofile>, I<hostnameformat> arguments must be specified to start the B<Profile Discovery>.
All nodes discovered by this process will be associated with specified profiles and rack/chassis/unit locations.
When the nodes are discovered, PCM updates the affected configuration files on the management node automatically. Configuration files include the /etc/hosts service file, DNS configuration, and DHCP configuration. Kit plug-ins are automatically triggered to update kit related configurations and services.
=back
When you power on the nodes, they PXE boot and DHCP/TFTP/HTTP on the management node give each node the xCAT genesis boot image,
which inventories the node hardware and sends data to the management node. There, either the sequential discovery process or the
profile discovery process assigns node attributes and defines the node in the the database.
=head1 OPTIONS
=over 10
=item B<noderange=>I<noderange>
The set of node names that should be given to nodes that are discovered via the B<Sequential Discovery> method.
This argument is required to B<Sequential Discovery>. Any valid xCAT B<noderange> is allowed, e.g. node[01-10].
=item B<hostiprange=>I<ip range>
The ip range which will be assigned to the host of new discovered nodes in the B<Sequential Discovery> method. The format can be: I<start_ip>B<->I<end_ip> or I<noderange>, e.g. 192.168.0.1-192.168.0.10 or 192.168.0.[1-10].
=item B<bmciprange=>I<ip range>
The ip range which will be assigned to the bmc of new discovered nodes in the B<Sequential Discovery> method. The format can be: I<start_ip>B<->I<end_ip> or I<noderange>, e.g. 192.168.1.1-192.168.1.10 or 192.168.1.[1-10].
=item B<imageprofile=>I<image-profile>
Sets the new image profile name used by the discovered nodes in the B<Profile Discovery> method. An image profile defines the provisioning method, OS information, kit information, and provisioning parameters for a node. If the "__ImageProfile_imgprofile" group already exists in the nodehm table, then "imgprofile" is used as the image profile name.
=item B<networkprofile=>I<network-profile>
Sets the new network profile name used by the discovered nodes in the B<Profile Discovery> method. A network profile defines the network, NIC, and routes for a node. If the "__NetworkProfile_netprofile" group already exists in the nodehm table, then "netprofile" is used as the network profile name.
=item B<hardwareprofile=>I<hardware-profile>
Sets the new hardware profile name used by the discovered nodes in the B<Profile Discovery> method. If a "__HardwareProfile_hwprofile" group exists, then "hwprofile" is the hardware profile name. A hardware profile defines hardware management related information for imported nodes, including: IPMI, HMC, CEC, CMM.
=item B<hostnameformat=>I<nost-name-format>
Sets the node name format for all discovered nodes in the B<Profile Discovery> method. The two types of formats supported are prefix#NNNappendix and prefix#RRand#NNappendix, where wildcard #NNN and #NN are replaced by a system generated number that is based on the provisioning order. Wildcard #RR represents the rack number and stays constant.
For example, if the node name format is compute-#NN, the node name is generated as: compute-00, compute-01, ..., compute-99. If the node name format is blade#NNN-x64, the node name is generated as: blade001-x64, blade002-x64, ..., blade999-x64
For example, if the node name format is compute-#RR-#NN and the rack number is 2, the node name is generated as: compute-02-00, compute-02-01, ..., compute-02-99. If node name format is node-#NN-in-#RR and rack number is 1, the node name is generated as: node-00-in-01, node-01-in-01, ..., node-99-in-01
=item B<groups=>I<node-groups>
Sets the node groups that the discovered nodes should be put in for either the Sequential Discovery or Profile Discovery methods, where I<node-group> is a comma-separated list of node groups.
=item B<rack=>I<rack-name>>
Sets the rack name where the node is located for either the Sequential Discovery or Profile Discovery methods.
=item B<chasiss=>I<chassis-name>
Sets the chassis name that the Blade server or PureFlex blade is located in, for either the Sequential Discovery or Profile Discovery methods. This option is used for the Blade server and PureFlex system only. You cannot specify this option with the rack option.
=item B<height=>I<rack-server-height>
Sets the height of a rack-mounted server in U units for either the Sequential Discovery or Profile Discovery methods. If the rack option is not specified, the default value is 1.
=item B<unit=>I<rack-server-unit-location>
Sets the start unit value for the node in the rack, for either the Sequential Discovery or Profile Discovery methods. This option is for a rack server only. If the unit option is not specified, the default value is 1
=item B<rank=>I<rank-num>
Specifies the starting rank number that is used in the node name format, for the Profile Discovery method. The rank number must be a valid integer between 0 and 254. This option must be specified with nodenameformat option. For example, if your node name format is compute-#RR-#NN. The rack's number is 2 and rank is specified as 5, the node name is generated as follows: compute-02-05, compute-02-06, ..., compute-02-99.
=item B<osimage=>I<osimagename>
Specifies the osimage name that will be associated with the new discovered node, the os provisioning will be started automatically at the end of the discovery process.
=item B<-n|--dns>
Specifies to run makedns <nodename> for any new discovered node. This is useful mainly for non-predefined configuration, before running the "nodediscoverstart -n", the user needs to run makedns -n to initialize the named setup on the management node.
=item B<-s|--skipbmcsetup>
Specifies to skip the bmcsetup during the sequential discovery process, if the bmciprange is specified with nodediscoverstart command, the BMC will be setup automatically during the discovery process, if the user does not want to run bmcsetup, could specify the "-s|--skipbmcsetup" with nodediscoverstart command to skip the bmcsetup.
=item B<-V|--verbose>
Enumerates the free node names and host/bmc ips that are being specified in the ranges given. Use this option
with Sequential Discovery to ensure that you are specifying the ranges you intend.
=item B<-h|--help>
Display usage message.
=item B<-v|--version>
Command Version.
=back
=head1 RETURN VALUE
0 The command completed successfully.
1 An error has occured.
=head1 EXAMPLES
=over 3
=item 1
B<Sequential Discovery>: To discover nodes with noderange and host/bmc ip range:
B<nodediscoverstart noderange=n[1-10] hostiprange='172.20.101.1-172.20.101.10' bmciprange='172.20.102.1-172.20.102.10' -V>
Sequential Discovery: Started:
Number of free node names: 10
Number of free host ips: 10
Number of free bmc ips: 10
------------------------------------Free Nodes------------------------------------
NODE HOST IP BMC IP
n01 172.20.101.1 172.20.102.1
n02 172.20.101.2 172.20.102.2
... ... ...
=item 2
B<Profile Discovery>: To discover nodes using the default_cn network profile and the rhels6.3_packaged image profile, use the following command:
B<nodediscoverstart networkprofile=default_cn imageprofile=rhels6.3_packaged hostnameformat=compute#NNN>
=back
=head1 SEE ALSO
L<nodediscoverstop(1)|nodediscoverstop.1>, L<nodediscoverls(1)|nodediscoverls.1>, L<nodediscoverstatus(1)|nodediscoverstatus.1>