Assign shared storage resources to zones in the zone configuration byusing storage URIs to describe the location of a storage object.
Two zone configuration resource types,rootzpool, andzpool, and a property type,storage, areused to assign shared storage resources to a particular Oracle Solaris Zone. These areconfigured and maintained with thezonecfg.
When using shared storage resources, thestorageproperty defines the location of the storage object in a host-independent formatby using storage URIs. The following storage URIs are currently supported by theOracle Solaris Zones framework in Oracle Solaris:
dev: local device path storage URI, DAS
iscsi: iSCSI storage URI
lu: Fibre Channel (FC) and Serial Attached SCSI(SAS)
The storage property is managed using the followingzonecfg subcommands from within arootzpool orzpool resource scope:
zonecfg:zonename:zpool>add storageURI stringzonecfg:zonename:zpool>remove storageURI string
Therootzpool resource is a dedicated ZFS storage poolfor a zone. The entire zone installation is encapsulated into its own dedicatedZFS storage pool. This ZFS storage pool will be composed of shared storageresources.
Therootzpool resource must specify at least onestorage property. Multiple storage properties can be specified to describeredundant ZFS storage pool configurations. Note that there can be only onerootzpool resource per zone configuration.
The ZFS storage pool name for arootzpool resource willbe automatically assigned aszonename_rpool. The name cannot bechanged. Therootzpool resource is managed by using thefollowingzonecfg subcommands from the global resourcescope:
zonecfg:zonename>add rootzpoolzonecfg:zonename:rootzpool>add storageURI stringzonecfg:zonename:rootzpool>endzonecfg:zonename>remove rootzpoolzonecfg:zonename>select rootzpool storage=URI stringzonecfg:zonename>info rootzpool
Thezpool resource describes a ZFS storage poolcomposed of shared storage resources that is delegated to the Oracle Solaris Zone. Thezpool resource will specify at least one storage property.Multiple storage properties can be specified to describe redundant ZFS storagepool configurations. There can be multiplezpool resourcesdefined for a zone configuration.
The ZFS storage pool name for azpool resource isassigned by combining the zone name and the specified name property, aszonename_name. For thename property, thezonecfg will verify that the string iseligible for a ZFS storage name and a ZFS dataset name. The stringrpool is not permitted and cannot be used for thisproperty.
Thezpool resource is managed using the followingzonecfg subcommands from the global resource scope:
zonecfg:zonename>add zpoolzonecfg:zonename:zpool>add storageURI stringzonecfg:zonename:zpool>set name=name stringzonecfg:zonename:zpool>endzonecfg:zonename>remove zpoolzonecfg:zonename>remove zpool name=name stringzonecfg:zonename>remove zpool storage=URI stringzonecfg:zonename>select zpool storage=URI stringzonecfg:zonename>info zpoolzonecfg:zonename>info zpool name=name stringzonecfg:zonename>info zpool storage=URI string
You can use thezoneadm command to rename a zone ineither the configured or the installed state.
To alter a storage resource URI within arootzpool orzpool resource when the location description changes for anexisting shared storage resource, use thezonecfg remove storageold URI command syntax followed by theadd storagenew URIcommand.