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.

Note:

Allowing file system mounts other than the default might enable the zone administrator to compromise the system.

Options for mounting file systems in non-global zones are described in the following table. 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.

File System Mounting Options in a Non-Global Zone

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.

The quota command, which is documented in the quota(8) man page, cannot be used to retrieve quota information for UFS file systems that are added with the fs resource of the zonecfg command.

The system/file-system/ufs package must be installed in the global zone if the fs resource 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.

global$ pfexec pkg -R /system/zones/zonename/root install 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 mounting procedures, see Installing a Non-Global Zone and Adding File Systems for Zone Use.

For more information, see How to Create and Deploy a Non-Global Zone and the mount(8) man page.