Installation guide
ccs -h host --addfenceinst fencedevicename node method [options] 
action=on
For example, to configure a second fence instance in the configuration file on the cluster
node no d e-0 1. example. co m that uses the APC switch power port 1 on the fence device
named apc2 to fence cluster node no d e-0 1. exampl e. co m using the same method as you
specified for the first instance named AP C -d ual  and setting the actio n attribute to o n,
execute the following command:
ccs -h node01.example.com --addfenceinst apc2 node01.example.com 
APC-dual port=1 action=on
Example 5.5, “ cl uster.co nf After Adding Dual-Power Fencing ”  shows a cl uster.co nf
configuration file after you have added fencing for two power supplies for each node in a cluster.
Examp le 5.5. cl uster.co nf Af t er Ad d in g  D u al- Po wer Fen cin g
<cluster name="mycluster" config_version="3">
   <clusternodes>
    <clusternode name="node-01.example.com" nodeid="1">
        <fence>
           <method name="APC-dual">
            <device name="apc1" port="1"action="off"/>
            <device name="apc2" port="1"action="off"/>
            <device name="apc1" port="1"action="on"/>
            <device name="apc2" port="1"action="on"/>
           </method>
        </fence>
    </clusternode>
    <clusternode name="node-02.example.com" nodeid="2">
        <fence>
           <method name="APC-dual">
            <device name="apc1" port="2"action="off"/>
            <device name="apc2" port="2"action="off"/>
            <device name="apc1" port="2"action="on"/>
            <device name="apc2" port="2"action="on"/>
           </method>
        </fence>
    </clusternode>
    <clusternode name="node-03.example.com" nodeid="3">
        <fence>
           <method name="APC-dual">
            <device name="apc1" port="3"action="off"/>
            <device name="apc2" port="3"action="off"/>
            <device name="apc1" port="3"action="on"/>
            <device name="apc2" port="3"action="on"/>
           </method>
        </fence>
    </clusternode>
   </clusternodes>
   <fencedevices>
      <fencedevice agent="fence_apc" ipaddr="apc_ip_example" 
login="login_example" name="apc1" passwd="password_example"/>
Red Hat  Ent erprise Linux 6  Clust er Administ rat ion
86










