HP Serviceguard Enterprise Cluster Master Toolkit User Guide, December 2012 (5900-2145)
Example 1
Another example to create the Serviceguard package using modular method:
1. Create the modular package configuration file pkg.conf by including the ECMT Oracle
toolkit module.
# cmmakepkg -m ecmt/oracle/oracle pkg.conf
where:
nl
'ecmt/Oracle/Oracle' is the ECMT Oracle toolkit module name.
pkg.conf is the name of the package configuration file.
2. Configure the following Serviceguard parameters in the pkg.conf file:
package_name — Set to any name desired
package_type — Set to failover
Edit the service parameters if necessary. The service parameters are preset to:
service_name Oracle_service
service_cmd "$SGCONF/scripts/ecmt/oracle/tkit_module.sh Oracle_monitor"
service_restart none
service_fail_fast_enabled no
service_halt_timeout 300
service_name Oracle_listener_service
service_cmd "$SGCONF/scripts/ecmt/oracle/tkit_module.sh Oracle_monitor_listener"
service_restart none
service_fail_fast_enabled no
service_halt_timeout 300
service_name oracle_hang_service
service_cmd "$SGCONF/scripts/ecmt/oracle/tkit_module.sh oracle_hang_monitor 30 failover"
service_halt_timeout 300
If the listener is not configured, comment the second set of service parameters which are used
to monitor the listener.
3. Configure the toolkit parameter TKIT_DIR. This parameter is synonymous to the package
directory. On a cmapplyconf, TKIT_DIR contains the toolkit configuration file
haoracle.conf on all configured nodes. Configure the other toolkit parameters for the
database package .
4. Apply the package configuration using the following command:
# cmapplyconf -P pkg2.conf
This command creates the package using the values specified in the package configuration
file. If the toolkit configuration directory defined by TKIT_DIR parameter is not present on
all the target nodes, it creates the directory and then creates the toolkit configuration file in it
with the values specified in the pkg.conf file.
For more information on modular packages, see whitepaper Modular package support in
Serviceguard for Linux and ECM Toolkits available at http://www.hp.com/go/
hpux-serviceguard-docs —>HP Serviceguard Enterprise Cluster Master Toolkit.
For more information see the whitepaper "Migrating Packages from Legacy to Modular Style,
October 2007" . Available at http://www.hp.com/go/hpux-serviceguard-docs -> HP Enterprise
Cluster Master Toolkit .
5. For a running database package, if the value of any of the package attribute needs to be
modified, the package must be restarted. To update the attribute values of a running database
package, follow these steps:
a. Edit the package configuration file and populate the new values.
b. Halt the package.
c. Apply the package configuration file.
d. Start the package.
Supporting Oracle ASM Instance and Oracle Database with ASM
28 Using the Oracle Toolkit in an HP Serviceguard Cluster