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

DescriptionAttributes
For DB2 HADR Service
Name of the service that Serviceguard monitors while
the package is up. This name must be unique for both
service_name
primary and standby packages in a Serviceguard
cluster. The default value is db2hadr_service.
$SGCONF/scripts/tkit/db2hadr/
tkit_module.sh db2hadr_monitor
service_cmd
This attribute specifies the number of times the service
was restarted before failing. The default value is [none].
service_restart
This attribute enables Serviceguard to halt the node if
the service fails on that node. The default value is set to
[no].
service_fail_fast_enabled
It is used to determine the duration for which
Serviceguard waits for the service to halt before a
SIGKILL signal. The default value is [300 seconds].
service_halt_timeout
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:
# cmrunpkg <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.
Perform the following steps to work with the package maintenance mode:
42 Serviceguard toolkit for DB2 High Availability Disaster Recovery