Installation guide

service:example_apache node-01.example.com
started
service:example_apache2 (none)
disabled
8.2.2. Adding a Node t o a Clust er
Adding a node to a cluster consists of updating the cluster configuration, propagating the updated
configuration to the node to be added, and starting the cluster software on that node. To add a node
to a cluster, perform the following steps:
1. At any node in the cluster, edit the /etc/cl uster/cl uster. co nf to add a cl usterno d e
section for the node that is to be added. For example, in Example 8.2, “ Two-node Cluster
Configuration , if node-03.example.com is supposed to be added, then add a cl usterno d e
section for that node. If adding a node (or nodes) causes the cluster to transition from a two-
node cluster to a cluster with three or more nodes, remove the following cman attributes from
/etc/cl uster/cl uster.co nf:
cman two _no d e= "1"
expected _vo tes= "1"
Refer to Section 8.2.3, “ Examples of Three-Node and Two-Node Configurations for
comparison between a three-node and a two-node configuration.
2. Update the co nfi g _versi o n attribute by incrementing its value (for example, changing
from co nfi g _versi o n= "2" to co nfi g _versio n= "3">).
3. Save /etc/cl uster/cl uster.co nf.
4. (Opti o nal ) Validate the updated file against the cluster schema (cl uster.rng ) by
running the ccs_co nfi g _val i d ate command. For example:
[root@ example-01 ~]# ccs_co nfi g _val i d ate
Configuration validates
5. Run the cman_to o l versio n -r command to propagate the configuration to the rest of the
cluster nodes.
6. Verify that the updated configuration file has been propagated.
7. Propagate the updated configuration file to /etc/cl uster/ in each node to be added to the
cluster. For example, use the scp command to send the updated configuration file to each
node to be added to the cluster.
8. If the node count of the cluster has transitioned from two nodes to greater than two nodes,
you must restart the cluster software in the existing cluster nodes as follows:
a. At each node, stop the cluster software according to Section 8.1.2, “Stopping Cluster
Software” . For example:
[root@ example-01 ~]# servi ce rg manager sto p
Stopping Cluster Service Manager: [
OK ]
[root@ example-01 ~]# servi ce g fs2 sto p
Unmounting GFS2 filesystem (/mnt/gfsA): [
OK ]
Red Hat Ent erprise Linux 6 Clust er Administ rat ion
136