Designing Disaster Tolerant High Availability Clusters, 10th Edition, March 2003 (B7660-90013)

Physical Data Replication for ContinentalClusters Using Continuous Access XP
Setting up a Recovery Package on the Recovery Cluster
Chapter 6308
Create an MC/ServiceGuard package configuration file in the
recovery cluster with the commands:
# cd /etc/cmcluster/<package_name>
# cmmakepkg -p <package_name>.ascii
Customize it as appropriate to your application. Be sure to include
the pathname of the control script (/etc/cmcluster/<package_name>/
<package_name>.cntl) for the RUN_SCRIPT and HALT_SCRIPT
parameters.
Set the AUTO_RUN flag to NO. This is to ensure the package will not
start when the cluster starts. Do not use cmmodpkg to enable
package switching on any recovery package. Enabling package
switching will automatically start the recovery package. Package
switching on a recovery package will be automatically set by the
cmrecovercl command on the recovery cluster when it successfully
starts the recovery package.
4. Create a package control script with the command:
# cmmakepkg -s pkgname.cntl
Customize the control script as appropriate to your application using
the guidelines in Managing MC/ServiceGuard. Standard
MC/ServiceGuard package customizations include modifying the VG,
LV, FS, IP, SUBNET, SERVICE_NAME, SERVICE_CMD and
SERVICE_RESTART parameters. Be sure to set LV_UMOUNT_COUNT to 1
or greater.
NOTE Some of the control script variables, such as VG and LV, on the
recovery cluster must be the same as on the primary cluster. Some
of the control script variables, such as, FS, SERVICE_NAME,
SERVICE_CMD and SERVICE_RESTART are probably the same as on the
primary cluster. Some of the control script variables, such as IP and
SUBNET, on the recovery cluster are probably different from those on
the primary cluster. Make sure that you review all the variables
accordingly.
5. Add customer-defined run and halt commands in the appropriate
places according to the needs of the application. See Managing
MC/ServiceGuard for more information on these functions.