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

Edit the customer_defined_run_cmds function to execute the toolkit.sh script with the start
option. In the example below, the line /etc/cmcluster/pkg/ORACLE_TEST0/
toolkit.sh start was added, and the ":" null command line deleted.
For example:
function customer_defined_run_cmds
{
# Start the Oracle database.
/etc/cmcluster/pkg/ORACLE_TEST0/toolkit.sh start
test_return 51
}
Edit the customer_defined_halt_cmds function as shown below to include the check to get the
reason for package halt, that is, whether the package halt is due to a failure of a service or
a user initiated shutdown. Also, execute the toolkit.sh script with the stop option.
For example:
function customer_defined_halt_cmds
{
# Stops the database with a "shutdown abort" or a
# "shutdown immediate" command.
if [ $SG_HALT_REASON = "user_halt" ]; then
reason="user"
else
reason="auto"
fi
/etc/cmcluster/pkg/ORACLE_TEST0/toolkit.sh stop $reason
test_return 52
}
The Serviceguard package configuration file (ORACLE_TEST0.conf).
The package configuration file is created with "cmmakepkg -p", and should be put in the
following location:
'/etc/cmcluster/pkg/${SID_NAME}/${SID_NAME}.conf'
For example:
/etc/cmcluster/pkg/ORACLE_TEST0/ORACLE_TEST0.conf
The configuration file should be edited as indicated by the comments in that file. The package
name must be unique within the cluster. For clarity, use the $SID_NAME to name the package.
PACKAGE_NAME <SID_NAME>
PACKAGE_NAME ORACLE_TEST0
List the names of the clustered nodes to be configured to run the package, using the NODE_NAME
parameter:
NODE_NAME node1
NODE_NAME node2
The service name must match the service name used in the package control script. The service
name should include the Oracle instance name (that is, ${SID_NAME}). In the following
example, since there is only one service for this package, the ${SID_NAME} (that is,
ORACLE_TEST0) is assigned to the SERVICE_NAME parameter.
For example:
Support For Oracle Database without ASM 23