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

Building a Metropolitan Cluster Using MetroCluster/SRDF
Configuring MC/ServiceGuard Packages for Automatic Disaster Recovery
Chapter 4 169
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.
6. In the package_name.ascii file, list the node names in the order in
which you want the package to fail over. It is recommended for
performance reasons, that you have the package fail over locally
first, then to the remote data center. Be sure to set the
MAX_CONFIGURED_PACKAGES parameter to 1 or more, depending on
the number of packages that will run on the cluster.
7. Copy the environment file template
/opt/cmcluster/toolkit/SGSRDF/srdf.env to the package
directory, naming it pkgname_srdf.env:
# cp /opt/cmcluster/toolkit/SGSRDF/srdf.env \
/etc/cmcluster/pkgname/pkgname_srdf.env
8. Edit the environment file <pkgname>_srdf.env as follows:
a. Add the path where the srdf.env SymCLI software binaries have
been installed to the PATH environment variable. If the software
is in the usual location, /usr/symcli/bin, you can just
uncomment the line in the script.
b. 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.
c. 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/package_name, removing any quotes around
the file names.
d. Uncomment the DEVICE_GROUP variables EMC Symmetrix for
the local disk array and set it to the Symmetrix device group
names given in the symdg list command. If you are using an M
by N configuration, configure the DEVICE_GROUP variable with
the name of the consistency group.
e. Uncomment the RETRY and RETRYTIME variables. These variables
are used to decide how often and how many times to retry the
Symmetrix status commands. The defaults should be used for