Go to main content

Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: April 2019
 
 

How To Add Additional ZFS Storage Pools to an Installed Zone

It is possible to add additional ZFS storage pools based on shared storage resources to an installed zone. To assign an already existing ZFS storage pool to a zone, perform the following manual steps. Note that the existing ZFS storage pool must be exported first with the zpool export command.

This procedure can also be used to migrate ZFS storage pools from one installed zone to another. In addition to these steps, the source zone must be detached first using zoneadm detach to export the ZFS storage pool properly, and its zone configuration must be altered to remove the corresponding zpool resource with zonecfg.

  1. Become a zone administrator.

    For more information, see Assigning Limited Rights to Zone Administrators.

  2. Shut down the zone with zoneadm shutdown.
  3. Detach the installed zone using zoneadm detach.

    The zone will move into the configured zone state.

  4. Add a new zpool resource and corresponding shared storage resources to the zone configuration with zonecfg.
  5. Re-attach the zone using zoneadm attach.

    The zone will move back into the installed state.

    During attach, the zones framework will configure the shared storage resources, import the existing ZFS storage pool, and assign it to the installed zone.

  6. The zone can now be rebooted with zoneadm boot.