Go to main content

Using Unified Archives for System Recovery and Cloning in Oracle® Solaris 11.4

Exit Print View

Updated: September 2020
 
 

How to Archive a System That Contains Zones on Shared Storage

This procedure shows how you can archive a system with zones on shared storage and deploy the archive to a kernel zone.

Before You Begin

You must be an administrator with the correct rights profiles to perform this task. See Using Rights Profiles with Unified Archives.

  1. Check which zones on shared storage exist on the system to be archived.

    The following example shows that the system has a global zone and zone1 on shared storage.

    $ zoneadm list -icv
    ID NAME             STATUS      PATH                         BRAND          IP      
     0 global           running     /                            solaris        shared    
     - zone1            installed   /system/zones/zone1          solaris        excl
    $ zonecfg -z zone1 info
       zonename: zone1
       brand: solaris
       anet:    
          linkname: net0
          configure-allowed-address: true
       rootzpool:
          storage: iscsi://hostname/luname.naa.600144f0dd9e090000005758ac0e0003
  2. Create a recovery archive for each system separately.
    1. Archive the system but exclude the zone on shared storage.

      For example:

      $ archiveadm create -r -Z zone1 global_recovery.uar
    2. Archive the zone on shared storage by itself.

      For example:

      $ archiveadm create -r -z zone1 zone1_recovery.uar
  3. On the target system where you deploy the archive, configure a kernel zone, install it, then boot it.
    $ zonecfg -z kz1 create -t SYSsolaris-kz
    $ zoneadm -z kz1 install -a global_recovery.uar
    $ zoneadm -z kz1 boot
  4. Log in to the kernel zone to configure the new zone on shared storage.

    Modify as well the storage devices for this zone. Then install the zone.

    $ zlogin -C kz1
    
    kz1$ zonecfg -z newzone1
    zonecfg:newzone1
    zonecfg:newzone1> create -a zone1_recovery.uar
    
    zonecfg:newzone1> select rootzpool
    zonecfg:newzone1:rootzpool> remove storage \
            iscsi://previous-hostname/luname.naa.600144f0dd9e090000005758ac0e0003
    zonecfg:newzone1:rootzpool> add storage \
            iscsi://new-hostname/luname.naa.600144F035FF8500000050C884E50001
    zonecfg:newzone1:rootzpool> end
    zonecfg:newzone1> commit
    zonecfg:newzone1> exit
    
  5. Install, then boot, the new zone on shared storage.
    kz1$ zoneadm -z newzone1 install -a zone1_recovery.uar
    kz1$ zlogin -C newzone1