HP Serviceguard Toolkits for Database Replication Solutions User Guide (November 2011)

Perform the following steps to work with the toolkit maintenance mode for separate packages:
1. To enable the maintenance mode, in the Package Configuration file, set the
MAINTENANCE_FLAG attribute to [Yes ] before applying the cmapplyconf command.
2. To start the maintenance mode for the HADR package in the TKIT_DIR of HADR package,,
create the hadr.debug file.
NOTE:
If you set the dependent ECMT DB2 package in the maintenance mode (create db2.debug
file in the TKIT_DIR of the ECMT DB2 package), the HADR package automatically goes
to the maintenance mode, because the HADR package is dependent on the ECMT DB2
package.
If the ECMT DB2 package fails, the dependent HADR packages also fail, even if it is in
the maintenance mode. This is because of the Serviceguard behavior, that is, when a
package on which other packages depend, fails, all the dependent packages also fail.
For more information on how to set the ECMT DB2 package in the maintenance mode, see
the latest HP Serviceguard Enterprise Cluster Master Toolkit User Guide manual at
www.hp.com/go/hpux-serviceguard-docs HP Serviceguard Enterprise Cluster Master
Toolkit.
3. To stop the maintenance mode and bring the package back to the running state, remove the
hadr.debug file from the TKIT_DIR directory of the HADR package.
If you stop maintenance for the dependent ECMT DB2 package (that is, remove the db2.debug
file from the TKIT_DIR of the ECMT DB2 package), the HADR package also stops the
maintenance mode.
Halting packages
To halt a package, run the following command:
# cmhaltpkg <package_name>
NOTE:
It is recommended to stop the primary package before stopping the standby package. This
ensures that the standby database is in sync with the primary database.
If you have used the separate packaging method to create a package, halt the dependent
HADR packages before you halt the corresponding ECMT DB2 package.
Managing packages 49