HP Serviceguard Toolkit for Oracle Data Guard manual Setting up the package

Models: Serviceguard Toolkit for Oracle Data Guard

1 140
Download 140 pages 15.58 Kb
Page 103
Image 103

NOTE: The following sections describe the method for creating the Serviceguard package using the legacy method. For information on creating the Serviceguard package using the modular method, see the white paper Modular package support in Serviceguard for Linux and ECM Toolkits available at http://www.hp.com/go/hpux-serviceguard-docs —>HP Serviceguard Enterprise Cluster Master Toolkit

Setting up the package

The following procedures include the steps to configure a Serviceguard package running the Apache instance, which includes customizing the Serviceguard package configuration file and package control script. (See Managing ServiceGuard manual available at http://www.hp.com/ go/hpux-serviceguard-docs —>HP Serviceguard " for more detailed instructions on cluster configuration.

The procedures below assume that the user is configuring a Serviceguard Apache package named "http_pkg1", consisting of one service named "http1_monitor". The Apache instance is listening to a relocatable IP address "192.168.0.201" and all of its configuration and document files are on a file system "/shared/apache_1" directory, which resides on a logical volume "lvol1" in a shared volume group "/dev/vg01". Here, it is assumed that the user has already determined the Serviceguard cluster configuration, including cluster name, node names, heartbeat IP addresses, and so on. See the Managing ServiceGuard manual available at http://www.hp.com/go/ hpux-serviceguard-docs —>HP Serviceguard for more detail.

NOTE: To increase the number of packages that may be added to this cluster, modify the cluster configuration file and set the variable MAX_CONFIGURED_PACKAGES to reflect the number of packages to be added to the cluster. After the edit, apply the change to the cluster via cmapplyconf -Ccluster_config_file

Before working on the package configuration, create a directory (for example, /etc/cmcluster/ pkg/http_pkg1) for this package to run. This directory should belong to a single Apache package. Copy all Apache toolkit scripts from the directory /opt/cmcluster/toolkit/apache to the package directory.

For example:

$ mkdir /etc/cmcluster/pkg/http_pkg1 $ cd/etc/cmcluster/pkg/http_pkg1

$ cp/opt/cmcluster/toolkit/apache/*.

To create both the package configuration (http_pkg.conf) and package control

(http_pkg.cntl) files, cd to the package directory (example, cd /etc/cmcluster/pkg/http_pkg1).

1.Create a Serviceguard package control file with command cmmakepkg -s http_pkg.cntl. The package control file must be edited as indicated by the comments in that file. The package control file must be customized to your environment.

For Example:

PACKAGE_NAME http_pkg1

NODE_NAME node1

NODE_NAME node2

Setting up the package 103

Page 103
Image 103
HP Serviceguard Toolkit for Oracle Data Guard manual Setting up the package