My Advanced Linux/RedHat Knowledge 2012. 3. 23. 17:44
last modified by Shane Bradley on 01/19/12 - 11:30
Issue
- How do you configure an ILO 3 fence device for RHEL Clustering?
Environment
- Red Hat Cluster Suite 4+
- Red Hat Enterprise Linux 5 Advanced Platform (Clustering)
- Red Hat Enterprise Linux Server 6 (with the High Availability Add on)
Resolution
Support for the iLO3 fence device has been added to the fence_ipmilan fence device in the following errata: http://rhn.redhat.com/errata/RHEA-2010-0876.html.
The iLO3 firmware should be a minimum of 1.15 as provided by HP.
On both cluster nodes, install the following OpenIPMI packages used for fencing:
$ yum install OpenIPMI OpenIPMI-tools
Stop and disable the 'acpid' daemon:
$ service acpid stop; chkconfig acpid off
Test ipmitool interaction with iLO3:
$ ipmitool -H <iloip> -I lanplus -U <ilousername> -P <ilopassword> chassis power status
The desired output is:
Chassis Power is on
Edit the /etc/cluster/cluster.conf to add the fence device:
<?xml version="1.0"?>
<cluster alias="rh5nodesThree" configversion="32" name="rh5nodesThree">
<fencedaemon cleanstart="0" postfaildelay="1" postjoindelay="3"/>
<clusternodes>
<clusternode name="rh5node1.examplerh.com" nodeid="1" votes="1">
<fence>
<method name="1">
<device domain="rh5node1" name="ilo3node1"/>
</method>
</fence>
</clusternode>
<clusternode name="rh5node2.examplerh.com" nodeid="2" votes="1">
<fence>
<method name="1">
<device domain="rh5node2" name="ilo3node2"/>
</method>
</fence>
</clusternode>
<clusternode name="rh5node3.examplerh.com" nodeid="3" votes="1">
<fence>
<method name="1">
<device domain="rh5node3" name="ilo3node3"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman expectedvotes="3">
<multicast addr="229.5.1.1"/>
</cman>
<fencedevices>
<fencedevice agent="fenceipmilan" powerwait="10" ipaddr="XX.XX.XX.XX" lanplus="1" login="username" name="ilo3node1" passwd="password"/>
<fencedevice agent="fenceipmilan" powerwait="10" ipaddr="XX.XX.XX.XX" lanplus="1" login="username" name="ilo3node2" passwd="password"/>
<fencedevice agent="fenceipmilan" powerwait="10" ipaddr="XX.XX.XX.XX" lanplus="1" login="username" name="ilo3node3" passwd="password"/>
</fencedevices>
<rm>
<failoverdomains/>
<resources/>
</rm>
</cluster>
Test that fencing is successful. From node1 attempt to fence node2 as follows:
$ fence
node node2
For more information on fencing cluster nodes manually then see the following article: How do you manually call fencing agents from the commandline?
Component