Setting up HP SIM 5.x on an HP-UX Serviceguard Cluster (448492-002, January 2009)

5. Set the permission for the file so that only root has access to hahpsim.sh by using the command:
chmod 700 hahpsim.sh
6. Copy the file to the secondary node.
7. Enter rcp hahpsim.sh sgnode2:/etc/cmcluster/hpsim/hahpsim.sh.
8. Create the package configuration file:
cmmakepkg –v –p hpsim.conf
9. Edit the hpsim.conf file and make the following changes:
PACKAGE_NAME hahpsim
NODE_NAME sgcluster1
NODE_NAME sgcluster2
RUN_SCRIPT /etc/cmcluster/hpsim/hpsim.cntl
HALT_SCRIPT /etc/cmcluster/hpsim/hpsim.cntl
SERVICE_NAME hahpsim_monitor
10. Create the package control file:
cmmakepkg –v –s hpsim.cntl
11. Edit the hpsim.cntl file and make the following changes
Note: The user will have to supply their own IP Address and Subnet:
VOLUME GROUPS section add:
VG[0]=”vg01”
FILESYSTEMS section add:
LV[0]=”/dev/vg01/hpsimsg”
FS[0]=”/hpsimsg”
FS_MOUNT_OPT[0]=”-o rw”
FS_UMOUNT_OPT[0]=””
FS_FSCK_OPT[0]=””
FS_TYPE[0]=”vxfs”
FS_UMOUNT_COUNT=2
IP ADDRESSES section add:
IP[0]=”15.43.209.228”
SUBNET[0]=”15.43.208.0”
SERVICE NAMES AND COMMANDS section add:
SERVICE_NAME[0]=”hahpsim_monitor”
SERVICE_CMD[0]=”/etc/cmcluster/hpsim/hahpsim.sh monitor”
SERVICE_RESTART[0]=””
In the customer_defined_run_cmds function replace “:” with:
/etc/cmcluster/hpsim/hahpsim.sh start
In the customer_defined_halt_cmds function replace “:” with:
/etc/cmcluster/hpsim/hahpsim.sh stop
12. Copy the control script to the other node:
rcp hpsim.cntl sgcluster2:/etc/cmcluster/hpsim