Go to main content

Creating and Using Oracle® Solaris Kernel Zones

Exit Print View

Updated: August 2021
 
 

How to Evacuate Running Kernel Zones

Before You Begin

Be sure the evacuation targets are set and the system is in maintenance mode as described in the preceding sections.

  1. Become an administrator who is assigned rights to migrate kernel zones.

    For more information, see Rights Required to Perform Kernel Zone Migrations.

  2. Verify that the zones that you want to evacuate are running.

    Output is similar to the following:

    source-host$ pfbash zoneadm list -cv
      ID NAME             STATUS      PATH                         BRAND      IP
       0 global           running     /                            solaris    shared
       1 kzone            running     -                            solaris-kz excl
  3. (Optional) Perform a dry run of the evacuation to verify that conditions are set appropriately.

    Output is similar to the following:

    source-host$ sysadm evacuate -n
    sysadm: preparing zones for evacuation ... 1/1
    sysadm: dry-run succeeded
  4. Evacuate the zones.

    Output is similar to the following:

    source-host$ sysadm evacuate -v
    sysadm: preparing 3 zone(s) for evacuation ... 
    sysadm: initializing migration of kzone to new-host ...
    …
    sysadm: evacuation completed successfully.
Example 50  Successful Zone Evacuation
root@ldom1-04:~# sysadm evacuate -v
sysadm: preparing 1 zone(s) for evacuation ... 
sysadm: initializing migration of kzone1 to ldom1-08 ...
sysadm: evacuating 1 zone(s) ...
sysadm: migrating kzone1 to ldom1-08 ...
sysadm: evacuation completed successfully.
sysadm: kzone1: evacuated to ssh://ldom1-08
Example 51  Native Zone Skipped When Evacuating Zones

This example shows two kernel zones successfully live migrated in an evacuation and one solaris brand zone skipped, resulting in a "failed" evacuation as a whole. The kernel zones were successfully evacuated however.

root@global :~# sysadm evacuate -v 
sysadm : preparing 3 zone(s) for evacuation ... 
sysadm : initializing migration of kzone1 to global2 ... 
sysadm : initializing migration of kzone2 to global2 ... 
sysadm : evacuating 2 zone(s) ... 
sysadm : migrating kzone1 to global2 ... 
sysadm : migrating kzone2 to global2 ... 
sysadm : evacuation failed . 
sysadm : kzone1: evacuated to ssh://global2 
sysadm : kzone2: evacuated to ssh://global2 
sysadm : my-ngz : evacuation skipped: cannot evacuate solaris-brand zones