Symantec logo

Modifying the VCS configuration for replication

Resources that must be configured or modified for replication:

About VCS resources for replication

Log owner group

A log owner group including the RVGLogowner resources must be created. The RVGLogowner resources are used by the RLINKs for the RVG, and the RVGLogowner resource, for which the RVG and its associated disk group are defined as attributes. The RVG log owner service group has an online local firm dependency on the service group containing the RVG.


RVG group

An RVG group including the RVGShared resource replication objects must be created. Define the RVGShared resource and CVMVolDg resource together within a parallel service group. The group is defined as parallel because it may be online at the same time on all cluster nodes. The CVMVolDg resource does not have volumes specified for the CVMVolume attribute; the volumes are contained in the RVG resource. The CVMVolume attribute for the CVMVolDg resource is empty because all volumes in the RVG are defined by the RVG attribute of the RVGShared resource. The RVG service group has an online local firm dependency on the CVM service group.

For a detailed description of the RVGLogowner agent, which VCS uses to control the RVGLogowner resource, and the RVGShared agent, which VCS uses to control the RVGShared resource:

See the Veritas Cluster Server Agents for Veritas Volume Replicator Configuration Guide.


Oracle database service group

The RVGSharedPri resource must be added to the existing Oracle database service group. The CVMVolDg resource must be removed from the existing Oracle database service group.

The existing Oracle database service group is a parallel group consisting of the Oracle database resource, CVMVolDg resource, and CFSMount resource (if the database resides in a cluster file system). Define the Oracle service group as a global group by specifying the clusters on the primary and secondary sites as values for the ClusterList group attribute

For a detailed description of the CVMVolDg agent in this guide:

See CVMVolDg and CFSMount resources

For more information on replication resources:

See the Veritas Cluster Server Agents for Veritas Volume Replicator Configuration Guide.

Configuration before and after modification

Review the illustrations that show the changes to the VCS configuration when you set up the existing Oracle database for replication.

Note that all of the dependencies between parent and child groups are online local firm. The CVM service group is the same in all illustrations because its definition requires no changes. For Oracle9i, the CVM service group may be different on your configuration, depending on the type of IP you set up for the Listener.

Illustration of Dependencies: Configuration Before Modification for Replication (Oracle9i)

Illustration of Dependencies: Configuration Before Modification for
Replication (Oracle9i)

Click the thumbnail above to view full-sized image.

Illustration of Dependencies: Configuration Before Modification for Replication (Oracle 10g)

.

Illustration of Dependencies: Configuration Before Modification for
Replication (Oracle 10g)

Click the thumbnail above to view full-sized image.

Illustration of Dependencies: Configuration After Modification for Replication (Oracle9i)

Illustration of Dependencies: Configuration After Modification for
Replication (Oracle9i)

Click the thumbnail above to view full-sized image.

Illustration of Dependencies: Configuration After Modification for Replication (Oracle 10g)

Illustration of Dependencies: Configuration After Modification for
Replication (Oracle 10g)

Click the thumbnail above to view full-sized image.

I.IModifying the VCS Configuration on the Primary Site

Highlights of the procedure to modify the existing VCS configuration on the primary site include:

 To modify VCS on the primary site

  1. Log into one of the nodes on the primary cluster.
  2. Save the existing configuration to disk and make the configuration read-only while you are make the changes:

    # haconf -dump -makero

  3. Make sure VCS is not running while you edit main.cf by stopping the VCS engine on all nodes and leave the resources available:

    # hastop -all -force

  4. Make a backup copy of the main.cf file:

    # cd /etc/VRTSvcs/conf/config

    # cp main.cf main.orig

  5. Use vi or another text editor to edit the main.cf file.
  6. Add a failover service group using the appropriate values for your cluster and nodes. Include:

group rlogowner (

SystemList = { galaxy = 0, nebula = 1 }

AutoStartList = { galaxy, nebula }

)

IP logowner_ip (

Device =hme0

Address = "10.10.9.101"

NetMask = "255.255.240.0"

)

NIC nic (

Device =hme0

NetworkType = ether

)

RVGLogowner logowner (

RVG = rac1_rvg

DiskGroup = oradatadg

)

requires group RVGgroup online local firm

logowner requires logowner_ip

logowner_ip requires nic

  1. Add the RVG service group using the appropriate values for your cluster and nodes.

    Example RVGgroup service group:

group RVGgroup (

SystemList = { galaxy = 0, nebula = 1 }

Parallel = 1

AutoStartList = { galaxy, nebula }

)

RVGShared racdata_rvg (

RVG = rac1_rvg

DiskGroup = oradatadg

)

CVMVolDg racdata_voldg (

CVMDiskGroup = oradatadg

CVMActivation = sw

)

requires group cvm online local firm

racdata_rvg requires racdata_voldg

  1. Modify the Oracle service group using the appropriate values for your cluster and nodes:
  2. Save and close the main.cf file.
  3. Verify the syntax of the /etc/VRTSvcs/conf/config/main.cf file:

    # hacf -verify /etc/VRTSvcs/conf/config

Modifying the VCS Configuration on the Secondary Site

Highlights of the procedure to modify the existing VCS configuration on the secondary site include:

The steps are similar to what you performed on the primary site.

 To modify VCS on the secondary site

  1. Log into one of the nodes on the secondary site as root.
  2. Save the existing configuration to disk and make the configuration read-only while you are make the changes:

    # haconf -dump -makero

  3. Ensure VCS is not running while you edit the main.cf by stopping the VCS engine on all systems and leave the resources available:

    # hastop -all -force

  4. Make a backup copy of the main.cf file:

    # cd /etc/VRTSvcs/conf/config

    # cp main.cf main.orig

  5. Use vi or another text editor to edit the main.cf file.
  6. Edit the CVM group on the secondary site. After the Storage Foundation installation, the CVM file resembles the examples in:

    See Sample VCS configuration files for SF Oracle RAC

    In our example, the secondary site has rac_cluster102 consisting of the nodes mercury and jupiter. To modify the CVM service group on the secondary site, use the CVM group on the primary site as your guide.

  7. Add a failover service group using the appropriate values for your cluster and nodes. Include:

group rlogowner (

SystemList = { galaxy = 0, nebula = 1 }

AutoStartList = { galaxy, nebula }

)

IP logowner_ip (

Device =hme0

Address = "10.11.9.102"

NetMask = "255.255.240.0"

)

NIC nic (

Device =hme0

NetworkType = ether

)

RVGLogowner logowner (

RVG = rac1_rvg

DiskGroup = oradatadg

)

requires group RVGgroup online local firm

logowner requires logowner_ip

logowner_ip requires nic

  1. Add the RVG service group using the appropriate values for your cluster and nodes.

    Example RVGgroup service group:

group RVGgroup (

SystemList = { mercury = 0, jupiter = 1 }

Parallel = 1

AutoStartList = { mercury, jupiter }

)

RVGShared racdata_rvg (

RVG = rac1_rvg

DiskGroup = oradatadg

)

CVMVolDg racdata_voldg

CVMDiskGroup = oradatadg

CVMActivation = sw

)

requires group cvm online local firm

racdata_rvg requires racdata_voldg

  1. Add an Oracle service group. Use the Oracle service group on the primary site as a model for the Oracle service group on the secondary site.
  2. Save and close the main.cf file.
  3. Verify the syntax of the /etc/VRTSvcs/conf/config/main.cf file:

    # hacf -verify /etc/VRTSvcs/conf/config