HP Serviceguard Toolkits for Database Replication Solutions manual RAC environment

Page 28

#

#"vg" is used to specify which volume groups are used by this package.

vgvgora

------------------------------------------------------------------------

#"fs_name", "fs_directory", "fs_mount_opt", "fs_umount_opt", "fs_fsck_opt",

#and "fs_type" specify the file systems which are used by this package.

#

 

fs_name

/dev/vgora/lvol1

fs_directory

/oradb

fs_type

"vxfs"

fs_mount_opt

"-o rw"

#fs_umount_opt

 

#fs_fsck_opt

 

------------------------------------------------------------------------

RAC environment

The below mentioned example illustrates the creation of a package for ODG in a RAC environment.

1.To create a package configuration

a.Create two packages. One for the primary RAC database on the primary cluster and the other for the standby RAC database on the standby cluster.

b.Create a directory in /etc/cmcluster,

for example, /etc/cmluster/pkg/racdgpkg

This directory becomes TKIT_DIR and cd to this directory.

c.Run the commands to create the package configuration file Templates. In this example, the ODG toolkit module is used with the SGeRAC toolkit modules as follows:

#cmmakepkg -m sg/multi_node_all -m sgerac/erac_tk_rac -m tkit/dataguard/dataguard dgpkg.conf

NOTE: In the RAC environment, the ODG toolkit must be used in combination with the SGeRAC toolkit.

2.To specify configuration parameters in the package:

After the package configuration file is created, you must specify various parameter values. The parameters that must be modified in dgpkg.conf specifically for this configuration are shown here.

NOTE: The following package configuration contains attributes of both SGeRAC toolkit and the ODG toolkit.

The following attributes are specific to the SGeRAC RAC database module:

------------------------------------------------------------------------

#

#"package_name" is the name that is used to identify the package.

#Package names must be unique within a cluster.

#

package_namedgpkg

------------------------------------------------------------------------

#

#"package_description" specifies the application that the package runs.

package_description"SGeRAC Toolkit RAC instance package"

------------------------------------------------------------------------

#

#"package_type" is the type of package.

#The package_type attribute specifies the behavior for this package.

package_type

multi_node

28 Serviceguard toolkit for Oracle Data Guard

Image 28
Contents HP Part Number Published August Edition Page Contents Glossary Index Introduction Overview AdvantagesDependencies Supported configurationSingle-instance Oracle database Cmmakepkg -i pkgasciifile -m modulefilename outputfilename RAC environment RAC environmentServiceguard toolkit for Oracle Data Guard Data Guard replication between RAC primary and RAC standby Continentalclusters environment Continentalclusters environment Metrocluster and extended distance cluster environments Supported configuration Data Guard setup in an EDC environment Three data center configuration Configuring multiple instances of Oracle Data Guard Multiple Data Guard instances in each Serviceguard clusterSetting up Oracle Data Guard toolkit Installing and uninstalling Oracle Data Guard toolkit# swinstall -s depot path High availability for data guard broker# swlist -l product T2259AA Files for the ADF module Activestandby Configuring Oracle Data Guard toolkit Package attributesSingle-instance environment For example, /etc/cmcluster/pkg/dgpkgSetting up Oracle Data Guard toolkit #ecmt/oracle/oracle/LISTENERRESTART Servicefailfastenabled no servicehalttimeout RAC environment For example, /etc/cmluster/pkg/racdgpkgWhere ocmnp is the Smnp package for Oracle CLusterware Adding the package to the Serviceguard cluster Maintaining Oracle Data Guard toolkitCluster verification for Oracle Data Guard toolkit Single-instance environmentPkg.conf command TroubleshootingLimitations Startstandbyasprimary to yes Prerequisites Using the DB2 Hadr toolkit Supported configurationWhen primary and standby packages are in the same cluster Event 1 Standby database or Hadr goes downEvent 2 Primary package fails When primary and standby packages are in different clusters Primary and Standby Packages in Different ClustersCreating packages To provide high availability only to primary databaseGo to the /etc/cmcluster/hadrprimary directory Cmmakepkg -m ecmt/db2/db2 -m tkit/db2hadr/db2hadr pkg.confInstancename Hadrip Managing packages Running packagesMaintaining packages And, $ cmmodpkg -e hadrpkgHalting packages # cmhaltpkg packagenameHost key verification failed. Lost connection Limitations How to contact HP Information to collect before contacting HPWarranty information HP authorized resellersDocumentation feedback Related information Typographic conventionsTIP Db2 get db cfg for db2 database name grep -i hard Node3# /usr/bin/ssh-keygen -t rsaNode3# /usr/bin/ssh-keygen -t dsa Node2# /usr/bin/ssh-keygen -t rsaPage To add a new key to/home/user/.ssh/knownhosts Page Glossary Index