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

Physical Data Replication for ContinentalClusters Using EMC SRDF
Setting up a Primary Package on the Primary Cluster
Chapter 7 339
6. Create an MC/ServiceGuard Application package configuration file
with the commands:
# cd /etc/cmcluster/<pkg_name>
# cmmakepkg -p <pkg_name>.conf
Customize it as appropriate to your application. Be sure to include
Node names, the pathname of the control script
(/etc/cmcluster/<pkg_name>/<pkg_name>.cntl) for the RUN_SCRIPT
and HALT_SCRIPT parameters.
Also change AUTO_RUN (PKG_SWITCHING_ENABLED in ServiceGuard
A.11.09) to NO. This will ensure that the application packages will
not start automatically. (the ccmonpkg will be set to yes) Define the
service (as required)
7. 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.
8. 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.
9. Edit the environment file <pkg_name>_srdf.env as follows:
Add the path where the SymCLI software binaries have been
installed to the PATH environment variable. The usual location is
currently /usr/symcli/bin
Uncomment AUTO* environment variables. It is recommended that
you retain the default values of these variables unless you have a
specific business requirement to change them. See Appendix B for
an explanation of these variables.
a. Uncomment the PKGDIR variable and set it to the full path name
of the directory where the control script has been placed. This
directory must be unique for each package and is used for status
data files. For example, set PKGDIR to
/etc/cmcluster/<pkg_name>.