Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: May 2015

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. Shut down the zone with zoneadm shutdown.
  2. 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.

  3. 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.

  4. Remove the desired rootzpool and zpool resources from the Zone configuration with zonecfg.
  5. 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(1M) install -a.

    • When removing a zpool resource only, just re-attach the Zone with zoneadm(1M) 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.

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