Using the Oracle Toolkit in a HP Serviceguard Cluster README Revision: B.06.00, August 2010
To reset the restart counter execute the following command
cmmodpkg [-v] [-n node_name] -R -s service_name package_name
NOTE:- If listener monitoring is not required, then do NOT
configure a new service for listener.
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.
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, i.e.,
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.
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: