Use the RVGShared, RVGSharedPri, and the RVGLogowner agents to manage and monitor RVGs used by parallel applications in a shared environment.
Note: |
Determine the node that is performing the most writes by running the vxstat command on each node for a suitable period of time; after you set up replication, specify this node as the logowner. |
The prerequisites for configuring the agents are as follows:
You must have replication set up between the Primary and Secondary sites.
The sites must be configured in a global cluster and the application service must be configured as a global service group.
For more information about configuring global clusters, see the Symantec Cluster Server Administrator's Guide.
Sample configuration files are located in the /etc/VRTSvcs/conf/sample_rac/ directory and include CVR in the filename. These sample files are installed as part of the VRTSdbac package, and can be used as a guide when creating your configuration. You can configure agents from the command line or from the VCS Java and Web consoles.
See the Symantec Cluster Server Administrator's Guide for more information.
To modify the VCS configuration on the Primary cluster
Define the RVGShared and CVMVolDg resources within a parallel service group so that the service group may be online at the same time on all cluster nodes.
See the Symantec Cluster Server Administrator's Guide for instructions on how to create global groups.
To modify the VCS configuration on the Secondary cluster
If the VCS cluster is currently writeable, run the following command:
# haconf -dump -makero
If the VCS cluster is already read only, run the following command:
# haconf -dump
# hastop -all -force
# cd /etc/VRTSvcs/conf/config # cp main.cf main.orig
Edit the CVM group on the secondary cluster. Use the CVM group on the primary as your guide.
Add the logowner group and the RVG service groups.
Add an application service group. Use the application service group on the primary cluster as a pattern for the service group on the secondary cluster.
Since the service group is a global group, assign it the same name as the group on the primary cluster.
Define the ClusterList and ClusterFailOverPolicy cluster attributes.
Include the RVGSharedPri resource.
# hacf -verify /etc/VRTSvcs/conf/config
The application group should be online on both systems of the primary cluster.
The application service group should not be online on the secondary cluster, but the CVM, RVG logowner, and RVG groups should be online.