Modular Package Support in Serviceguard for Linux and ECM Toolkit

4
For example, the service parameters in the package configuration file created on Linux with the
apache module included will be preset with the below values:
service_name service_apache
service_cmd “$SGCONF/scripts/tkit/apache/tkit_module.sh apache_monitor"
Please refer to Chapter 6 of the document Managing Serviceguard Fifteenth Edition for details on
how to modify the package configuration file at http://docs.hp.com/en/ha.html.
Creating the package
The user creates a package configuration file in their chosen location, such as /tmp, and then
modifies it. He/She then needs to configure the parameter TKIT_DIR in the package configuration
file, the Serviceguard parameters and the toolkit configuration parameters. The modified package
configuration file then needs to be applied. The steps for setting up a package are as follows:
Note:
For illustration purposes, HP Apache is taken as example. Configuration of other toolkits will also
follow along similar lines unless mentioned otherwise.
1) #cmmakepkg –m ecmt/apache/apache pkg.conf
Creates the package configuration file 'pkg.conf' by including the toolkit ADF attributes which need
to be configured later by the user for all necessary parameters including TKIT_DIR. For creating a
modular package for Linux Apache, issue the following command.
#cmmakepkg –m tkit/apache/apache pkg.conf
2) Configure all the required package parameters including TKIT_DIR.
Note: Kindly refer the README documents of the toolkit for assistance on how to configure the
toolkit specific parameters.
Also refer to the whitepaper Migrating Packages from Legacy to Modular Style, October 2007 for
more information at http://docs.hp.com/en/ha.html.
3) #cmapplyconf –P pkg.conf
This command ‘applies’ the package configuration to the CDB (Serviceguard Configuration
Database). It also creates toolkit configuration directory defined by TKIT_DIR on all target nodes, if
not already present and then creates the toolkit configuration file in it with the values specified in
the pkg.conf file.
Modifying the package
Modifying the parameters of a package can be done in two ways: after halting the package or
after putting the package in maintenance mode.
After halting the package
If the user is using Serviceguard 11.18 and above, he/she needs to halt the package before its
configuration can be modified. After the package configuration has been modified and applied,
the user might want to introduce various modifications such as modifying the package
configurationby either reconfiguring the already existing parameters or by adding additional