Configuring HP Serviceguard Toolkit for Oracle Data Guard

14
ODG package configuration example
This section explains an ODG package configuration example.
Follow the instructions in the chapter Building an HA Cluster Configurationin the manual
Managing HP Serviceguardto create the logical volume infrastructure on shared disks. The disk
must be available to all clustered nodes that will be configured to run the ODG Toolkit. Create file
systems on all logical volumes on the volume groups.
The ODG Toolkit can be configured in one of the following methods:
a) Install directory method: Here the scripts remain in the installation directory.
b) Configuration directory method: Here the user has to copy the scripts from the installation directory
(including contents of subdirectories) to the configuration directory and define this location in the
parameterTKIT_DIRin the package configuration file. The users can modify the scripts in the
configuration directory to add any specific requirements. Serviceguard first tries to use the hadg.sh
script in the configuration directory. If the script is not found in the configuration directory, it takes it
from the installation directory.
The example configuration uses the installation directory mode operation. This example on ODG
Package Setup and Configuration is for an ODG configuration using LVM.
The example illustrates the creation of a package for ODG in a single-instance environment.
a. Creating a package configuration
Create two packages: one for the primary database on the Primary Cluster and the other for the
standby database on the Standby Cluster.
Create a directory in /etc/cmcluster, for example, “dataguard.This directory will eventually become
TKIT_DIR and cdto this directory.
Run the following commands to create the package configuration file templates. Note that the ODG
Toolkit has to be used in combination with the ECMT Toolkit (in case of a single-instance database).
A combinational package is the one in which two applications are packaged together by combining
their respective Serviceguard modules into one package.
In the example below, the ODG Toolkit module has been used with the ECMT Oracle modules as
follows:
#cmmakepkg -m ecmt/oracle/oracle -m tkit/dataguard/dataguard dgpkg.conf
b. Specifying configuration parameters in the package
Once the package configuration file has been created, the user must specify various parameter
values. Only the parameters that are to be modified in dgpkg.conf specifically for this configuration
are shown here.
Note that the package configuration file shown below contains attributes of both the ECMT Oracle
Toolkit and the ODG Toolkit.
NOTE: The following attributes are specific to the Oracle Toolkit in ECMT
#
# package_nameis the name that is used to identify the package.
# Package names must be unique within a cluster.
#