Installation guide

Note
The number of fail o verd o mai nno d e attributes depends on the number of nodes in
the failover domain. The skeleton fai l o verd o mai n section in preceding text shows
three fai l o verd o mai nno d e elements (with no node names specified), signifying
that there are three nodes in the failover domain.
3. In the fai l o verdo mai n section, provide the values for the elements and attributes. For
descriptions of the elements and attributes, refer to the failoverdomain section of the annotated
cluster schema. The annotated cluster schema is available at /usr/share/d o c/cman-
X. Y . ZZ/cluster_conf. html (for example /usr/share/do c/cman-
3. 0 . 12/cluster_conf. html ) in any of the cluster nodes. For an example of a
fai l o verd o mai ns section, refer to Example 7.8, “A Failover Domain Added to
cl uster.co nf.
4. Update the confi g _versio n attribute by incrementing its value (for example, changing
from co nfi g _versi o n= "2" to co nfi g _versio n= "3">).
5. Save /etc/cl uster/cl uster.co nf.
6. (O pti o nal ) Validate the 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
7. Run the cman_too l versi o n -r command to propagate the configuration to the rest of the
cluster nodes.
8. Proceed to Section 7.5, “ Configuring HA Services.
Example 7.8, “ A Failover Domain Added to cl uster. co nf shows an example of a configuration
with an ordered, unrestricted failover domain.
Examp le 7.8. A Failo ver Do main Ad d ed t o cl uster.co nf
<cluster name="mycluster" config_version="3">
<clusternodes>
<clusternode name="node-01.example.com" nodeid="1">
<fence>
<method name="APC">
<device name="apc" port="1"/>
</method>
</fence>
</clusternode>
<clusternode name="node-02.example.com" nodeid="2">
<fence>
<method name="APC">
<device name="apc" port="2"/>
</method>
</fence>
</clusternode>
<clusternode name="node-03.example.com" nodeid="3">
Fencin g Configurat ion Examples
117