include "OracleASMTypes.cf"
include "types.cf"
include "Db2udbTypes.cf"
include "OracleTypes.cf"
include "SybaseTypes.cf"

cluster MILHB01SCluster (
	UserNames = { admin = dqoMqsPlqXqrPpqWqpOznKnmMn }
	ClusterAddress = "10.38.128.148"
	Administrators = { admin }
	)

remotecluster MILHB05SCluster (
	ClusterAddress = "10.38.128.149"
	)

heartbeat Icmp (
	ClusterList = { MILHB05SCluster }
	AYARetryLimit = 9
	Arguments @MILHB05SCluster = { "10.38.128.149" }
	)

system MILHB01S (
	)

group AppService (
	SystemList = { MILHB01S = 0 }
	AutoStart = 0
	ClusterList = { MILHB05SCluster = 0, MILHB01SCluster = 1 }
	Authority = 1
	ClusterFailOverPolicy = Auto
	)

	Application NMSServer (
		StartProgram = "/opt/oss/engr/OSSApp/haStart"
		StopProgram = "/opt/oss/engr/OSSApp/haStop"
		CleanProgram = "/opt/oss/engr/OSSApp/haClean"
		MonitorProgram = "/opt/oss/engr/OSSApp/haMonitor"
		)

	Mount DataFilesystem (
		TriggerResStateChange = 1
		MountPoint = "/opt/sybase/data"
		BlockDevice = "/dev/vx/dsk/datadg/lv_nms_data"
		FSType = ufs
		FsckOpt = "-y"
		)

	Mount FileSyncFileSystem (
		MountPoint = "/export/sync"
		BlockDevice = "/dev/vx/dsk/datadg/lv_filesync"
		FSType = ufs
		FsckOpt = "-y"
		)

	NIC appNIC (
		Device = igb0
		NetworkHosts = { "10.66.22.19" }
		)

	RVGPrimary RVGPrimary (
		RvgResourceName = datarvg
		)

	Sybase DatabaseServer (
		Owner = dbuser
		Version = "15.5"
		SA = sa
		Server = DBSVR
		SApswd = "Enter Password:"
		Home = "/opt/sybase"
		LevelTwoMonitorFreq = 0
		)

	SybaseBk BackupServer (
		Critical = 0
		Owner = dbuser
		Version = "15.5"
		SA = sa
		Server = DBSVR
		SApswd = "Enter Password:"
		Home = "/opt/sybase"
		Backupserver = DBSVR_back
		)

	requires group VVRService online local firm
	BackupServer requires DatabaseServer
	DataFilesystem requires RVGPrimary
	DatabaseServer requires DataFilesystem
	FileSyncFileSystem requires RVGPrimary
	NMSServer requires BackupServer
	NMSServer requires FileSyncFileSystem
	RVGPrimary requires appNIC


	// resource dependency tree
	//
	//	group AppService
	//	{
	//	Application NMSServer
	//	    {
	//	    SybaseBk BackupServer
	//	        {
	//	        Sybase DatabaseServer
	//	            {
	//	            Mount DataFilesystem
	//	                {
	//	                RVGPrimary RVGPrimary
	//	                    {
	//	                    NIC appNIC
	//	                    }
	//	                }
	//	            }
	//	        }
	//	    Mount FileSyncFileSystem
	//	        {
	//	        RVGPrimary RVGPrimary
	//	            {
	//	            NIC appNIC
	//	            }
	//	        }
	//	    }
	//	}


group ClusterService (
	SystemList = { MILHB01S = 0 }
	AutoStartList = { MILHB01S }
	ClusterFailOverPolicy = Auto
	)

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



	// resource dependency tree
	//
	//	group ClusterService
	//	{
	//	Application wac
	//	}


group VVRService (
	SystemList = { MILHB01S = 0 }
	AutoStartList = { MILHB01S }
	ClusterFailOverPolicy = Auto
	)

	RVG datarvg (
		Critical = 0
		RVG = datarvg
		DiskGroup = datadg
		)



	// resource dependency tree
	//
	//	group VVRService
	//	{
	//	RVG datarvg
	//	}


