HP Enterprise Cluster Master Toolkit User Guide (5900-2131, December 2011)

SERVICE_CMD[0]="/etc/cmcluster/asm_package_mnp/toolkit.sh monitor"
SERVICE_RESTART[0]="-r 2"
Add in the customer_defined_run_cmds function:
/etc/cmcluster/asm_package_mnp/toolkit.sh start
Add in the customer_defined_halt_cmds function:
if [ $SG_HALT_REASON = "user_halt" ]; then
reason="user"
else
reason="auto"
fi
/etc/cmcluster/asm_package_mnp/toolkit.sh stop $reason
Here, "user" indicates that the package halt is a user initiated halt and "auto" indicates that
the package is being failed over automatically due to package dependencies, failure of a
service, or due to dependent package failures.
Distribute the package configuration file, package control script, and the framework scripts
to all nodes, and then apply the package configuration.
# cmapplyconf -P asmpkg.conf
Run the ASM package.
cmrunpkg asmpkg_name
Check the package status using cmviewcl. Verify that the ASM instance is running on all
the nodes.
2. Database Failover Package Setup and Configuration
Create your own database package directory under /etc/cmcluster, and copy over the
files shipped in the bundle.
Log in as root:
# mkdir /etc/cmcluster/db1_package
# cd /etc/cmcluster/db1_package
Copy the framework scripts provided to this location:
cp /opt/cmcluster/toolkit/oracle/* .
Edit the configuration file haoracle.conf for the database failover package to fit your Oracle
environment. Set the following parameters in the configuration file:
ORA_CRS_HOME=/app/oracle/crs # . This attribute is needed only when this toolkit is used
in an SGeRAC cluster.
INSTANCE_TYPE=database
ORACLE_HOME=/ORACLE_TEST0
ORACLE_ADMIN=oracle
SID_NAME=ORACLE_TEST0
ASM=yes
ASM_DISKGROUP[0]=asm_dg1
ASM_DISKGROUP[1]=asm_dg2
ASM_VOLUME_GROUP[0]=vgora_asm1
ASM_VOLUME_GROUP[1]=vgora_asm2
ASM_HOME=/ASM_TEST0
ASM_USER=oracle
ASM_SID=+ASM
LISTENER=yes
LISTENER_NAME=LSNR_TEST0
LISTENER_PASS=
PFILE=${ORACLE_HOME}/dbs/init${SID_NAME}.ora
MONITOR_PROCESSES[0]=ora_pmon_${SID_NAME}
MONITOR_PROCESSES[1]=ora_dbw0_${SID_NAME}
MONITOR_PROCESSES[2]=ora_ckpt_${SID_NAME}
42 Using the Oracle Toolkit in an HP Serviceguard Cluster