Installation guide
Example 7.7, “cl uster. co nf: Fencing Nodes with Dual Power Supplies”
Note
The examples in this section are not exhaustive; that is, there may be other ways to configure
fencing depending on your requirements.
Examp le 7.3. APC Fen ce D evice 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>
        </fence>
    </clusternode>
    <clusternode name="node-02.example.com" nodeid="2">
        <fence>
        </fence>
    </clusternode>
    <clusternode name="node-03.example.com" nodeid="3">
        <fence>
        </fence>
    </clusternode>
   </clusternodes>
   <fencedevices>
        <fencedevice agent="fence_apc" ipaddr="apc_ip_example" 
login="login_example" name="apc" passwd="password_example"/>
   </fencedevices>
   <rm>
   </rm>
</cluster>
In this example, a fence device (fenced evi ce) has been added to the fenced evi ces element,
specifying the fence agent (agent) as fence_apc, the IP address (i pad d r) as 
apc_i p_exampl e, the login (l o g i n) as l o g i n_exampl e, the name of the fence device (name)
as apc, and the password (passwd ) as passwo rd _exampl e.
Examp le 7.4 . Fen ce Met h o d s 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">
Fencin g Configurat ion Examples
111










