HP Serviceguard Enterprise Cluster Master Toolkit User Guide, December 2012 (5900-2145)

Creating Serviceguard package using the modular method
To create a Serviceguard package using the modular method:
1. Create a directory for the package on all the cluster nodes using the following command:
# mkdir /etc/cmcluster/EDB
2. cd to the package directory.
3. Create a configuration file, edb.conf using the following command:
# cmmakepkg -m ecmt/edb/edb edb.conf
4. Edit the following attributes manually in the package configuration file:
DescriptionAttributes
The package name must be unique in the cluster.package_name
The package must be a failover package.package_type
It is the name of the cluster nodes on which the package
runs.
node_name
It is the package log file path where the package log is
stored.
script_log_file
This directory is synonymous to the package directory.
To set the toolkit in the maintenance mode, create the
file edb.debug under this directory.
TKIT_DIR
This variable specifies the directory in which the EDB
data files are stored.
NOTE: The directory name specified for
DB_DATA_DIR must have the read and write permission
for the EDB administrator.
DB_DATA_DIR
For Example: DB_DATA_DIR /data/9.0AS/data
This variable specifies the log file for a particular EDB
instance.
NOTE: The parent directory where DB_LOG_FILE
resides must have the read and write permission for the
EDB administrator.
DB_LOG_FILE
For Example: DB_LOG_FILE /data/9.0AS/data/
pg_log/startup.log
This variable specifies the binary location of EDB.DB_HOME
For Example: DB_HOME /opt/PostgresPlus/9.0AS
It is the user name of the EDB administrator.DB_USER
For Example: DB_USER edb
Set the maintenance flag to set the package to the
maintenance mode. By default, the value is set to yes.
MAINTENANCE_FLAG
Specify the email address to which you want to send
the alerts. The Send mail option must be configured
ALERT_MAIL_ID
properly to ensure that the alert mails reach this email
address.
The time, in seconds, the monitoring script will wait
between checks to make sure that EnterpriseDB is
running. The default value is 30 seconds.
MONITOR_INTERVAL
Specify the volume group to be used by the EnterpriseDB
for DATA_DIR.
vg
138 Using HP Serviceguard Toolkit for EnterpriseDB PPAS in an HP Serviceguard Cluster