Sample main.cf file

This is a sample main.cf file.

include "types.cf"
include "ApplicationNone.cf"
include "CFSTypes.cf"
include "CVMTypes.cf"

cluster cfs_cluster (
	UserNames = { admin = anoGniNkoJooMwoInl }
	Administrators = { admin }
	HacliUserLevel = COMMANDROOT
	)

system system01 (
	)

system system01 (
	)

group cfsnfssg (
	SystemList = { system01 = 0, system02 = 1 }
	AutoFailOver = 0
	Parallel = 1
	AutoStartList = { system01, system02 }
	)

	ApplicationNone app (
		MonitorProgram = "/opt/VRTSvcs/bin/ApplicationNone/lockdstatdmon"
		)

	CFSMount cfsmount2 (
		Critical = 0
		MountPoint = "/fsqamnt2"
		BlockDevice = "/dev/vx/dsk/dg1/vol2"
		NodeList = { system01, system02 }
		)

	CFSMount cfsnfs_locks (
		Critical = 0
		MountPoint = "/locks"
		BlockDevice = "/dev/vx/dsk/dg1/vollocks"
		NodeList = { system01, system02 }
		)

	CVMVolDg cvmvoldg1 (
		Critical = 0
		CVMDiskGroup = dg1
		CVMActivation @system01 = sw
		CVMActivation @system02 = sw
  CVMVolume = { vol2 }
  CVMVolumeIoTest = { vol2 }
		)

	NFS nfs (
		)

	Share share1 (
		PathName = "/fsqamnt2"
		)

	requires group cvm online local firm
	cfsmount2 requires cvmvoldg1
	cfsnfs_locks requires cvmvoldg1
	share1 requires cfsmount2
	share1 requires nfs


	// resource dependency tree
	//
	//	group cfsnfssg
	//	{
	//	ApplicationNone app
	//	CFSMount cfsnfs_locks
	//	    {
	//	    CVMVolDg cvmvoldg1
	//	    }
	//	Share share1
	//	    {
	//	    NFS nfs
	//	    CFSMount cfsmount2
	//	        {
	//	        CVMVolDg cvmvoldg1
	//	        }
	//	    }
	//	}


group cfsnfssg_dummy (
	SystemList = { system01 = 0, system02 = 1 }
	AutoFailOver = 0
	Parallel = 1
	AutoStartList = { system01, system02 }
	)

	requires group cvm online local firm


	// resource dependency tree
	//
	//	group cfsnfssg_dummy
	//	{
	//	}


group cvm (
	SystemList = { system01 = 0, system02 = 1 }
	AutoFailOver = 0
	Parallel = 1
	AutoStartList = { system01, system02 }
	)

	CFSfsckd vxfsckd (
		ActivationMode @system01 = { dg1 = sw }
		ActivationMode @system02 = { dg1 = sw }
		)

	CVMCluster cvm_clus (
		CVMClustName = cfs_cluster
		CVMNodeId = { system01 = 0, system02 = 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 vip1 (
	SystemList = { system01 = 0, system02 = 1 }
	AutoStartList = { system01, system02 }
	PreOnline @system01 = 1
	PreOnline @system02 = 1
	)

	IP vip1 (
		Device = eth0
		Address = "10.182.111.161"
  NetMask = "255.255.252.0"
		)

	NIC nic1 (
		Device = eth0
		)

	requires group cfsnfssg online local firm
	vip1 requires nic1


	// resource dependency tree
	//
	//	group vip1
	//	{
	//	IP vip1
	//	    {
	//	    NIC nic1
	//	    }
	//	}