Installation guide

<unfence>
<device name="sanswitch1" port="13" action="on"/>
</unfence>
</clusternode>
</clusternodes>
<fencedevices>
<fencedevice agent="fence_sanbox2" ipaddr="san_ip_example"
login="login_example" name="sanswitch1" passwd="password_example"/>
</fencedevices>
<rm>
</rm>
</cluster>
Note that when you have finished configuring all of the components of your cluster, you will need to
sync the cluster configuration file to all of the nodes, as described in Section 5.15, “ Propagating the
Configuration File to the Cluster Nodes .
5.7.3. Configuring a Backup Fence Device
You can define multiple fencing methods for a node. If fencing fails using the first method, the system
will attempt to fence the node using the second method, followed by any additional methods you
have configured. To configure a backup fencing method for a node, you configure two methods for a
node, configuring a fence instance for each method.
Note
The order in which the system will use the fencing methods you have configured follows their
order in the cluster configuration file. The first method you configure with the ccs command is
the primary fencing method, and the second method you configure is the backup fencing
method. To change the order, you can remove the primary fencing method from the
configuration file, then add that method back.
Note that at any time you can print a list of fence methods and instances currently configured for a
node by executing the following command. If you do not specify a node, this command will list the
fence methods and instances currently configured for all nodes.
ccs -h host --lsfenceinst [node]
Use the following procedure to configure a node with a primary fencing method that uses a fence
device named my_apc, which uses the fence_apc fencing agent, and a backup fencing device that
uses a fence device named sanswi tch1, which uses the fence_sanbo x2 fencing agent. Since the
sanswi tch1 device is a storage-based fencing agent, you will need to configure unfencing for that
device as well.
1. Add a primary fence method for the node, providing a name for the fence method.
ccs -h host --addmethod method node
For example, to configure a fence method named AP C as the primary method for the node
no d e-0 1. example. co m in the configuration file on the cluster node nod e-
0 1. example. co m, execute the following command:
Chapt er 5. Configuring Red Hat Hig h Availabilit y Add- O n Wit h t he ccs Command
81