Sample configurations
Configuration 1
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"
)
NFS test_nfs (
Nservers = 20
)
NFSRestart test_nfsrestart (
)
Share test_share (
PathName = "/test_mnt"
Options = "-o rw,root=vcsaix3"
)
Volume test_vol (
Volume = test_vol
DiskGroup = test_dg
)
test_nfsrestart requires test_ip
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
Configuration 2
This is a sample VCS configuration for using the NFSv4 feature by explicitly creating the NFSv4 pseudo file system. Here, NFSv4Root is set to "/export", which is different than the root of the local file system. If you want to use NFSv4 features and the NFSv4Root attribute is not equal to "/", you must configure the Share resources with exname in the Options attribute relative to the NFSv4Root. In this example it is: exname="/export/export1".
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"
)
NFS test_nfs (
Nservers = 20
NFSv4Root = "/export"
)
NFSRestart test_nfsrestart (
)
Share test_share (
PathName = "/test_mnt"
Options = "-o rw,vers=4,root=vcsaix3,exname=/ \
export/export1"
)
Volume test_vol (
Volume = test_vol
DiskGroup = test_dg
)
test_nfsrestart requires test_ip
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