HP Serviceguard for Linux Version A.11.20.00 Deployment Guide, August 2012

20
network resolution service you are using (such as DNS, NIS, or LDAP) must be able
to resolve each of their primary addresses on each of those networks to the primary
hostname of the node in question.
You must define name resolution in each node’s /etc/hosts file, rather than rely solely on a service
such as DNS. Configure the name service switch to consult the /etc/hosts file before other services.
Consider a two node cluster (eve and adam) with two private subnets and a public subnet. These
nodes will be granting access by a non-cluster node (bit) which does not share the private subnets.
The /etc/hosts file on both cluster nodes should contain:
16.89.84.245 adam.cup.hp.com adam
16.89.84.247 eve.cup.hp.com eve
Test Volume Group Activation On Each Node
This should be done for each volume group, 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.
You should see the content from each server in the test file.
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.
From an internet browser such as Internet Explorer, invoke HP System Management
Homepage, https://[hostname]:2381. For example:
https://eve.cup.hp.com:2381”.
Change the URL to http://[hostname]:2301 which redirects to https://[hostname]:2381/
Login (use root user and password set during installation of the operating system).
Go to the Tools tab.
Click the “Serviceguard Manager” link to launch the Serviceguard Manager.
Click the “Create Cluster” button on the right.
NOTE: You may see the following message: “There is no cluster configured.
In the Create Cluster window, enter the Cluster Name, for exampleTestand
enter checkmarks in the boxes for both nodes, for example: adam, eve.