Go to main content

Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: April 2019

How To Move an Existing Zone out of a Shared Storage Configuration

To move an installed zone out of its shared storage configuration, perform the following steps.

  1. Become a zone administrator.

    You must also be assigned the ZFS Storage Management rights profile. The root role has all of these rights.

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

  2. Shut down the zone with zoneadm shutdown.
  3. If you are removing a rootzpool resource from a zone, create an archive of the installed zone.

    Refer to the solaris(5) man page for additional information.

  4. Detach the zone using zoneadm detach.

    The zone will move into the configured state. During zone detach, the ZFS storage pools will be exported and corresponding storage resources will be unconfigured.

  5. Remove the desired rootzpool and zpool resources from the Zone configuration with zonecfg.
  6. Perform one of the following steps depending on the resource that has been removed.
    • If a rootzpool resource has been removed, re-install the zone from the archive using zoneadm install -a.

    • When removing a zpool resource only, just re-attach the zone with zoneadm attach. This step moves the zone back into the installed state again.

    The archive based installation process will create a new, local zonepath containing the zone installation.

  7. Manually destroy the ZFS storage pools with zpool if necessary.