Sample configurations

Configuration 1 for AIX

In the following configuration, vol1 is a volume in VxVM diskgroup. The Mnt_dg resource requires the dg resource.

<resource name="Mnt_dg" type="Mount">

<attribute name="BlockDevice"><scalar>"/dev/vx/dsk/dg/vol1"

</scalar></attribute>

<attribute name="FSType"><scalar>"vxfs"</scalar></attribute>

<attribute name="MountOpt"><scalar>"rw"</scalar></attribute>

<attribute name="MountPoint"><scalar>"/data"</scalar>

</attribute>

<attribute name="FsckOpt"><scalar>"-y"</scalar></attribute>

</resource>

In the following configuration, vg00 is a LVM volume group. The mount resource mnt requires the lvmvg_vg00 LVMVG resource.

LVMVG lvmvg_vg00 (

VolumeGroup = vg00

Disks = { "hdisk3" }

Options = "u"

)

Mount mnt (

MountPoint = "/lvm_testmnt"

BlockDevice = "/dev/lv00"

FSType = jfs

)

mnt requires vg00

Configuration 2 for AIX

In the following configuration, lv01 is a volume in LVM volume group. The Mnt_vg resource requires the LVM volume group resource.

<resource name="Mnt_vg" type="Mount">

<attribute name="BlockDevice"><scalar>"/dev/lv01"

</scalar></attribute>

<attribute name="FSType"><scalar>"jfs"</scalar></attribute>

<attribute name="MountOpt"><scalar>"rw"</scalar></attribute>

<attribute name="MountPoint"><scalar>"/testmnt"</scalar>

</attribute>

<attribute name="FsckOpt"><scalar>"-y"</scalar></attribute>

</resource>

In the following configuration, vol0 is a volume in diskgroup testdg_1 created with VxVM. Mount resource m0 requires the dg1 diskgroup resource.

DiskGroup dg1 (

DiskGroup = testdg_1

)

Mount m0 (

MountPoint = "/tmp/m0"

BlockDevice = "/dev/vx/dsk/testdg_1/vol0"

FSType = vxfs

)

m0 requires dg1

Configuration 3 for AIX

<resource name="MountNFS" type="Mount">

<attribute name="BlockDevice"><scalar>"10.212.100.101:/mnt/

share"</scalar></attribute>

<attribute name="FSType"><scalar>"nfs"</scalar></attribute>

<attribute name="MountOpt"><scalar>"rw"</scalar> </attribute>

<attribute name="MountPoint"><scalar>"/data"</scalar>

</attribute>

<attribute name="SecondLevelMonitor"><scalar>1</scalar>

</attribute>

<attribute name="SecondLevelTimeout"><scalar>20</scalar>

</attribute>

</resource>

In the following configuration, sysA is the remote NFS server and /home/xyz is the remote directory.

Mount mnt3 (

MountPoint = "/tmp/m1"

BlockDevice = "sysA:/home/xyz"

FSType = nfs

)

Configuration 1 for Linux and Solaris

<resource name="MountSCSI1" type="Mount">

<attribute name="BlockDevice"><scalar>"/dev/vx/dsk/dg/vol1" </scalar></attribute>

<attribute name="FSType"><scalar>"vxfs"</scalar></attribute>

<attribute name="MountOpt"><scalar>"rw"</scalar></attribute>

<attribute name="MountPoint"><scalar>"/data"</scalar> </attribute>

<attribute name="FsckOpt"><scalar>"-y"</scalar></attribute>

</resource>

Configuration 2 for Linux and Solaris

<resource name="MountNFS" type="Mount">

<attribute name="BlockDevice"><scalar>"10.212.100.101: /mnt/share"</scalar></attribute>

<attribute name="FSType"><scalar>"nfs"</scalar></attribute>

<attribute name="MountOpt"><scalar>"rw"</scalar></attribute>

<attribute name="MountPoint"><scalar>"/data"</scalar> </attribute>

<attribute name="SecondLevelMonitor"><scalar>1</scalar> </attribute>

<attribute name="SecondLevelTimeout"><scalar>20</scalar> </attribute>

</resource>

Configuration 3 for AIX, Linux, and Solaris

In the following configuration, vol1 is a volume in VxVM diskgroup. The Mnt_dg resource requires the dg resource.

<resource name="Mnt_dg" type="Mount">

<attribute name="BlockDevice"><scalar>"/dev/vx/dsk/dg/vol1" </scalar></attribute>

<attribute name="FSType"><scalar>"vxfs"</scalar></attribute>

<attribute name="MountOpt"><scalar>"rw"</scalar></attribute>

<attribute name="MountPoint"><scalar>"/data1/data2"</scalar> </attribute>

<attribute name="AccessPermissionChk"><scalar>1</scalar> </attribute>

<attribute name="CreateMntPt"><scalar>1</scalar></attribute>

<attribute name="MntPtGroup"><scalar>"grp1"</scalar> </attribute>

<attribute name="MntPtOwner"><scalar>"usr1"</scalar> </attribute>

<attribute name="MntPtPermission"><scalar>"0755"</scalar> </attribute>

<attribute name="OptCheck"><scalar>1</scalar></attribute>

<attribute name="RecursiveMnt"><scalar>1</scalar></attribute>

</resource>

VxFS configuration example

Mount mnt-fs1 (

MountPoint= "/mnt1"

BlockDevice = "/dev/vx/dsk/mnt-dg1/mnt-vol1"

FSType = "vxfs"

FsckOpt = "-n"

MountOpt = "rw"

)