User's Guide

1. Run the following command to create a Metrocluster XPCA modular package configuration
file:
# cmmakepkg m dts/mcxpca temp.config
In this command, dts/mcxpca is the Metrocluster XPCA module that needs to be included
to create a Metrocluster XPCA package configuration file.
By default, the Metrocluster XPCA module includes only the Serviceguard volume group module.
If modules other than the Serviceguard modules need to be included, they need to be explicitly
specified while creating the Metrocluster XPCA modular package configuration file.
The following example shows the package IP, the filesystem, and the monitor subnet module
included along with the Metrocluster XPCA module.
# cmmakepkg m dts/mcxpca m sg/filesystem m sg/monitor_subnet -m\
sg/package_ip temp.config
NOTE: Metrocluster is usually used with applications such as Oracle. So, the application
toolkit module must also be included when Metrocluster is used in conjunction with an
application.
For example, when Metrocluster is used in conjunction with the Oracle toolkit, the Oracle
toolkit module and other required modules must also be included with the MC XPCA module.
So, following is the command that must be used:
# cmmakepkg m dts/mcxpca m sg/filesystem -m sg/package_ip -m\
ecmt/oracle/oracle temp.config
2. Create a directory for storing the Metrocluster XPCA environment file on all the nodes where
the package is designated to run.
# mkdir /etc/cmcluster/<package_name>
3. In the newly created modular package configuration file, temp.config, specify the following:
a. The directory created previously for the dts/dts/dts_pkg_dir attribute.
b. The node names in the order in which the package needs to failover.
To avoid an impact on performance, it is recommended to have the package first failover
to local nodes followed by a failover to the remote data center. Edit the
failover_policy parameter to specify the order of nodes that the package fails over
to, in the event of a failover.
For the failover_policy parameter, Metrocluster failover packages can be configured
to use any of the Serviceguard defined failover policies. The site_preferred and
site_preferred_manual failover policies are introduced in Serviceguard specifically
for Metrocluster configurations. The site_preferred value implies that when a
Metrocluster package has to fail over, it will necessarily failover to a node within the
same site of the node it last ran on. Only when there is no other configured node available
within the same site, the package fails over to a node at the other site. The
site_preferred_manual failover policy provides automatic failover of packages
within a site and manual failover across sites. To use either of these policies the underlying
cluster must be configured with sites and each cluster nodes should be associated to a
site. For information on configuring the failover policy to site_preferred or
site_preferred_manual, see “Site Aware Failover Configuration” (page 26).
c. The value of run_script_timeout attribute in the package configuration file. This
attribute must be set to NO_TIMEOUT or to a large enough value to take into consideration
the extra startup time required to obtain status from the P9000 or XP Series disk array.
If you are using a fence level of ASYNC, then the run_script_timeout must be
greater than the value of HORCTIMEOUT in the package environment file.
d. The package_type attribute. It must always be specified as Failover.
182 Building Disaster Recovery Serviceguard Solutions Using Metrocluster with Continuous Access for P9000 and XP