// This sample file contains two types of configurations:
// 1. NFS resource inside a service group containing Share resources.
// 2. NFS resource in a separate parallel service group.
//
// If you intend to use Share resource in multiple service groups, you
// must keep the NFS resource in a separate parallel service group.
// 1. NFS resource inside service group containing Share resources.
include "types.cf"
cluster vcs (
)
system sysa (
)
system sysb (
)
group groupy (
SystemList = { sysa = 0, sysb = 1 }
AutoStart = 0
AutoStartList = { sysb }
)
DiskGroup groupydg (
DiskGroup = groupydg
)
IP IP_172_29_9_100 (
Device = groupy_eth0
Address = "172.29.9.100"
NetMask = "255.255.255.0"
)
Mount export3 (
MountPoint = "/export3"
BlockDevice = "/dev/vx/dsk/groupydg/vol3"
FSType = vxfs
FsckOpt="y"
MountOpt = rw
)
Mount export4 (
MountPoint = "/export4"
BlockDevice = "/dev/vx/dsk/groupydg/vol4"
FSType = ext2
FsckOpt="y"
MountOpt = rw
)
NFS NFS_groupy_16 (
Nproc = 16
)
NIC groupy_eth0 (
Device = eth0
)
Share share_export3_172_29_9_143 (
Client = "172.29.9.143"
PathName = "/export3"
)
Share share_export4_172_29_9_144 (
Client = "172.29.9.144"
PathName = "/export4"
)
Volume groupydg_vol3 (
Volume = vol3
DiskGroup = groupydg
)
Volume groupydg_vol4 (
Volume = vol4
DiskGroup = groupydg
)
IP_172_29_9_100 requires groupy_eth0
IP_172_29_9_100 requires share_export3_172_29_9_143
IP_172_29_9_100 requires share_export4_172_29_9_144
export3 requires groupydg_vol3
export4 requires groupydg_vol4
groupydg_vol3 requires groupydg
groupydg_vol4 requires groupydg
share_export3_172_29_9_143 requires NFS_groupy_16
share_export3_172_29_9_143 requires export3
share_export4_172_29_9_144 requires NFS_groupy_16
share_export4_172_29_9_144 requires export4
// resource dependency tree
//
// group groupy
// {
// IP IP_172_29_9_100
// {
// NIC groupy_eth0
// Share share_export3_172_29_9_143
// {
// NFS NFS_groupy_16
// Mount export3
// {
// Volume groupydg_vol3
// {
// DiskGroup groupydg
// }
// }
// }
// Share share_export4_172_29_9_144
// {
// NFS NFS_groupy_16
// Mount export4
// {
// Volume groupydg_vol4
// {
// DiskGroup groupydg
// }
// }
// }
// }
// }
// 2. NFS resource in a separate parallel service group.
include "types.cf"
cluster vcs (
UserNames = { vcstest = IhiGheHe }
)
system vcslx242 (
)
system vcslx244 (
)
group nfs_grp (
SystemList = { vcslx242 = 0, vcslx244 = 1 }
Parallel = 1
AutoStartList = { vcslx242, vcslx244 }
)
NFS test_nfs (
Nproc = 16
)
Phantom ph (
)
// resource dependency tree
//
// group nfs_grp
// {
// NFS test_nfs
// }
group nfstest (
SystemList = { vcslx242 = 0, vcslx244 = 1 }
)
DiskGroup test_dg (
DiskGroup = nfsdg
)
IP test_ip (
Device = eth4
Address = "10.212.88.37"
NetMask = "255.255.254.0"
)
Mount test_mnt (
MountPoint = "/home/export"
BlockDevice = "/dev/vx/dsk/nfsdg/vol0"
FSType = vxfs
MountOpt = rw
FsckOpt = "-n"
)
NFSRestart test_nfsres (
NFSRes = test_nfs
)
NFSRestart test_nfsres_L (
NFSRes = test_nfs
Lower = 1
)
Share test_share (
PathName = "/home/export"
Options = "rw,nohide"
)
Volume test_vol (
DiskGroup = nfsdg
Volume = vol0
)
requires group nfs_grp online local firm
test_ip requires test_share
test_mnt requires test_vol
test_nfsres requires test_ip
test_nfsres_L requires test_mnt
test_share requires test_nfsres_L
test_vol requires test_dg
// resource dependency tree
//
// group nfstest
// {
// NFSRestart test_nfsres
// {
// IP test_ip
// {
// Share test_share
// {
// NFSRestart test_nfsres_L
// {
// Mount test_mnt
// {
// Volume test_vol
// {
// DiskGroup test_dg
// }
// }
// }
// }
// }
// }
// }
//3. NFS resource in parallel service group. Share resource with Native LVM and DiskReservation.
include "types.cf"
cluster vcs (
UserNames = { vcstest = IhiGheHe }
)
system vcslx242 (
)
system vcslx244 (
)
group nfs_grp (
SystemList = { vcslx242 = 0, vcslx244 = 1 }
Parallel = 1
AutoStartList = { vcslx242, vcslx244 }
)
NFS test_nfs (
Nproc = 16
)
Phantom ph (
)
// resource dependency tree
//
// group nfs_grp
// {
// NFS test_nfs
// }
group nfstest (
SystemList = { vcslx242 = 0, vcslx244 = 1 }
)
IP test_ip (
Device = eth4
Address = "10.212.88.37"
NetMask = "255.255.254.0"
)
Mount test_mnt (
MountPoint = "/home/export"
BlockDevice = "/dev/mapper/vg1-lv1"
FSType = ext3
MountOpt = rw
FsckOpt = "-y"
)
NFSRestart test_nfsres (
NFSRes = test_nfs
)
NFSRestart test_nfsres_L (
NFSRes = test_nfs
Lower = 1
)
Share test_share (
PathName = "/home/export"
Options = "rw,nohide"
)
LVMVolumeGroup lvm_vg1 (
VolumeGroup = vg1
)
LVMLogicalVolume lvm_lv1 (
LogicalVolume = lv1
VolumeGroup = vg1
)
DiskReservation diskres (
Disks @vcslx242 = { "/dev/sdb","/dev/sdc" }
Disks @vcslx244 = { "/dev/sdf","/dev/sde" }
)
requires group nfs_grp online local firm
test_ip requires test_share
test_mnt requires lvm_lv1
test_nfsres requires test_ip
test_nfsres_L requires test_mnt
test_share requires test_nfsres_L
lvm_lv1 requires lvm_vg1
lvm_vg1 requires diskres
//4. NFS resource in parallel service group. Share resource with Native LVM and without DiskReservation, LVM Tagging is enabled.
include "types.cf"
cluster vcs (
UserNames = { vcstest = IhiGheHe }
)
system vcslx242 (
)
system vcslx244 (
)
group nfs_grp (
SystemList = { vcslx242 = 0, vcslx244 = 1 }
Parallel = 1
AutoStartList = { vcslx242, vcslx244 }
)
NFS test_nfs (
Nproc = 16
)
Phantom ph (
)
// resource dependency tree
//
// group nfs_grp
// {
// NFS test_nfs
// }
group nfstest (
SystemList = { vcslx242 = 0, vcslx244 = 1 }
)
IP test_ip (
Device = eth4
Address = "10.212.88.37"
NetMask = "255.255.254.0"
)
Mount test_mnt (
MountPoint = "/home/export"
BlockDevice = "/dev/mapper/vg1-lv1"
FSType = ext3
MountOpt = rw
FsckOpt = "-y"
)
NFSRestart test_nfsres (
NFSRes = test_nfs
)
NFSRestart test_nfsres_L (
NFSRes = test_nfs
Lower = 1
)
Share test_share (
PathName = "/home/export"
Options = "rw,nohide"
)
LVMVolumeGroup lvm_vg1 (
VolumeGroup = vg1
EnableLVMTagging = 1
)
LVMLogicalVolume lvm_lv1 (
LogicalVolume = lv1
VolumeGroup = vg1
)
requires group nfs_grp online local firm
test_ip requires test_share
test_mnt requires lvm_lv1
test_nfsres requires test_ip
test_nfsres_L requires test_mnt
test_share requires test_nfsres_L
lvm_lv1 requires lvm_vg1