HP Serviceguard for Linux Version A.11.18 Deployment Guide, August 2008

33
Test Volume Group Activation On Each Node
This should be done for each volume group, vgws and vgclog to verify volume group activation on
each server. The steps shown here are for vgws.
1. On the first server (for example, adam)
a. Activate volume group:
vgchange -–addtag $(uname –n) vgws
vgchange -a y vgws
mount /dev/vgws/lvol1 /ws
b. Write test file to volume group:
echo “Written by” `hostname` “on” `date` > /ws/test
cat /ws/test
NOTE: If you try to activate vgws on the other server, it should fail. For example:
vgchange -a y vgws
0 logical volume(s) in volume group "vgws" now active
c. Deactivate the volume group:
umount /dev/vgws/lvol1
vgchange -a n vgws
vgchange –-deltag $(uname –n) vgws
2. Repeat the steps on the second server.
Configure the cluster
In the next steps, you will create the cluster, define the node membership, configure the cluster
heartbeat and cluster lock LUN device.
1. From an internet browser such as Internet Explorer, invoke HP System Management
Homepage, https://[hostname]:2381. For example:
https://eve.cup.hp.com:2381
2. Login (use root user and password set during installation of the operating system).
3. Go to the Tools tab.
4. Click the “Serviceguard Manager” link to launch the Serviceguard Manager.
5. Click the “Create Cluster” button on the right.
NOTE: You may see the following message: There is no cluster configured.
6. In the Create Cluster window, enter the Cluster Name, for example “Test and
enter checkmarks in the boxes for both nodes, for example: adam, eve.
7. Go to the Network tab,
Enter in the “Subnets” section, for example:
Subnet: 16.89.84.128, Type: Heartbeat
Enter in the “Select Subnet Configuration” section, for example:
Node Network Address
adam bond0 16.89.84.245
eve bond0 16.89.84.247
8. Go to the Lock tab
For the Cluster Lock Type, Select “Lock Lun”
Enter the Lock Lun Path for each node, for example:
Node Lock Lun Path
adam /dev/mapper/mpath0
eve /dev/mapper/mpath0
Select OK.