Building Disaster Recovery Serviceguard Solutions Using Metrocluster with Continuous Access EVA A.05.01

Configuring Site Controller package using Command Line Interface
This section describes the procedure to configure the Site Controller package in a Metrocluster
using command-line interface. The procedure consists of three steps:
Configuring an empty Site Controller package
Follow these guidelines while configuring an empty Site Controller package:
Set the default value of the priority parameter to no_priority. The Site Controller
Package must not be subjected to any movement because of package prioritization. Therefore,
you must not change this default value.
Set the default value of the failover_policy parameter for the Site Controller package to
site_preferred. Based on your requirement, you can set the value to
site_preferred_manual.
The site_preferred value implies that during a Site Controller package failover, while
selecting nodes from the list of the node_name entries, the Site Controller Package fails over
to the nodes that belong to the site of the node it last ran on, rather than the nodes that belong
to the other site. The site_preferred_manual failover policy provides automatic failover
of packages within a site and manual failover across sites.
To configure the Site Controller package for the complex workload:
1. From any node, create a Site Controller package configuration file using the dts/sc module.
# cmmakepkg -m dts/sc -m dts/mccaeva
/etc/cmcluster/cw_sc/cw_sc.config
2. Edit the cw_sc.config file and specify the following:
IMPORTANT: Ensure there are no packages configured with the critical_package or
managed_package attributes in the Site Controller package configuration file.
a. Name for the package_name attribute:
package_name cw_sc
b. Names of the nodes explicitly using the node_name attribute.
c. The directory created in step 1 for the dts/dts/dts_pkg_dir attribute.
dts/dts/dts_pkg_dir /etc/cmcluster/cw_sc
d. Specify a name for the log file.
script_log_file /etc/cmcluster/cw_sc/cw_sc.log
e. Specify the sites without any packages.
Do not specify any packages using with critical_package or managed_package
attributes.
site site1
site site2
For example:
site san_francisco
site san_jose
3. Edit EVA module parameters in the package configuration file, cw_sc.config to match your
enviromment.
4. Apply the empty Site Controller package configuration file.
# cmapplyconf -P /etc/cmcluster/cw_sc/cw_sc.config
When the Site Controller package configuration is applied, the corresponding Site Safety
Latch is also configured automatically in the cluster.
46 Configuring complex workloads using Site Aware Disaster Tolerant Architecture (SADTA)