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 for the zone root on shared storage with a loopback file system when VCS manages the loopback file system as a Mount resource

Sample service group for 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