k.Set the DC2_HOST _LISTvariable to the list of clustered nodes which resides in Data Center 2. Multiple names are defined using a comma as a separator between the names.

l.Set the QUERY_TIME_OUT variable to the number of seconds to wait for a response from the SMI-S CIMOM in Management Server. The default timeout is 300 seconds. The recommended minimum value is 20 seconds.

7.Distribute Metrocluster/Continuous Access configuration, environment and control script files to other nodes in the cluster by using ftp, rcp or scp:

# rcp -p /etc/cmcluster/pkgname/* \ other_node:/etc/cmcluster/pkgname

See the example script /opt/cmcluster/toolkit/SGCAEVA/Samples/ftpit to see how to semi-automate the copy using ftp.

This script assumes the package directories already exist on all the nodes.

Using ftp might be preferable at your organization, because it does not require the use of a

.rhosts file for root. Root access via .rhosts might create a security issue.

8.Verify that every node in the Serviceguard cluster has the following files in the directory /etc/cmcluster/pkgname:

pkgname.cntl Serviceguard package control script

pkgname_caeva.env Metrocluster Continuous Access EVA environment file pkgname.ascii Serviceguard package ASCII configuration file pkgname.sh Package monitor shell script, if applicable

other files Any other scripts you use to manage Serviceguard packages.

9.Check the configuration using the cmcheckconf -P <pkgname>.config command, then apply the Serviceguard package configuration using the cmapplyconf -P <pkgname>.config command or SAM.

Configuring primary and recovery packages as legacy packages when using EMC SRDF

To configure Primary or Recovery Package on the Source Disk Site or Target Disk Site in legacy style:

1.Create a directory /etc/cmcluster/<pkgname> for the package.

#mkdir /etc/cmcluster/<pkgname>

2.Create a package configuration file.

#cd /etc/cmcluster/<pkgname>

#cmmakepkg -p <pkgname>.ascii

Customize the package configuration file as appropriate to your application. Be sure to include the pathname of the control script (/etc/cmcluster/<pkgname>/<pkgname>.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. Only after primary packages start, use cmmodpkg to enable package switching on all primary packages. Enabling package switching in the package configuration must automatically start the primary package when the cluster starts. However, if there is a source disk site disaster, resulting in the recovery package starting and running on the target disk site, the primary package must not be started until after first stopping the recovery package.

Do not use cmmodpkg to enable package switching on any recovery package. Package switching on a recovery package automatically set by the cmrecovercl command on the target disk site when it successfully starts the recovery package.

3.Create a package control script.

# cmmakepkg -s pkgname.cntl

Customize the control script as appropriate to your application using the guidelines in the Managing Serviceguard user’s guide. Standard Serviceguard package customizations include

Configuring legacy packages 109

Page 109
Image 109
HP Serviceguard Metrocluster manual # mkdir /etc/cmcluster/pkgname