Introduction to Oracle® Solaris Zones

Exit Print View

Updated: December 2014
 
 

Adding a zpool Resource Automatically

A zpool can be delegated to a non-global zone by configuring the optional zpool resource in the zonecfg utility. The zpool is automatically configured for the zone when it is booted.

The corresponding zpools are automatically created or imported during zone installation or zone attach operations.

When the zone is uninstalled or detached, the following actions take place:

  • The corresponding zpools are automatically exported or destroyed.

  • The storage resources are automatically unconfigured.

The required storage property identifies the storage object URI associated with this resource.

The storage property is managed using the following settings in the zpool resource scope:

  • add storage URI string

  • remove storage URI string

The name property is mandatory for the zpool resource. The property is used in the name for a zpool delegated to the zone. The ZFS file system name component cannot contain a forward slash (/).

The assigned name of the newly created or imported zpool is the value of the name property. This is the zpool name visible inside the non-global zone. The assigned name of the newly created or imported zpool name has the form zonename_name when displayed from the global zone.


Note -  A zone installation can fail when a storage object contains preexisting partitions, zpools, or UFS file systems. For more information, see Step 4 in How to Install a Configured Zone in Creating and Using Oracle Solaris Zones .