Installation guide

For example, to configure a value for the po st_fai l _d el ay attribute, execute the following
command. This command will overwrite the values of all other existing fence daemon properties that
you have set with this command and restore them to their default values.
ccs -h host --setfencedaemon post_fail_delay=value
To configure a value for the po st_jo i n_d el ay attribute, execute the following command. This
command will overwrite the values of all other existing fence daemon properties that you have set
with this command and restore them to their default values.
ccs -h host --setfencedaemon post_join_delay=value
To configure a value for both the the post_jo i n_d el ay attribute and the post_fai l _d el ay
attribute, execute the following command:
ccs -h host --setfencedaemon post_fail_delay=value post_join_delay=value
Note
For more information about the po st_jo i n_d el ay and po st_fai l _d el ay attributes as
well as the additional fence daemon properties you can modify, refer to the fenced(8) man
page and refer to the cluster schema at /usr/share/cluster/cluster. rng , and the
annotated schema at /usr/share/do c/cman-X. Y . ZZ/cl uster_co nf. html .
To configure a fence device for a cluster, execute the following command:
ccs -h host --addfencedev devicename [fencedeviceoptions]
For example, to configure an APC fence device in the configuration file on the cluster node no d e1
named my_apc with an IP address of apc_ip_exampl e, a login of l o g i n_exampl e, and a
password of passwo rd _example, execute the following command:
ccs -h node1 --addfencedev myfence agent=fence_apc ipaddr=apc_ip_example
login=login_example passwd=password_example
The following example shows the fenced evi ces section of the cl uster.co nf configuration file
after you have added this APC fence device:
<fencedevices>
<fencedevice agent="fence_apc" ipaddr="apc_ip_example"
login="login_example" name="my_apc" passwd="password_example"/>
</fencedevices>
When configuring fence devices for a cluster, you may find it useful to see a listing of available
devices for your cluster and the options available for each device. You may also find it useful to see
a listing of fence devices currently configured for your cluster. For information on using the ccs
command to print a list of available fence devices and options or to print a list of fence devices
currently configured for your cluster, refer to Section 5.6, “ Listing Fence Devices and Fence Device
Options .
To remove a fence device from your cluster configuration, execute the following command:
Red Hat Ent erprise Linux 6 Clust er Administ rat ion
74