Sample main.cf for a secondary CVM VVR site

This sample main.cf is for a secondary site in a CVM VVR configuration. It is the second of two sample main.cfs for replicating data between two clusters.

The following are the configuration details for this Sybase ASE CE configuration sample main.cf:

This is main.cf for CVM VVR configuration on Secondary site.
--------------------------------------------------------------

include "types.cf"
include "CFSTypes.cf"
include "CVMTypes.cf"
include "VVRTypes.cf"
include "SybaseTypes.cf"

cluster cluster102 (
	       UserNames = { admin = HopHojOlpKppNxpJom }
        ClusterAddress = "10.190.99.199"
	       Administrators = { admin }
	       HacliUserLevel = COMMANDROOT
        UseFence=SCSI3
	       )

remotecluster syb_cluster101 (
	       ClusterAddress = "10.180.88.188"
	       )

heartbeat Icmp (
       	ClusterList = { syb_cluster101 }
	       Arguments @syb_cluster101 = { "10.180.88.188" }
	       )

system system3 (
	       )

system system4 (
	       )

group ClusterService (
	       SystemList = { system3 = 0, system4 = 1 }
	       AutoStartList = { system3, system4 }
								OnlineRetryLimit = 3 
	       OnlineRetryInterval = 120
	       )

        Application wac (
                StartProgram = "/opt/VRTSvcs/bin/wacstart"
                StopProgram = "/opt/VRTSvcs/bin/wacstop"
                MonitorProcesses = { "/opt/VRTSvcs/bin/wac" }
                RestartLimit = 3
                )

        IP gcoip (
                Device = eth0
                Address = "10.190.99.199"
                NetMask = "255.255.255.0"
                )

        NIC csgnic (
                Device = eth0
                )

        gcoip requires csgnic
        wac requires gcoip

	// resource dependency tree
	//
	//	group ClusterService
	//	{
	//	Application wac
	//	    {
	//	    IP gcoip
	//	        {
	//	        NIC csgnic
	//	        }
	//	    }
	//	}


group RVGgroup (
        SystemList = { system3 = 0, system4 = 1 }
        Parallel = 1
        AutoStartList = { system3, system4 }
        )

        CVMVolDg sybdata_voldg (
                CVMDiskGroup = sybdata_101
                CVMActivation = sw
                )

        RVGShared sybdata_rvg (
                RVG = syb_rvg
                DiskGroup = sybdata_101
                )

        requires group binmnt online local firm
        sybdata_rvg requires sybdata_voldg


group binmnt (
        SystemList = { system3 = 0, system4 = 1 }
        Parallel = 1
        AutoStartList = { system3, system4 }
 							OnlineRetryLimit = 3 
        OnlineRetryInterval = 120
        )

        CFSMount sybbindg_101_sybbinvol_mnt (
                MountPoint = "/sybase"
                BlockDevice = "/dev/vx/dsk/sybbindg_101/sybbin_vol"
                )
        CVMVolDg sybbindg_101_voldg (
                CVMDiskGroup = sybbindg_101
                CVMVolume = { sybbin_vol }
                CVMActivation = sw
                )
        requires group cvm online local firm
        sybbindg_101_sybbinvol_mnt requires sybbindg_101_voldg

group cvm (
        SystemList = { system3 = 0, system4 = 1 }
        AutoFailOver = 0
        Parallel = 1
        AutoStartList = { system3, system4 }
        )

        CFSfsckd vxfsckd (
                )

        CVMCluster cvm_clus (
                CVMClustName = syb_cluster102
                CVMNodeId = { system3 = 0, system4 = 1 }
                CVMTransport = gab
                CVMTimeout = 200
                )

        CVMVxconfigd cvm_vxconfigd (
                Critical = 0
                CVMVxconfigdArgs = { syslog }
                )

        cvm_clus requires cvm_vxconfigd
        vxfsckd requires cvm_clus


        // resource dependency tree
        //
        //      group cvm
        //      {
        //      CFSfsckd vxfsckd
        //          {
        //          CVMCluster cvm_clus
        //              {
        //              CVMVxconfigd cvm_vxconfigd
        //              }
        //          }
   

group logowner (
        SystemList = { system3 = 0, system4 = 1 }
        AutoStartList = { system3, system4 }
        )

        IP logowner_ip (
                Device = eth0
                Address = "10.11.9.102"
                NetMask = "255.255.255.0"
                )

        NIC nic (
                Device = eth0
                )

        RVGLogowner rvg_logowner (
                RVG = syb_rvg
                DiskGroup = sybdata_101
                )

        requires group RVGgroup online local firm
        logowner requires logowner_ip
        logowner_ip requires nic


	// resource dependency tree
	//
	//	group logowner
	//	{
	//	RVGLogowner rvg_logowner
	//	    {
	//	    IP logowner_ip
	//	        {
	//	        NIC nic
	//	        }
	//	    }
	//	}

group sybasece (
        SystemList = { system3 = 0, system4 = 1 }
        Parallel = 1
        ClusterList = { syb_cluster102 = 0, syb_cluster101 = 1 }
        AutoStartList = { system3, system4 }
 							OnlineRetryLimit = 3 
        OnlineRetryInterval = 120
        )

        CFSMount quorum_101_quorumvol_mnt (
                MountPoint = "/quorum"
                BlockDevice = "/dev/vx/dsk/quorum_101/quorumvol"
                )

        CVMVolDg quorum_101_voldg (
                CVMDiskGroup = quorum_101
                CVMVolume = { quorumvol }
                CVMActivation = sw
                )

        CFSMount sybdata_101_sybvol_mnt (
                MountPoint = "/sybdata"
                BlockDevice = "/dev/vx/dsk/sybdata_101/sybvol"
                )

        Process vxfend (
                PathName = "/sbin/vxfend"
                Arguments = "-m sybase -k /tmp/vcmp_socket"
                )

        RVGSharedPri syb_vvr_shpri (
                RvgResourceName = sybdata_rvg
                OnlineRetryLimit = 0
                )

        Sybase ase (
                Server @system3 = ase1
                Server @system4 = ase2
                Owner = sybase
                Home = "/sybase"
                Version = 15
                SA = sa
                Quorum_dev = "/quorum/q.dat"
                )

requires group RVGgroup online local firm
sybdata_101_sybvol_mnt requires syb_vvr_shpri
ase requires vxfend
ase requires sybdata_101_sybvol_mnt
ase requires quorum_101_quorumvol_mnt
quorum_101_quorumvol_mnt requires quorum_101_voldg