The following are the tasks required to modify the existing VCS configuration on the primary site:
Table: Tasks for modifying the VCS configuration on the primary site
To view sample configuration files for SF Oracle RAC
# cd /etc/VRTSvcs/conf/sample_rac
# ls *sfrac* sfrac07_main.cf sfrac08_main.cf
The following files include CVM/VVR configuration examples:
See Sample Storage Foundation for Oracle RAC configuration files.
To modify VCS on the primary site
# haconf -dump -makero
# cd /etc/VRTSvcs/conf/config # cp main.cf main.orig
Add a failover service group using the appropriate values for your cluster and nodes. Include the following resources:
In a shared disk group environment, currently only the cvm master node should be assigned the logowner role.
IP resource
NIC resources
The following are examples of RVGLogowner service group for the different platforms.
Example for Oracle RAC:
Please see the section "CVM master node needs to assume the logowner role for VCS managed VVR resources" in the Cluster Server Bundled Agents Reference Guide for more info.
group rlogowner ( SystemList = { sys1 = 0, sys2 = 1 } AutoStartList = { sys1, sys2 } ) IP logowner_ip ( Device = en0 Address = "10.10.9.101" NetMask = "255.255.255.0" ) NIC nic ( Device = en0 NetworkType = ether NetworkHosts = "10.10.8.1" ) RVGLogowner logowner ( RVG = dbdata_rvg DiskGroup = dbdatadg ) requires group RVGgroup online local firm logowner requires logowner_ip logowner_ip requires nic
Example RVGgroup service group:
group RVGgroup ( SystemList = { sys1 = 0, sys2 = 1 } Parallel = 1 AutoStartList = { sys1, sys2 } ) RVGShared dbdata_rvg ( RVG = dbdata_rvg DiskGroup = dbdatadg ) CVMVolDg dbdata_voldg ( CVMDiskGroup = dbdatadg CVMActivation = sw CVMVolume = { dbvol, dbdata_srl } ) requires group cvm online local firm dbdata_rvg requires dbdata_voldg
Modify the database service group using the appropriate values for your cluster and nodes:
Define the database service group as a global group by specifying the clusters on the primary and secondary sites as values for the ClusterList group attribute. See the bolded attribute in the example that follows.
Add the ClusterFailOverPolicy cluster attribute. Veritas recommends using the Manual value. See the bolded attribute in the example.
Add the RVGSharedPri resource to the group configuration.
Remove the CVMVolDg resource, if it has been configured in your previous configuration. This resource is now part of the RVG service group.
Specify the service group (online, local, firm) to depend on the RVG service group.
Remove the existing dependency of the Database service group on the CVM service group. Remove the line:
requires group CVM online local firm
Remove the existing dependency between the CFSMount for the database and the CVMVoldg for the database. Remove the line:
dbdata_mnt requires dbdata_voldg
# hatype -modify IP OnlineRetryLimit 1
# hatype -modify IP OfflineWaitLimit 1
# hacf -verify /etc/VRTSvcs/conf/config
# hastop -all -force
Wait for port h to stop on all nodes, and then restart VCS with the new configuration on all primary nodes:
# hastart
Storage Foundation Cluster File System High Availability (SFCFS HA) example of a database service group configured for replication:
group database_grp ( SystemList = { sys1 = 0, sys2 = 1 } ClusterList = { clus1 = 0, clus2 = 1 } Parallel = 1 ClusterFailOverPolicy = Manual Authority = 1 AutoStartList = { sys1,sys2 } OnlineRetryLimit = 3 TriggerResStateChange = 1 OnlineRetryInterval = 120 ) CFSMount dbdata_mnt ( MountPoint = "/dbdata" BlockDevice = "/dev/vx/dsk/dbdatadg/dbdata_vol" ) Process vxfend ( PathName = "/sbin/vxfend" Arguments = "-m sybase -k /tmp/vcmp_socket" ) RVGSharedPri dbdata_vvr_shpri ( RvgResourceName = dbdata_rvg OnlineRetryLimit = 0 ) requires group RVGgroup online local firm oradata_mnt requires dbdata_vvr_shpri
Storage Foundation (SF) for Oracle RAC example of a database service group configured for replication:
group database_grp ( SystemList = { sys1 = 0, sys2 = 1 } ClusterList = { clus1 = 0, clus2 = 1 } Parallel = 1 ClusterFailOverPolicy = Manual Authority = 1 AutoStartList = { sys1,sys2 } ) CFSMount oradata_mnt ( MountPoint = "/oradata" BlockDevice = "/dev/vx/dsk/oradatadg/racdbdata_vol" ) RVGSharedPri ora_vvr_shpri ( RvgResourceName = racdata_rvg OnlineRetryLimit = 0 ) Oracle rac_db ( Sid @sys1 = vrts1 Sid @sys2 = vrts2 Owner = Oracle Home = "/oracle/orahome" StartUpOpt = SRVCTLSTART ShutDownOpt = SRVCTLSTOP ) requires group RVGgroup online local firm oradata_mnt requires ora_vvr_shpri rac_db requires oradata_mnt