2 editing cib.xml, 4 copying files – HP StorageWorks Scalable File Share User Manual
Page 51

haresources2cib.py
reads the ha.cf and haresources files from /etc/ha.d and writes
the output to /var/lib/heartbeat/crm/cib.xml.
The haresources2cib.py script is executed by gen_hb_config_files.pl.
5.2.3.2 Editing cib.xml
The haresources2cib.py script places a number of default values in the cib.xml file that
are unsuitable for HP SFS G3.2-0. The changes to the default action timeout and the stonith
enabled values are incorporated by gen_hb_config_files.pl.
•
By default, a server fails back to the primary node for that server when the primary node
returns from a failure. If this behavior is not desired, change the value of the
default-resource-stickiness attribute from 0 to INFINITY. The following is a sample of the
line in cib.xml containing this XML attribute:
<nvpair id="cib-bootstrap-options-default-resource-stickiness"
name="default-resource-stickiness" value="0"/>
•
To provide Lustre servers adequate start-up time, the default action timeout must be
increased from "20s" to "600s". Below is a sample of the line containing this XML attribute:
<nvpair id="cib-bootstrap-options-default-action-timeout"
name="default-action-timeout" value="20s"/>>
•
By default, stonith is not enabled. Enable stonith by changing the attribute shown below
from false to true:
<nvpair id="cib-bootstrap-options-stonith-enabled"
name="stonith-enabled" value="false"/>
5.2.4 Copying Files
Using the -c option to the gen_hb_config_files.pl script, as recommended in
“Configuration Files” (page 49)
, automatically copies the Heartbeat configuration files to all
servers and verifies permissions and ownerships are set correctly. If you need to manually restore
any of the files, additional detail about the functionality is provided below.
•
Makes the Lustre mount points on the primary and backup servers
•
Copies the heartbeat files to server locations:
— /etc/ha.d/ha.cf
— /etc/ha.d/haresources
— /var/lib/heartbeat/crm/cib.xml
•
Sets the file owner, group, and permission settings of
/var/lib/heartbeat/crm/cib.xml
. The gen_hb_config_files.pl script stops
heartbeat to update the ownership:group settings before installing the
/var/lib/heartbeat/crm/cib.xml
file.
The ha.cf, haresources, authkeys, and cib.xml files must be copied to the nodes in the
failover pair. The authkeys, ha.cf, and haresources files go in /etc/ha.d. The cib.xml
file must be copied to /var/lib/heartbeat/crm/cib.xml and must be owned by user
hacluster
, group haclient. The /etc/ha.d/authkeys file must be readable and writable
only by root (mode 0600).
Files ending in .sig or .last must be removed from /var/lib/heartbeat/crm before
starting Heartbeat after a reconfiguration. Otherwise, the last cib.xml file is used, rather than
the new one.
5.2 Configuring Heartbeat
51