HP Serviceguard Toolkits for Database Replication Solutions User Guide, March 2012

5. After the package configuration file is edited, save the file.
6. To validate the package configuration file, run the command:
cmcheckconf P pkg.conf
7. To apply the command if the cmcheckconf command succeeds, run the command:
cmapplyconf -P pkg.conf
8. Confirm if you want to modify the package configuration. The default value is [yes]
9. To enable auto run and package failover, run the following commands,
$ cmmodpkg -e -n <node1> -n <node2> hadrpkg
and, $ cmmodpkg -e hadrpkg
10. To verify that the package is created, run the cmviewcl command.
Managing packages
Running packages
To start the DB2 database and DB2 HADR, start the package using the following command, if you
have used the combined packaging method to create packages:
# cmrunpkg <package_name>.
To start the DB2 database and DB2 HADR, when the separate packaging method is used to create
packages:
1. Start the dependent ECMT DB2 packages before starting the HADR packages using the
following command:
# cmrunpkg <db2_package_name>
2. Start the HADR package using the following command:
# cmrunpkg <hadr_package_name>
NOTE:
The start command is the same for both primary and standby packages.
You must start the standby package before starting the primary package. Otherwise, the
primary package fails to start.
Maintaining packages
When packages are set to the maintenance mode, it handles the maintenance work on both DB2
database and DB2 HADR without bringing down the package. You can set both combined and
separate packages to maintenance mode.
Maintaining combined packages
Perform the following steps to work with the toolkit maintenance mode for combined 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 package, in the TKIT_DIR path create the db2.debug
file.
3. To stop the maintenance mode and bring back the package in the running state, remove the
db2.debug file from the TKIT_DIR directory.
Maintaining separate packages
Perform the following steps to work with the toolkit maintenance mode for separate packages:
48 Serviceguard toolkit for DB2 High Availability Disaster Recovery