Installation guide

3. Add a fence instance for the first power supply to the fence 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. At this point you configure the
actio n attribute as o ff.
ccs -h host --addfenceinst fencedevicename node method [options]
action=off
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 apc1 to
fence cluster node nod e-0 1. exampl e. co m using the method named AP C -d ual , and
setting the acti o n attribute to o ff, execute the following command:
ccs -h node01.example.com --addfenceinst apc1 node01.example.com
APC-dual port=1 action=off
4. Add a fence instance for the second power supply to the fence 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. At this point you configure the
actio n attribute as o ff for this instance as well:
ccs -h host --addfenceinst fencedevicename node method [options]
action=off
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 ff,
execute the following command:
ccs -h node01.example.com --addfenceinst apc2 node01.example.com
APC-dual port=1 action=off
5. At this point, add another fence instance for the first power supply to the fence method,
configuring the acti o n attribute as o n. 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, and specifying the acti o n attribute as o n:
ccs -h host --addfenceinst fencedevicename node method [options]
action=on
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 apc1 to
fence cluster node nod e-0 1. exampl e. co m using the method named AP C -d ual , and
setting the acti o n attribute to o n, execute the following command:
ccs -h node01.example.com --addfenceinst apc1 node01.example.com
APC-dual port=1 action=on
6. Add another fence instance for second power supply to the fence method, specifying the
actio n attribute as o n for this instance. 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 as well as the acti o n attribute of o n.
Chapt er 5. Configuring Red Hat Hig h Availabilit y Add- O n Wit h t he ccs Command
85