Mounting File Systems in Zones
When file systems are mounted from within a zone, the nodevices option applies. For example, if a zone is granted access to a block device (/dev/dsk/c0t0d0s7) and a raw device (/dev/rdsk/c0t0d0s7) corresponding to a UFS file system,
the file system is automatically mounted nodevices when mounted from within a zone. This rule does not apply to mounts specified through a zonecfg configuration.
Options for mounting file systems in non-global zones are described in the following table. Procedures for these mounting alternatives are provided in Configuring, Verifying, and Committing a Zone and Mounting
File Systems in Running Non-Global Zones.
Any file system type not listed in the table can be specified in the configuration if it has a mount binary in /usr/lib/fstype/mount.
To mount file system types other than HSFS and NFS from inside the non-global zone, also add the file system type to the configuration by using the zonecfg fs-allowed property.
Allowing file system mounts other than the default might allow the zone administrator to compromise the system.
| |
AutoFS
| Cannot be mounted using zonecfg. Can be mounted from within the zone.
|
CacheFS
| Cannot be used in a non-global zone.
|
FDFS
| Can be mounted using zonecfg, can be mounted from within the zone.
|
HSFS
| Can be mounted using zonecfg, can be mounted from within the zone.
|
LOFS
| Can be mounted using zonecfg, can be mounted from within the zone.
|
MNTFS
| Cannot be mounted using zonecfg. Can be mounted from within the zone.
|
NFS
| Cannot be mounted using zonecfg. V2, V3, and V4, which are the versions currently supported in zones, can be mounted from within the zone.
|
PCFS
| Can be mounted using zonecfg, can be mounted from within the zone.
|
PROCFS
| Cannot be mounted using zonecfg. Can be mounted from within the zone.
|
TMPFS
| Can be mounted using zonecfg, can be mounted from within the zone.
|
UDFS
| Can be mounted using zonecfg, can be mounted from within the zone.
|
UFS
| Can be mounted using zonecfg, can be mounted from within the zone. Note - The quota command documented in quota(1M) cannot be used to retrieve quota information for UFS file systems added through
the zonecfg add fs resource. The system/file-system/ufs package must be installed in the global zone if add fs is used. To use UFS file systems in a non-global zone through
the zonecfg command, the package must be installed into the zone after installation or through the AI manifest script. The following is typed as one line: global# pkg -R /tank/zones/my-zone/root \
install system/file-system/ufs
|
VxFS
| Can be mounted using zonecfg, can be mounted from within the zone.
|
ZFS
| Can be mounted using the zonecfg dataset and fs resource types.
|
|
For more information, see How to Configure the Zone, Mounting File Systems in Running Non-Global Zones, and the mount(1M) man page.