Installation guide

ccs -h node-01.example.com --createcluster mycluster
The cluster name cannot exceed 15 characters.
If a cl uster.co nf file already exists on the host that you specify, executing this command
will replace that existing file.
If you want to create a cluster configuration file on your local system you can specify the -f
option instead of the -h option. For information on creating the file locally, refer to
Section 5.1.1, β€œ Creating the Cluster Configuration File on a Local System”.
2. To configure the nodes that the cluster contains, execute the following command for each
node in the cluster. A node name can be up to 255 bytes in length.
ccs -h host --addnode node
For example, the following three commands add the nodes no d e-0 1. exampl e. co m,
no d e-0 2. example. co m, and no d e-0 3. exampl e. co m to the configuration file on no d e-
0 1. example. co m:
ccs -h node-01.example.com --addnode node-01.example.com
ccs -h node-01.example.com --addnode node-02.example.com
ccs -h node-01.example.com --addnode node-03.example.com
To view a list of the nodes that have been configured for a cluster, execute the following
command:
ccs -h host --lsnodes
Example 5.1, β€œ cl uster. co nf File After Adding Three Nodes” shows a cl uster. co nf
configuration file after you have created the cluster mycluster that contains the nodes
no d e-0 1. example. co m, nod e-0 2. example. co m, and no d e-0 3. example. co m.
Examp le 5.1. cl uster.co nf File Af t er Ad d in g T h ree No d es
<cluster name="mycluster" config_version="2">
<clusternodes>
<clusternode name="node-01.example.com" nodeid="1">
<fence>
</fence>
</clusternode>
<clusternode name="node-02.example.com" nodeid="2">
<fence>
</fence>
</clusternode>
<clusternode name="node-03.example.com" nodeid="3">
<fence>
</fence>
</clusternode>
</clusternodes>
<fencedevices>
Red Hat Ent erprise Linux 6 Clust er Administ rat ion
72