HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)
1. Create a volume group vgtry1 on shared storage.
2. Create a logical volume lvol in vgtry1.
3. Create a filesystem on the logical volume lvol.
4. Create a directory /mnt/vgtry1/apache on the local disk.
5. Mount device /dev/vgtry1/lvol to the /mnt/vgtry1/apache.
6. Copy all the files from the server root to /mnt/vgtry1/apache.
To configure a single instance:
1. For the Apache toolkit package to run, create a directory, such as $SGCONF/pkg/apache1.
This directory must belong to a single Apache toolkit package.
To create the apache toolkit package directory:
a. Copy all Apache toolkit scripts from $SGCONF/apachetoolkit to $SGCONF/pkg/
apache1.
For example:
# mkdir $SGCONF/pkg/apache1
# cd $SGCONF/pkg/apache1
# cp $SGROOT/apachetoolkit/* .
b. To create the package configuration file pkg.conf and package control script pkg.cntl,
you must be in the package directory.
For example:
# cd $SGCONF/pkg/apache1
c. To create the package configuration file and the package control script, run the following
commands:
To create the package configuration file:
# cmmakepkg -p pkg.conf
To create the package control script:
# cmmakepkg -s pkg.cntl
2. Edit the package configuration file.
Enter the following command to open the package configuration file:
# vi $SGCONF/pkg/apache1/pkg.conf
Table 3 (page 12) lists all the variables that you can edit in the package configuration file.
Table 3 List of variables that you can edit
ExampleVariable
APACHE1PACKAGE_NAME
FAILOVERPACKAGE_TYPE
CONFIGURED_NODEFAILOVER_POLICY
MANUALFAILBACK_POLICY
node1NODE_NAME
node2NODE_NAME
YESAUTO_RUN
NONODE_FAIL_FAST_ENABLED
NOTE: The package configuration file contains variables that characterize the package.
The package name and the service name mentioned must be unique.
12 Apache Toolkit