How to Cold Migrate a solaris
Zone
-
Review cold migration requirements in Migration and Transformation of Non-Global Zones.
-
Ensure that you have the necessary rights and privileges to cold migrate a zone. See Authorizing Non-Root Users to Perform Non-Global Zone Migrations.
Perform this procedure cold migrate a solaris
zone that uses shared storage.
Note:
If the zone uses local storage, you cannot migrate the zone using cold migration. Instead, use Unified Archives to migrate the zone. Go to How to Use Unified Archive to Move a Non-Global Zone to a New System.Example 8-3 Failing a Cold Migration Dry Run Due to Local Storage
This example verifies that a zone is not running. A cold migration dry run then fails because of local storage being used in the zone zone2
.
root@global3 $ zoneadm list -cv ID NAME STATUS PATH BRAND IP 0 global running / solaris shared - zone2 installed - solaris excl root@global3 $ zoneadm -z zone2 migrate -n ssh://global5 zoneadm: zone 'zone2': configuration check failed: The storage property dev:/dev/zvol/dsk/rpool/VARSHARE/zones/zone2/disk0 is not a shared storage URI.
Example 8-4 Succeeding at Cold Migration After a Configuration Change
This example shows removal of a non-booting local storage device from the zone configuration for zone zone2
, and then a successful migration. The zone configuration used comes from the migrating zone and is imported on the target host.
root@global3 $ zonecfg -z zone2 'remove device id=1;commit;exit' root@global3 $ zoneadm -z zone2 migrate ssh://global5 zoneadm: zone 'zone2': Importing zone configuration. zoneadm: zone 'zone2': Attaching zone. zoneadm: zone 'zone2': Migration successful.