Modular package support in Serviceguard for Linux Toolkits, August 2008

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 for Linux 11.18 or earlier, 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 induce various modifications such as modifying the package
configuration by either reconfiguring the already existing parameters or by adding additional
modules to the package configuration file. The modified package configuration then needs to be
re-applied.
The sequence of operations for modifying the package is:
1) #cmmakepkg –i pkg_old.conf –m <module> pkg_new.conf
This command adds a module, if required, to the already existing package configuration file
pkg_old.conf and creates a new package configuration file pkg_new.conf. The module added
can be any supported module such as a Serviceguard for Linux module or another toolkit module.
Reconfigure the package configuration file appropriately.
If the toolkit configuration file is updated after the package configuration file is created, then the
package configuration file has to be updated by giving the following command.
#cmmakepkg –i pkg_old.conf –m <module> –t toolkit.conf pkg_new.conf
In addition to adding the package parameters, this command extracts the toolkit parameters from
the toolkit.conf file and updates the pkg_new.conf file. Modify the values of existing attributes of
the package conf file, if required.
Note:
In the case of Oracle, Samba and PostgreSQL toolkits, the toolkit configuration file has parameters
that are in turn being used by other parameters in the same file. It is the responsibility of the user
to ensure that the changes done to these parameters are reflected across the toolkit configuration
file.
2) #cmapplyconf –P pkg_new.conf
New package configuration is applied. This completes the migration of legacy toolkit to modular
toolkit.
After putting the package in Maintenance mode
This is the mode supported by the existing toolkit scripts. Kindly refer to the toolkit README file for
more information on this mode.
5