/etc/cluster/cluster.conf
) and start running the High Availability Add-On. As a starting point only, this section describes how to create a skeleton cluster configuration file without fencing, failover domains, and HA services. Subsequent sections describe how to configure those parts of the configuration file.
/etc/cluster/cluster.conf
, using the template of the example in Example 5.1, “cluster.conf
Sample: Basic Configuration”.
<cman two_node="1" expected_votes="1"/>
cluster
attributes: name
and config_version
(refer to Example 5.1, “cluster.conf
Sample: Basic Configuration” or Example 5.2, “cluster.conf
Sample: Basic Two-Node Configuration”).
clusternodes
section, specify the node name and the node ID of each node using the clusternode
attributes: name
and nodeid
.
/etc/cluster/cluster.conf
.
cluster.rng
) by running the ccs_config_validate
command. For example:
[root@example-01 ~]# ccs_config_validate
Configuration validates
/etc/cluster/
in each cluster node. For example, you could propagate the file to other cluster nodes using the scp
command.
cman_tool version -r
. It is possible to use the scp
command to propagate an updated configuration file; however, the cluster software must be stopped on all nodes while using the scp
command.In addition, you should run the ccs_config_validate
if you propagate an updated configuration file via the scp
.
fence
and fencedevices
, there is no need to populate them now. Subsequent procedures in this chapter provide information about specifying other elements and attributes.
service cman start
[root@example-01 ~]# service cman start
Starting cluster:
Checking Network Manager... [ OK ]
Global setup... [ OK ]
Loading kernel modules... [ OK ]
Mounting configfs... [ OK ]
Starting cman... [ OK ]
Waiting for quorum... [ OK ]
Starting fenced... [ OK ]
Starting dlm_controld... [ OK ]
Starting gfs_controld... [ OK ]
Unfencing self... [ OK ]
Joining fence domain... [ OK ]
cman_tools nodes
to verify that the nodes are functioning as members in the cluster (signified as "M" in the status column, "Sts"). For example:
[root@example-01 ~]# cman_tool nodes
Node Sts Inc Joined Name
1 M 548 2010-09-28 10:52:21 node-01.example.com
2 M 548 2010-09-28 10:52:21 node-02.example.com
3 M 544 2010-09-28 10:52:21 node-03.example.com
cluster.conf
Sample: Basic Configuration” and Example 5.2, “cluster.conf
Sample: Basic Two-Node Configuration” (for a two-node cluster) each provide a very basic sample cluster configuration file as a starting point. Subsequent procedures in this chapter provide information about configuring fencing and HA services.
cluster.conf
Sample: Basic Configuration<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> </fencedevices> <rm> </rm> </cluster>
cluster.conf
Sample: Basic Two-Node Configuration<cluster name="mycluster" config_version="2"> <cman two_node="1" expected_votes="1"/> <clusternodes> <clusternode name="node-01.example.com" nodeid="1"> <fence> </fence> </clusternode> <clusternode name="node-02.example.com" nodeid="2"> <fence> </fence> </clusternode> </clusternodes> <fencedevices> </fencedevices> <rm> </rm> </cluster>