The package configuration process defines the Adaptive Server and its associated resources that are run by the package manager when a package starts on a node in the cluster. The package configuration also includes a prioritized list of cluster nodes on which the package runs as well as defines the different types of failover the package allows. You must defined a package for each companion server.
The name of the Adaptive Server specified in the interfaces file must be the same as the name of the HP MC/ServiceGuard package
For example, for the companion servers described in this manual, you would create a package named MONEY1 for primary companion MONEY1 and another package named PERSONEL1 for secondary companion PERSONEL1
You can use either SAM or MC/ServiceGuard commands to create and customize your package configuration file. This document describes the steps using MC/ServiceGuard commands. See the HP MC/ServiceGuard document for information on how to use SAM to perform these operations
As root, perform the following steps for both the primary and secondary companions:
Create a subdirectory on the primary node in the /etc/cmcluster directory to contain the package information for your primary companion. For example, to create a directory for primary companion MONEY1:
mkdir /etc/cmcluster/MONEY1
Change the permissions for this directory so it is only accessible by root:
chmod 700 /etc/cmcluster/MONEY1
Create the same subdirectory on the secondary node. For example, to create this directory on machine FIN1 for primary companion MONEY1:
rsh FIN1 "mkdir /etc/cmcluster/MONEY1"
Change the permissions for this directory so it is only accessible by root:
rsh FIN1 chmod 700 /etc/cmcluster/MONEY1
Generate a package configuration template for the primary companion using the cmmakepkg command. This command uses the following syntax:
/usr/sbin/cmmakepkg -p /etc/cmcluster/subdirectory_name/companion_name.ascii
Where subdirectory_name is the name of the subdirectory you created in step 1, and companion_name is the name of the companion for which you are configuring the package. For example, to create a package configuration template for primary companion, MONEY1:
/usr/sbin/cmmakepkg -p /etc/cmcluster/MONEY1/MONEY1.ascii
Edit the configuration template file you just created so it specifies the package name, a prioritized list of nodes, the location of the control script, and the failover parameters for each package.
The following are the edits made to the MONEY1.ascii configuration file (your edits will be different):
PACKAGE_NAME MONEY1 FAILOVER_POLICY CONFIGURED_NODE FAILBACK_POLICY MANUAL NODE_NAME FIN1 NODE_NAME HUM1 RUN_SCRIPT /etc/cmcluster/MONEY1/MONEY1.cntl HALT_SCRIPT /etc/cmcluster/MONEY1/MONEY1.cntl SERVICE_NAME MONEY1 SERVICE_FAIL_FAST_ENABLED NO SERVICE_HALT_TIMEOUT 300
Copy this file to the subdirectory on the second node you created in step 3. For example, to copy the MONEY1.ascii file using rcp:
rcp /etc/cmcluster/MONEY1/MONEY1.ascii HUM1:/etc/cmcluster/MONEY1/MONEY1.ascii