Symantec logo

Modifying the CVM service group in the main.cf file

The cvm service group is created during the installation of Storage Foundation 5.0 for Oracle RAC. After installation, the main.cf file resembles the example shown in Oracle9i configuration. Because Oracle9i had not been installed, the cvm service group includes only resources for the CFSfsckd daemon, the CVMCluster resource, and the CVMVxconfigd daemon.

Adding Netlsnr, NIC, IP CVMVolDg, and CFSMount resources

You must modify the cvm service group to add the Netlsnr, NIC, IP, CVMVolDg, and CFSMount resources to the configuration. Refer to Oracle9i configuration to see a complete example of how a cvm group is configured.

 To configure Netlsnr, NIC, IP CVMVolDg, and CFSMount resources

Key lines of the configuration file are shown in bold font.

  1. Make sure the cvm group has the group Parallel attribute set to 1. Typically this is already done during installation.

    .

    group cvm (

    SystemList = { galaxy = 0, nebula = 1 }

    AutoFailOver = 0

    Parallel = 1

    AutoStartList = { galaxy, nebula }

    )

    .

  2. Define the NIC and IP resources. The VCS bundled NIC and IP agents are described in Veritas Cluster Server Bundled Agents Reference Guide. The device name and the IP addresses are required by the listener for public network communication.

      Note   For the IP resource, the Address attribute is localized for each node (see Local CVM and Oracle group attributes).


NIC listener_nic (

Device = hme0

NetworkType = ether

NetworkHosts = { "10.10.11.101", "10.10.11.102" }

)

IP listener_ip

Device = hme0

Address @galaxy = "10.10.11.1"

Address @nebula = "10.10.11.2"

NetMask = "255.255.240.0"

)

  1. Define the Netlsnr resource. The Netlsnr listener agent is described in detail in the Veritas™ High Availability Agent for Oracle Installation and Configuration Guide.

      Note   The Listener attribute is localized for each node.


Netlsnr listener (

Owner = oracle

Home = "/app/oracle/orahome"

TnsAdmin = "/app/oracle/orahome/network/admin"

Listener @galaxy = listener_galaxy

Listener @nebula = listener_nebula

ListEnvFile = "/opt/VRTSvcs/bin/Netlsnr/envfile"

MonScript = "./bin/Netlsnr/LsnrTest.pl"

)

.

  1. You must configure the CVMVolDg and CFSMount resources in the cvm group for the Oracle binaries installed on shared storage. Refer to the appendix Agent reference for description of CVMVolDg and CFSMount agents.

CFSMount oradata_mnt (

Critical = 0

MountPoint = "/oradata"

BlockDevice = "/dev/vx/dsk/oradatadg/oradatavol"

)

CVMVolDg oradata_voldg (

CVMDiskGroup = oradatadg

CVMVolume = { oradatavol }

CVMActivation = sw

)

  1. Define the dependencies of resources in the group. The dependencies are specified such that the Netlsnr resource requires the IP resource that, in turn, depends on the NIC resource. The Netlsnr resource also requires the CFSMount resource. The CFSMount resource requires the daemons and vxfsckd used by the cluster file system. The CFSMount resource also depends on the CVMVolDg resource, which, in turn, requires the CVMCluster resource for communications within the cluster.

    The VCS service groups for RAC: dependencies visually shows the dependencies specified in the following statements:

    .

    .

listener requires listener_ip

listener_ip requires listener_nic

orasrvm_voldg requires cvm_clus

orasrvm_mnt requires orasrvm_voldg

orasrvm_mnt requires vxfsckd

vxfsckd requires cvm_clus

cvm_clus requires cvm_vxconfigd

.

.