Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

5.4. Cluster Configuration File with HP iLO Fence Device

Configuring a cluster with Conga modifies the cluster configuration file. This section shows the cluster configuration file before and after the procedures documented in Section 5.3, “HP iLO Fence Device Configuration Procedure” and were performed.
Before the cluster resources and service were configured, the cluster.conf file appeared as follows.

<?xml version="1.0"?>
<cluster alias="hpiloclust" config_version="12" name="hpiloclust">
        <fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
        <clusternodes>
                <clusternode name="clusternode1.example.com" nodeid="1" votes="1">
                        <fence/>
                </clusternode>
                <clusternode name="clusternode2.example.com" nodeid="2" votes="1">
                        <fence/>
                </clusternode>
                <clusternode name="clusternode3.example.com" nodeid="3" votes="1">
                        <fence>
                                <method name="1"/>
                        </fence>
                </clusternode>
        </clusternodes>
        <cman/>
        <fencedevices/>
        <rm>
                <failoverdomains/>
                <resources/>
        </rm>
</cluster>

After the cluster resources and service were configured, the cluster.conf file appears as follows.

<?xml version="1.0"?>
<cluster alias="backupclust" config_version="26" name="backupclust">
    <fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
    <clusternodes>
        <clusternode name="doc-10.lab.msp.redhat.com" nodeid="1" votes="1">
                <fence>
                        <method name="1">
                                <device name="hpilofence1"/>
                        </method>
                </fence>
        </clusternode>
        <clusternode name="doc-11.lab.msp.redhat.com" nodeid="2" votes="1">
                <fence>
                        <method name="1">
                                <device name="hpilofence2"/>
                        </method>
                </fence>
        </clusternode>
        <clusternode name="doc-12.lab.msp.redhat.com" nodeid="3" votes="1">
                <fence>
                        <method name="1">
                                <device name="hpilofence3"/>
                        </method>
                </fence>
        </clusternode>
    </clusternodes>
    <cman/>
    <fencedevices>
        <fencedevice agent="fence_ilo" hostname="hpilohost1" login="hpilologin" name="hpilofence1" passwd="hpilopword"/>
        <fencedevice agent="fence_ilo" hostname="hpilohost2" login="hpilologin" name="hpilofence2" passwd="hpilologin"/>
        <fencedevice agent="fence_ilo" hostname="hpilohost3" login="hpilologin" name="hpilofence3" passwd="hpilopword"/>
    </fencedevices>
    <rm>
        <failoverdomains/>
        <resources/>
    </rm>
</cluster>