HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)

Configuring PostgreSQL toolkit packages
You can configure PostgreSQL toolkit packages using either legacy or modular style of packaging.
Configuring legacy PostgreSQL toolkit packages
To configure legacy PostgreSQL toolkit packages:
1. Create a directory for the package on all the cluster nodes using the following command:
# mkdir $SGCONF/pkg/postgresql
2. Copy the toolkit files from $SGCONF/postgresqltoolkit to the package directory
$SGCONF/pkg/postgresql.
3. cd to the package directory.
4. Create the package configuration and control templates using the cmmakepkg command:
Configuration template: # cmmakepkg -p pgsql_pkg.conf
Control template:# cmmakepkg -s pgsql_pkg.cntl
5. Edit the following attributes manually in the package configuration file. Table 13 (page 31)
lists the attributes that you can edit manually in the package configuration file.
Table 13 List of attributes that you can edit
ExampleDescriptionAttribute
Configuration file parameters
pgsql_pkgThe package name must be unique
in the cluster.
PACKAGE_NAME
node1The name of the node that runs the
package.
NODE_NAME
$SGCONF/pkg/postgresql/
postgresql.cntl
This is the script to start the service.RUN_SCRIPT
$SGCONF/pkg/postgresql/
postgresql.cntl
This is the script to halt the service.HALT_SCRIPT
pgsql_monitorThe service name must be unique in
the cluster.
SERVICE_NAME
Control Script Parameters
pgsql_vgThis is a volume group created for
the package.
VG[0]
/dev/pgsql_vg/lvol1The logical volume created in VT.LV[0]
/pgsql_mountThis is the file system for database.FS[0]
ext2The FS type is Extended 2.FS_TYPE[0]
aa.bb.ccc.dThis is the package subnet.SUBNET[0]
xx.yy.zzz.aaaThis is the relocatable IP address.IP[0]
pgsql_monitorThe service name must be unique in
the cluster.
SERVICE_NAME[0]
$SGCONF/pkg/postgresql/
toolkit.sh monitor
This is an interface to hapgsql.sh.SERVICE_CMD[0]
-r 0The value for service_restart
can be unlimited, none, or any
SERVICE_RESTART[0]
positive integer value. If the value is
unlimited, the service is restarted
infinite number of times. If the value
is none, the service is not restarted.
Using PostgreSQL toolkit 31