HP Serviceguard for Linux Version A.11.19 Deployment Guide, September 2012

32
Create Package from Serviceguard Manager
1. From your browser on the HP Serviceguard Manager Summary page, go to the
Configuration menu and select “Create a Package…”.
2. Under the Create a Modular Packageheading, you will find a link to create legacy
package. Click on the link to create a legacy package.
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:
c. Click “<<Add”.
d. Under “Specify Services”, add the following service:
e. Check “Halt Timeout” and enter 300 seconds.
f. Click “<<Add”.
3. 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 section, look for “ .
e. Add the volume group for the package, for example:
f. Locate the section, look for “ .
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 section, look for .
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"
SERVICE_CMD[0]="/usr/local/cmcluster/conf/ws/toolkit.sh monitor"
SERVICE_RESTART[0]="-r 0"
SERVICE_NAME[1]="diskmon"
SERVICE_CMD[1]="/usr/local/cmcluster/bin/cmresserviced
/dev/mapper/mpath0p1"
SERVICE_RESTART[1]=""
SERVICE_FAIL_FAST_ENABLED[1]="no"
SERVICE_HALT_TIMEOUT[0]="300"
NOTE: Make sure the SERVICE_NAME’s match the names of the Services added
earlier under “Monitored Resources” in Step #3.