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

35
To test, try to run the clog package on each node in the cluster. From the “Summary” page, select the
clog package, then from the “Administration” menu, select “Run Package” to run the package on the
first node, then “Move Package” to run the package on the second node.
Configuring a sample package
In this section, you will configure a Serviceguard for Linux package, called ws, for an Apache web
server using scripts from the Apache Toolkit. The content for the web server will reside on the shared
volume group, vgws, and will be accessed from a browser at a relocatable IP address. This way the
user browsing the content will not need to know which node is hosting the web server. He or she can
access the web browser from using a single URL, regardless of which node is hosting the web server.
Configure Package from Serviceguard Manager
1. From your browser on the “HP Serviceguard Manager Summary” page, go to the
“Configuration” menu and select “Create a Single Package…”.
2. Under the “Parameters” tab.
Enter the Package name, for example: ws
Keep other defaults (for example, Type = Failover package).
3. Go to the “Monitored Resources” tab.
a. Check the Subnet, for example: 16.89.84.128
b. Under “Specify Services”, add the following service:
http_monitor
c. Click “<<Add”.
d. Under “Specify Services”, add the following service:
diskmon
e. Check “Halt Timeout” and enter 300 seconds.
f. Click “<<Add”.
4. Edit the control script by clicking the “Edit Control Script” button.
a. For the “Run Script File Path”, use the pre-filled, default path.
b. Select “Edit”.
c. Select “Generate Default” (if the file does not exist).
NOTE: You will be placed in an edit window containing the default control script.
Make sure you save your control script changes within 20 minutes or you could lose
them and have to start over.
d. Locate the VOLUME GROUPS section, look for “#VG[0]”.
e. Add the volume group for the package, for example:
VG[0]=”vgws
f. Locate the FILESYSTEMS section, look for “#LV[0]”.
g. Add the following details about the logical volume and file system, for example:
LV[0]=/dev/vgws/lvol1;
FS[0]=/ws
FS_TYPE[0]="ext3";
FS_MOUNT_OPT[0]="-o rw";
FS_UMOUNT[0]="";
FS_FSCK_OPT[0]="";
h. Locate the IP ADDRESSES section, look for “#IP[0]”.
i. Add the following details for the package relocatable IP address and subnet, for
example:
IP[0]="16.89.84.218"
SUBNET[0]="16.89.84.128"
1. Locate the SERVICE NAMES AND COMMANDS section, look for
“#SERVICE_NAME[0]”.
j. Add the following details:
SERVICE_NAME[0]="http_monitor"