Installation guide
ccs -h node01.example.com --addmethod APC node01.example.com
2. Add a fence instance for the primary method. You must specify the fence device to use for the
node, the node this instance applies to, the name of the method, and any options for this
method that are specific to this node:
ccs -h host --addfenceinst fencedevicename node method [options]
For example, to configure a fence instance in the configuration file on the cluster node nod e-
0 1. example. co m that uses the APC switch power port 1 on the fence device named my_apc
to fence cluster node nod e-0 1. example. co m using the method named AP C , execute the
following command:
ccs -h node01.example.com --addfenceinst my_apc node01.example.com
APC port=1
3. Add a backup fence method for the node, providing a name for the fence method.
ccs -h host --addmethod method node
For example, to configure a backup fence method named SAN for the node no d e-
0 1. example. co m in the configuration file on the cluster node no d e-0 1. exampl e. co m,
execute the following command:
ccs -h node01.example.com --addmethod SAN node01.example.com
4. Add a fence instance for the backup method. You must specify the fence device to use for the
node, the node this instance applies to, the name of the method, and any options for this
method that are specific to this node:
ccs -h host --addfenceinst fencedevicename node method [options]
For example, to configure a fence instance in the configuration file on the cluster node nod e-
0 1. example. co m that uses the SAN switch power port 11 on the fence device named
sanswi tch1 to fence cluster node no d e-0 1. exampl e. co m using the method named SAN,
execute the following command:
ccs -h node01.example.com --addfenceinst sanswitch1
node01.example.com SAN port=11
5. Since the sanswi tch1 device is a storage-based device, you must configure unfencing for
this device.
ccs -h node01.example.com --addunfence sanswitch1
node01.example.com port=11 action=on
You can continue to add fencing methods as needed.
This procedure configures a fence device and a backup fence device for one node in the cluster. You
will need to configure fencing for the other nodes in the cluster as well.
Red Hat Ent erprise Linux 6 Clust er Administ rat ion
82