Sample configurations

include "types.cf"

cluster vcs_cluster (

CounterInterval = 5

)

system sysa (

)

system sysb (

)

group test_grp (

SystemList = { sysa = 0, sysb = 1 }

)

DiskGroup test_dg (

DiskGroup = test_dg

)

IP test_ip (

Device = en0

Address = "10.182.13.28"

NetMask = "255.255.240.0"

)

Mount test_mnt (

MountPoint = "/test_mnt"

BlockDevice = "/dev/vx/dsk/test_dg/test_vol"

FSType = vxfs

MountOpt = rw

FsckOpt = "-y %-o full"

)

Mount test_lockinfo_mnt (

MountPoint = "/lockinfo"

BlockDevice = "/dev/vx/dsk/test_dg/test_lockinfo_vol"

FSType = vxfs

MountOpt = rw

FsckOpt = "-y"

)

NFS test_nfs (

Nservers = 20

)

NFSRestart test_nfsrestart (

NFSLockFailover = 1

LocksPathName = "/test_mnt"

NFSRes = test_nfs

)

Share test_share (

PathName = "/test_mnt"

Options = "-o rw"

)

Volume test_lockinfo_vol (

Volume = test_lockinfo_vol

DiskGroup = test_dg

)

Volume test_vol (

Volume = test_vol

DiskGroup = test_dg

)

test_nfsrestart requires test_ip

test_nfsrestart requires test_lockinfo_mnt

test_lockinfo_mnt requires test_lockinfo_vol

test_lockinfo_vol requires test_dg

test_ip requires test_share

test_share requires test_nfs

test_share requires test_mnt

test_mnt requires test_vol

test_vol requires test_dg

include "types.cf"

cluster nfsclus (

UserNames = { admin = joe }

Administrators = { admin }

)

system sysA (

)

system sysB (

)

group nfsres_grp (

SystemList = { sysA = 0, sysB = 1 }

)

DiskGroup dg (

DiskGroup = nfsr_dg

)

IP ip (

Device = bge0

Address = "11.152.6.155"

NetMask = "255.255.240.0"

)

Mount mnt (

MountPoint = "/nfsr_mnt"

BlockDevice = "/dev/vx/dsk/nfsr_dg/nfsr_vol"

FSType = vxfs

MountOpt = rw

FsckOpt = "-y"

)

NFS nfs (

)

NFSRestart nfsres (

LocksPathName = "/nfsr_mnt"

NFSLockFailover = 1

NFSRes = "nfs"

)

Share share (

PathName = "/nfsr_mnt"

Options = "-o rw"

)

Volume vol (

Volume = nfsr_vol

DiskGroup = nfsr_dg

)

ip requires share

mnt requires vol

nfsres requires ip

share requires mnt

share requires nfs

vol requires dg

// resource dependency tree

//

// group nfsres_grp

// {

// NFSRestart nfsres

// {

// IP ip

// {

// Share share

// {

// Mount mnt

// {

// Volume vol

// {

// DiskGroup dg

// }

// }

// NFS nfs

// }

// }

// }

// }