beautypg.com

3 configuration files – HP StorageWorks Scalable File Share User Manual

Page 34

background image

NOTE:

The gen_hb_config_files.pl scripts only works if the host names in the /etc/

hosts

file appear with the plain node name first, as follows:

192.168.8.151 node1 node1-adm

The script will not work if a hyphenated host name appears first. For example:

192.168.8.151 node1-adm node1

Example

The following example assumes only a single OSS pair, nodes node5 and node6. Each node has
four OSTs. During normal operation, mount the OSTs as follows:

node5:
/dev/mapper/mpath1 /mnt/ost8
/dev/mapper/mpath2 /mnt/ost9
/dev/mapper/mpath3 /mnt/ost10
/dev/mapper/mpath4 /mnt/ost11

node6:
/dev/mapper/mpath7 /mnt/ost12
/dev/mapper/mpath8 /mnt/ost13
/dev/mapper/mpath9 /mnt/ost14
/dev/mapper/mpath10 /mnt/ost15

If either node fails, its OSTs should be mounted on the other node. The lustre_config CSV
input file for that configuration is shown below. Note that each node has a failover NID specified.

node5,options lnet networks=o2ib0,/dev/mapper/mpath1,/mnt/ost8,ost,testfs,icn1@o2ib0,,,,_netdev,icnode6@o2ib0
node5,options lnet networks=o2ib0,/dev/mapper/mpath2,/mnt/ost9,ost,testfs,icn1@o2ib0,,,,_netdev,icnode6@o2ib0
node5,options lnet networks=o2ib0,/dev/mapper/mpath3,/mnt/ost10,ost,testfs,icn1@o2ib0,,,,_netdev,icnode6@o2ib0
node5,options lnet networks=o2ib0,/dev/mapper/mpath4,/mnt/ost11,ost,testfs,icn1@o2ib0,,,,_netdev,icnode6@o2ib0
node6,options lnet networks=o2ib0,/dev/mapper/mpath7,/mnt/ost12,ost,testfs,icn1@o2ib0,,,,_netdev,icnode5@o2ib0
node6,options lnet networks=o2ib0,/dev/mapper/mpath8,/mnt/ost13,ost,testfs,icn1@o2ib0,,,,_netdev,icnode5@o2ib0
node6,options lnet networks=o2ib0,/dev/mapper/mpath9,/mnt/ost14,ost,testfs,icn1@o2ib0,,,,_netdev,icnode5@o2ib0
node6,options lnet networks=o2ib0,/dev/mapper/mpath10,/mnt/ost15,ost,testfs,icn1@o2ib0,,,,_netdev,icnode5@o2ib0

5.2.3 Configuration Files

Four files are required to configure Heartbeat. These files can be generated automatically by the
gen_hb_config_files.pl

script (including the edits to cib.xml described later) using a

command such as:

# gen_hb_config_files.pl -i ilos.csv -v -e -x testfs.csv

Descriptions are included here for reference, or so they can be generated by hand if necessary.
For more information, see

http://www.linux-ha.org/Heartbeat

.

/etc/ha.d/ha.cf

Contains basic configuration information.

/etc/ha.d/haresources

Describes the resources (in this case file systems corresponding to Lustre servers) managed
by Heartbeat.

/etc/ha.d/authkeys

Contains information used for authenticating clusters. It should be readable and writable
by root only.

/var/lib/heartbeat/crm/cib.xml

Contains the Heartbeat V2.1.3 Cluster Information Base. This file is usually generated from
ha.cf

and haresources. It is modified by Heartbeat after Heartbeat starts. Edits to this

file must be completed before Heartbeat is started.

The haresources files for both members of a failover pair (Heartbeat cluster) must be identical.
The ha.cf files should be identical.

34

Using HP SFS Software