Installation guide
Example 5.4, “ cl uster. co nf After Adding Backup Fence Methods ”  shows a cl uster.co nf
configuration file after you have added a power-based primary fencing method and a storage-based
backup fencing method to each node in the cluster.
Examp le 5.4 . cl uster. co nf Af t er Ad d in g  Backu p  Fen ce Met h o d s
<cluster name="mycluster" config_version="3">
   <clusternodes>
    <clusternode name="node-01.example.com" nodeid="1">
        <fence>
           <method name="APC">
            <device name="my_apc" port="1"/>
           </method>
           <method name="SAN">
      <device name="sanswitch1" port="11"/>
           </method>
        </fence>
        <unfence>
           <device name="sanswitch1" port="11" action="on"/> 
        </unfence
    </clusternode>
    <clusternode name="node-02.example.com" nodeid="2">
        <fence>
           <method name="APC">
            <device name="my_apc" port="2"/>
           </method>
           <method name="SAN">
      <device name="sanswitch1" port="12"/>
           </method>
        </fence>
        <unfence>
           <device name="sanswitch1" port="12" action="on"/> 
        </unfence
    </clusternode>
    <clusternode name="node-03.example.com" nodeid="3">
        <fence>
           <method name="APC">
            <device name="my_apc" port="3"/>
           </method>
           <method name="SAN">
      <device name="sanswitch1" port="13"/>
           </method>
        </fence>
        <unfence>
           <device name="sanswitch1" port="13" action="on"/> 
        </unfence
    </clusternode>
   </clusternodes>
   <fencedevices>
       <fencedevice agent="fence_apc" ipaddr="apc_ip_example" 
login="login_example" name="my_apc" passwd="password_example"/>
       <fencedevice agent="fence_sanbox2" ipaddr="san_ip_example" 
login="login_example" name="sanswitch1" passwd="password_example"/>
   </fencedevices>
Chapt er 5. Configuring Red Hat  Hig h Availabilit y Add- O n Wit h  t he ccs Command
83










