You can edit the main.cf file directly to configure the CVM and Oracle service groups.
To configure CVM and Oracle service groups manually
hastop
command to stop the VCS engine on all systems and leave the resources available:
Review the guidelines in the example configuration to modify the CVM service group.
See Configuring CVM group with Oracle binaries installed locally
Review the illustration that depicts the example scenario.
See CVM Group with Oracle Installed Locally; SRVM on Shared File System; Host IP Used
Modifying the CVM service group in the main.cf file
The cvm
service group is created during the installation of Storage Foundation for Oracle RAC. After installation, the main.cf
file resembles the example shown in Sample main.cf file after SF Oracle RAC installation. Because Oracle had not been installed, the cvm
service group includes only resources for the CFSfsckd daemon and CVMCluster resource.
You must modify the cvm
service group to add the Netlsnr, Mount, Disk Group, CVMVolDg, and CFSMount resources to the configuration. You can refer to Sample VCS configuration files for SF Oracle RAC, to see a complete example of how a cvm
group is configured.
cvm
group has the group Parallel
attribute set to 1.
Typically this is already done during installation.
SystemList = { galaxy = 0, nebula = 1 }
The VCS bundled Mount and DiskGroup agents are described in Veritas Cluster Server Bundled Agents Reference Guide.
The Netlsnr listener agent is described in detail in the Veritas High Availability Agent for Oracle Installation and Configuration Guide. Note that the Listener
attribute is localized for each node.
TnsAdmin = "/oracle/orahome/network/admin"
MonScript = "./bin/Netlsnr/LsnrTest.pl"
cvm
group for the SRVM disk group configured on shared storage.
Refer to the appendix SF Oracle RAC agents for description of CVMVolDg and CFSMount agents.
The Netlsnr resource requires the Mount resource. The Mount resource requires DiskGroup resource. The CFSMount resource depends on the CVMVolDg resource, which, in turn, requires the CVMCluster resource, which autoimports the shared storage and establishes GAB communications within the cluster. The CFSMount resource also requires the CFSfsckd resource daemon, vxfsckd, used by the cluster file system. The CVMCluster resource depends on the CVMVxconfigd daemon to maintain the disk and disk group configuration.
For a complete description of the VCS Oracle enterprise agent, refer to the document, Veritas High Availability Agent for Oracle Installation and Configuration Guide. That document includes instructions for configuring the Oracle and Netlsnr agents.
The VCS Enterprise Agent for Oracle version 4.1 is installed when you run the installer
script. When you refer to the Veritas High Availability Agent for Oracle Installation and Configuration Guide, ignore the steps described in the section "Installing the Agent Software."
oradb1_grp
. Make sure you assign the Parallel
attribute a value of 1.
SystemList = { galaxy = 0, nebula = 1 }
Pfile @galaxy = "/oracle/orahome/dbs/initVRT1.ora"
Pfile @nebula = "/oracle/orahome/dbs/initVRT2.ora"
Table @galaxy = vcstable_galaxy
Table @nebula = vcstable_nebula
MonScript = "./bin/Oracle/SqlTest.pl"
cvm
group, and that the required dependency is defined as "online local firm
," meaning that the cvm
group must be online and remain online on a system before the Oracle group can come online on the same system. Refer to the Veritas Cluster Server User's Guide for a description of group dependencies.
requires group cvm online local firm
See the Sample VCS configuration files for SF Oracle RAC for a complete example. You can also find the complete file in /etc/VRTSvcs/conf/sample_rac/main.cf
.
When you complete editing the main.cf
file, see the next section, Saving and checking the configuration.
When you complete editing the main.cf file to configure the CVM and Oracle service groups, verify the new configuration.
hastatus
:
LOCAL_BUILD
" is listed in the message column, start VCS on the other system:
For shallow monitoring, the VCS Oracle agent monitors the Oracle9i RAC processes ora_lmon and ora_lmd, in addition to the processes ora_dbw, ora_smon, ora_pmon, and ora_lgwr.
The following table lists attributes that must be defined as local for the CVM and Oracle service groups (note that each attribute has string-scalar as the type and dimension).
If other attributes for the Oracle resource differ for various RAC instances, define them locally as well. These other attributes may include the Oracle resource attributes User
, PWord
, the CVMVolDg resource attribute CVMActivation
, and others.
For additional information and instructions on modifying the VCS configuration, refer to the Veritas Cluster Server User's Guide.
On all cluster nodes, look at the following log files for any errors or status messages:
/var/VRTSvcs/log/Netlsnr_A.log
When large amounts of data are written, multiple log files may be required. For example, engine_B.log
, engine_C.log
, and so on, may be required. The engine_A.log
contains the most recent data.