The following main.cf file applies to a globally clustered VCS and VVR configuration. It is common for the elect-primary feature and for use with bunker with the global cluster options with VVR.
include "OracleASMTypes.cf" include "types.cf" include "Db2udbTypes.cf" include "OracleTypes.cf" include "SybaseTypes.cf" cluster gco2 ( UserNames = { admin = dqrJqlQnrMrrPzrLqo } ClusterAddress = "10.182.44.221" Administrators = { admin } ) remotecluster gco1 ( ClusterAddress = "10.182.71.20" ) heartbeat Icmp ( ClusterList = { gco1 } StopTimeout @gco1 = 60 AYATimeout @gco1 = 300 AYARetryLimit = 1 Arguments @gco1 = { "10.182.71.20" } ) system msdn15 ( ) system msdn16 ( ) group ClusterService ( SystemList = { msdn15 = 0, msdn16 = 1 } AutoStartList = { msdn15, msdn16 } OnlineRetryLimit = 3 OnlineRetryInterval = 120 ) Application wac ( StartProgram = "/opt/VRTSvcs/bin/wacstart" StopProgram = "/opt/VRTSvcs/bin/wacstop" MonitorProcesses = { "/opt/VRTSvcs/bin/wac" } RestartLimit = 3 ) IP webip ( Device = bge0 Address = "10.182.44.221" NetMask = "255.255.240.0" ) NIC csgnic ( Device = bge0 ) wac requires webip webip requires csgnic // resource dependency tree // // group ClusterService // { // Application wac // { // IP webip // { // NIC csgnic // } // } // } group VVRGrp ( SystemList = { msdn15 = 0, msdn16 = 1 } AutoStartList = { msdn15, msdn16 } ) DiskGroup Hr_Dg ( DiskGroup = dg1 ) IP vvrip ( Device = bge0 Address = "10.182.44.220" NetMask = "255.255.240.0" ) NIC vvrnic ( Device = bge0 ) RVG Hr_Rvg ( RVG = rvg1 DiskGroup = dg1 ) Hr_Rvg requires Hr_Dg Hr_Rvg requires vvrip vvrip requires vvrnic // resource dependency tree // // group VVRGrp // { // RVG Hr_Rvg // { // DiskGroup Hr_Dg // IP vvrip // { // NIC vvrnic // } // } // } group app_rep ( SystemList = { msdn16 = 0, msdn15 = 1 } ClusterList = { gco1 = 1, gco2 = 0 } AutoStartList = { msdn16, msdn15 } ClusterFailOverPolicy = Auto ) FileOnOff test-res ( PathName = "/var/tmp/test" ) RVGPrimary rvg_prim_res ( RvgResourceName = Hr_Rvg AutoResync = 1 ) requires group VVRGrp online local hard test-res requires rvg_prim_res // resource dependency tree // // group app_rep // { // FileOnOff test-res // { // RVGPrimary rvg_prim_res // } // } group app_rep_fd ( SystemList = { msdn16 = 0, msdn15 = 1 } UserStrGlobal = "FD:app_rep" AutoFailOver = 0 TypeDependencies = { IP, Mount, RVGSnapshot } ) IP webip_fd ( Device = bge0 Address = "10.182.44.221" NetMask = "255.255.240.0" ) RVGSnapshot Hr_Rvg-sos ( RvgResourceName = Hr_Rvg CacheObj = cacheobj Prefix = snap ) requires group VVRGrp online local firm // resource dependency tree // // group app_rep_fd // { // RVGSnapshot Hr_Rvg-sos // IP webip_fd // }