Information Technology Reference
In-Depth Information
and only privileged users in the global zone can access the file system. In this
example, dir has the same meaning as in the previous example, but special
indicates the name of the device that contains the file system.
GZ# zonecfg -z myufszone
zonecfg:myzone> add fs
zonecfg:myzone:fs> set dir=/mnt/myfs
zonecfg:myzone:fs> set special=/dev/dsk/c1t0d0s5
zonecfg:myzone:fs> set type=ufs
zonecfg:myzone:fs> end
zonecfg:myzone> exit
Storage managed by ZFS can be added in two different ways. In the next exam-
ple, the first method is similar to the previous examples. Processes running in the
Container can access the storage available to the ZFS file system rpool/myzone1 .
We recommend setting a quota on all file systems assigned to Containers so that
one Container does not fill up the pool and prevent other workloads from using
the pool.
The second method assigns a ZFS data set to the Container. 2 This method del-
egates administration of the data set to the Container. A privileged user in the
Container, such as the root user, can control attributes of the data set and create
new ZFS file systems in it. That user also controls attributes of those file systems,
such as quotas and access control lists (ACLs).
GZ# zonecfg -z myzfszone
zonecfg:myzone> add fs
zonecfg:myzone:fs> set dir=/mnt/myzfs1
zonecfg:myzone:fs> set special=rpool/myzone1
zonecfg:myzone:fs> set type=zfs
zonecfg:myzone:fs> end
zonecfg:myzone> add dataset
zonecfg:myzone:dataset> set name=rpool/myzone2
zonecfg:myzone:dataset> end
zonecfg:myzone> exit
All of these mounts—UFS, lofs, ZFS, and others—are created when the
Container is booted. For more information on types of file systems that can be
used within a Container, see the Oracle Solaris 10 documentation at http://
docs.sun.com/app/docs/prod/solaris.10 .
2.
See the ZFS documentation at http://docs.sun.com/app/docs/doc/819-5461 for details regarding
ZFS data sets.
 
 
Search WWH ::




Custom Search