InfoScale™ Cluster Server 9.0 Bundled Agents Reference Guide - Solaris
- Introducing bundled agents
- Storage agents
- DiskGroup agent
- DiskGroupSnap agent
- Notes for DiskGroupSnap agent
- Sample configurations for DiskGroupSnap agent
- Disk agent
- Volume agent
- VolumeSet agent
- Sample configurations for VolumeSet agent
- Mount agent
- Sample configurations for Mount agent
- Zpool agent
- VMwareDisks agent
- SFCache agent
- Network agents
- About the network agents
- IP agent
- NIC agent
- About the IPMultiNICB and MultiNICB agents
- IPMultiNICB agent
- Sample configurations for IPMultiNICB agent
- MultiNICB agent
- Sample configurations for MultiNICB agent
- DNS agent
- Agent notes for DNS agent
- About using the VCS DNS agent on UNIX with a secure Windows DNS server
- Sample configurations for DNS agent
- File share agents
- NFS agent
- NFSRestart agent
- Share agent
- About the Samba agents
- NetBios agent
- Service and application agents
- AlternateIO agent
- Apache HTTP server agent
- Application agent
- Notes for Application agent
- Sample configurations for Application agent
- CoordPoint agent
- LDom agent
- Dependencies
- Process agent
- Usage notes for Process agent
- Sample configurations for Process agent
- ProcessOnOnly agent
- Project agent
- RestServer agent
- Zone agent
- Infrastructure and support agents
- Testing agents
- Replication agents
Support for loopback file system
The Mount agent provides loopback file system support. You can manage the loopback file system as a Mount resource. You can use this loopback support to mount a file system in the global zone and share it in non-global zones. For loopback support, configure the FSType attribute to use a value of lofs.
Figure: Sample service group for the zone root on shared storage with a loopback file system when VCS manages the loopback file system as a Mount resource
The following is a sample configuration where you use the Mount resource to manage the lofs file system:
group loopbacksg ( SystemList = { sysA = 0, sysB = 1 } ContainerInfo@sysA = { Name = zone1, Type = Zone, Enabled = 1 } ContainerInfo@sysB = { Name = zone1, Type = Zone, Enabled = 1 } ) Mount lofs_mnt_global_to_local ( MountPoint = "/export/home/zone1/root/lofs_mnt" BlockDevice = "/mnt1/m1" FSType = lofs ) Zone z1 ( ) Mount base_mnt ( MountPoint = "/mnt1" BlockDevice = "/dev/vx/dsk/tdg/tvol1" FSType = vxfs FsckOpt = "-y" ) lofs_mnt_global_to_local requires z1 lofs_mnt_global_to_local requires base_mnt
In the following sample configuration, the local zone (zone1) runs only on system 1 (sys1) and it does not exist in system 2 (sys2). The mount resource comes online inside the zone. On system 1, the "/export/home/zone1/root/mnt" mount point exists inside the zone. On system 1, the "/export/home" mount point is mounted on "/export/home/zone1/root/mnt" inside the zone. On system 2, the "/export/home" mount point is mounted on "/mnt" in the global zone.
group mountgrp ( SystemList = { sys1 = 0, sys2 = 1 } ContainerInfo @sys1 = { Name = zone1, Type = Zone, Enabled = 1 } ContainerInfo @sys2 = { Name = zone1, Type = Zone, Enabled = 2 } Administrators = { z_mountres_sys1, z_zoneres_sys1 } ) Mount loopback ( MountPoint @sys1 = "/export/home/zone1/root/mnt" MountPoint @sys2 = "/mnt" BlockDevice = "/export/home" FSType = lofs FsckOpt = "-n" ) Zone zoneres ( ) loopback requires zoneres
In the following sample configuration, there are two mount resources. The first mount resource (mountres) mounts the actual shared volume "/dev/vx/dsk/vdg/nfs_vol" on "/lockinfo". Next, "/lockinfo" is loop-backed on "/export/home/zone1/root/mnt" inside the zone on system 1. On system 2, the "/dev/vx/dsk/vdg/nfs_vol" volume is mounted on "/lockinfo" and then "/lockinfo" is loop-backed and mounted on "/mnt" in the global zone. In the following example, localization has been done for the mount resource.:
group mountgrp ( SystemList = { sys1 = 0, sys2 = 1 } ContainerInfo @sys1 = { Name = zone1, Type = Zone, Enabled = 1 } ContainerInfo @sys2 = { Name = zone1, Type = Zone, Enabled = 2 } Administrators = { z_mountres_sys1, z_zoneres_sys1 } ) DiskGroup dgres ( DiskGroup = vdg ) Mount loopback ( MountPoint @sys1 = "/export/home/zone1/root/mnt" MountPoint @sys2 = "/mnt" BlockDevice = "/lockinfo" FSType = lofs FsckOpt = "-n" ) Mount mountres ( MountPoint = "/lockinfo" BlockDevice = "/dev/vx/dsk/vdg/nfs_vol" FSType = vxfs FsckOpt = "-y" ) Zone zoneres ( ) loopback requires mountres loopback requires zoneres mountres requires dgres