VxFS file systems that were previously created in the global zone can be made available in the non-global zone using a loopback file system mount. This functionality is especially useful when the sole purpose of making the file system available in the non-global zone is to share access of this file system with one or more non-global zones. For example, if a configuration file is available in a particular file system and this configuration file is required by the non-global zone, then the file system can be shared with the non-global zone using a loopback file system mount.
The following commands share access of file system /mnt1
as a loopback file system mount with the non-global zone myzone
:
global# zonecfg -z myzone zonecfg:myzone> add fs zonecfg:myzone:fs> set dir=/mnt1 zonecfg:myzone:fs> set special=/oradata zonecfg:myzone:fs> set type=lofs zonecfg:myzone:fs> end zonecfg:myzone> commit zonecfg:myzone> exit global# zoneadm -z myzone reboot
The value of dir is a directory in the non-global zone. The value of special is a directory in the global zone to be mounted in the non-global zone.
The loopback file system mount mode of sharing file systems in the non-global zones is supported in Veritas File System 4.1 and later.