InfoScale™ 9.0 Disaster Recovery Implementation Guide - Linux
- Section I. Introducing Storage Foundation and High Availability Solutions for disaster recovery
- About supported disaster recovery scenarios
- About campus cluster configuration
- About replicated data clusters
- About global clusters
- VCS global clusters: The building blocks
- About global cluster management
- About serialization - The Authority attribute
- Planning for disaster recovery
- About supported disaster recovery scenarios
- Section II. Implementing campus clusters
- Setting up campus clusters for VCS and SFHA
- About setting up a campus cluster configuration
- About running a fire drill in a campus cluster
- About setting up a campus cluster configuration
- Setting up campus clusters for SFCFSHA, SFRAC
- Setting up campus clusters for VCS and SFHA
- Section III. Implementing replicated data clusters
- Configuring a replicated data cluster using VVR
- Configuring a replicated data cluster using third-party replication
- Section IV. Implementing global clusters
- Configuring global clusters for VCS and SFHA
- Setting up VVR replication
- Creating a Replicated Data Set
- Creating a Primary RVG of an RDS
- Adding a Secondary to an RDS
- Changing the replication settings for a Secondary
- Synchronizing the Secondary and starting replication
- Starting replication when the data volumes are zero initialized
- Configuring clusters for global cluster setup
- Configuring service groups for global cluster setup
- Configuring a global cluster with Storage Foundation Cluster File System High Availability, Storage Foundation for Oracle RAC, or Storage Foundation for Sybase CE
- Configuring the secondary site
- Configuring global clusters with VVR and Storage Foundation Cluster File System High Availability, Storage Foundation for Oracle RAC, or Storage Foundation for Sybase CE
- Setting up replication on the primary site using VVR
- Setting up replication on the secondary site using VVR
- Configuring Cluster Server to replicate the database volume using VVR
- Configuring global clusters for VCS and SFHA
- Section V. Reference
- Appendix A. Sample configuration files
- Sample Storage Foundation for Oracle RAC configuration files
- About sample main.cf files for Storage Foundation (SF) for Oracle RAC
- About sample main.cf files for Storage Foundation (SF) for Sybase ASE CE
- Appendix A. Sample configuration files
Modifying the Cluster Server (VCS) configuration on the primary site
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
Task | Description |
---|---|
Configure two service groups:
| |
Add the RVGSharedPri resource to the existing database service group and define this group as a global group by setting the ClusterList and ClusterFailOverPolicy attributes. | |
Move the CVMVolDg resource from the existing database service group to the newly created RVG group. | |
To view the sample main.cf files on your system: |
To view sample configuration files for SF Oracle RAC
- Change directories to the find the sample main.cfs:
# cd /etc/VRTSvcs/conf/sample_rac
- Enter:
# ls *sfrac* sfrac07_main.cf sfrac08_main.cf
The following files include CVM/VVR configuration examples:
For the primary: sfrac_07_main.cf
For the secondary: sfrac_08_main.cf
See Sample Storage Foundation for Oracle RAC configuration files.
To view sample configuration files for SF Sybase CE
- Change directories to the find the sample main.cfs:
# cd /etc/VRTSagents/ha/conf/Sybase/
- Enter:
# ls cvmvvr*
The following sample main.cf files illustrate the VCS configuration changes after setting up an existing database for replication:
See About sample main.cf files for Storage Foundation (SF) for Sybase ASE CE.
To modify VCS on the primary site
- Log into one of the nodes on the primary cluster.
- Use the following command to save the existing configuration to disk, and make the configuration read-only while you make changes:
# haconf -dump -makero
- Use the following command to make a backup copy of the main.cf file:
# cd /etc/VRTSvcs/conf/config # cp main.cf main.orig
- Use vi or another text editor to edit the main.cf file. Review the sample configuration file after your product installation.
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 = eth0 Address = "10.10.9.101" NetMask = "255.255.255.0" ) NIC nic ( Device = eth0 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
- Add the RVG service group using the appropriate values for your cluster and nodes.
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
- See configuration examples below.
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
- Save and close the main.cf file.
- It is advisible to modify "OnlineRetryLimit" & "OfflineWaitLimit" attribute of IP resource type to 1 on both the clusters:
# hatype -modify IP OnlineRetryLimit 1
# hatype -modify IP OfflineWaitLimit 1
- Use the following command to verify the syntax of the /etc/VRTSvcs/conf/config/main.cf file:
# hacf -verify /etc/VRTSvcs/conf/config
- Stop and restart VCS.
# 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
Storage Foundation (SF) for Sybase ASE CE example of a database service group configured for replication:
group database_group ( 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 sybdata_101_syb_vol_mnt ( MountPoint = "/sybdata" BlockDevice = "/dev/vx/dsk/sybdata_101/syb_vol" ) RVGSharedPri syb_vvr_shpri ( RvgResourceName = sybdata_rvg OnlineRetryLimit = 0 ) Process vxfend ( PathName = "/sbin/vxfend" Arguments = "-m sybase -k /tmp/vcmp_socket" ) Syabase ase ( Sid @sys1 = ase1 Sid @sys1 = ase2 Owner = sybase Home = "/sybase" Version = 15 SA = sa Quorum_dev = "/quorum/q.dat" ) requires group RVGgroup online local firm sybdata_101_syb_vol_mnt requires syb_vvr_shpri ase requires vxfend ase requires sybdata_101_syb_vol_mnt ase requires quorum_101_quorumvol_mnt quorum_101_quorumvol_mnt requires quorum_101_voldg