Go to main content

Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: April 2019

Moving a Non-Global Zone

This procedure is used to move the zone to a new location on the same system by changing the zonepath. The zone must be halted. The normal zonepath criteria described in Resource Types and Properties in Oracle Solaris Zones Configuration Resources apply.

This information also applies to moving solaris10 branded zones. For information on solaris10 branded zones, see Creating and Using Oracle Solaris 10 Zones.

Note -  You cannot move a zone in one of the following conditions:
  • The zone is present in other BEs. You can either delete those BEs first, or create a new zone at the new path by cloning the zone.

  • The zone is on shared storage with a rootzpool resource to a different location on the system. A rename of the zonepath is supported.

How to Move a Zone That Is Not on Shared Storage

  1. Become a zone administrator.

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

  2. Halt the zone to be moved, db-zone in this procedure.
    global$ zoneadm -z db-zone halt
  3. Use the zoneadm command with the move subcommand to move the zone to a new zonepath, /zones/db-zone.
    global$ zoneadm -z db-zone move /zones/db-zone
  4. Verify the path.
    ID  NAME     STATUS       PATH                           BRAND      IP
     0  global   running      /                              solaris    shared
     -  my-zone  installed    /zones/my-zone                 solaris    excl  
     -  db-zone  installed    /zones/db-zone                 solaris    excl