1 generating the cib.xml file, 2 editing cib.xml, 4 copying files – HP StorageWorks Scalable File Share User Manual
Page 47

node6 Filesystem::/dev/mapper/mpath8::/mnt/ost13::lustre
node6 Filesystem::/dev/mapper/mpath9::/mnt/ost14::lustre
node6 Filesystem::/dev/mapper/mpath10::/mnt/ost15::lustre
The haresources files are identical for both nodes of a failover pair. Each line specifies the
preferred node (node5), LUN (/dev/mapper/mpath8), mount-point (/mnt/ost8) and file
system type (lustre).
authkeys
The etc/ha.d/authkeys file for the sample configuration is shown below:
auth 1
1 sha1 HPSFSg3Key
The authkey file describes the signature method and key used for signing and checking packets.
All HP SFS G3.1-0 cluster nodes can have the same authkeys file. The key value, in this case
HPSFSg3Key
, is arbitrary, but must be the same on all nodes in a failover pair.
5.2.3.1 Generating the cib.xml File
The cib.xml file is generated using a script that comes with Heartbeat, /usr/lib64/
heartbeat/haresources2cib.py
, from ha.cf and haresources. By default,
haresources2cib.py
reads the ha.cf and haresources files from /etc/ha.d and writes
the output to /var/lib/heartbeat/crm/cib.xml.
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.1-0.
•
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
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
47