Using Unified Archives for System Recovery and Cloning in Oracle Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Create a Recovery Archive

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Create the recovery archive.
    # archiveadm create -r archive-name
  3. (Optional) Verify the creation of the recovery archive.
    # archiveadm info -v archive-name
      ...
           Recovery Archive:  Yes
      ...
    
Example 2-4  Creating a Recovery Archive of the Global Zone

The following example shows how to create a recovery archive comprising only the global zone.

# archiveadm create -r -z global /var/tmp/globalrecovery.uar
Initializing Unified Archive creation resources...
Unified Archive initialized: /var/tmp/globalrecovery.uar
Logging to: /system/volatile/archive_log.11234
Executing dataset discovery...
Dataset discovery complete
Creating boot media or global zone(s)...
Media creation complete
Preparing archive system image...
Beginning archive stream creation...
Archive stream creation complete
Beginning final archive assembly...
Archive creation complete
# archiveadm info globalrecovery.uar
Archive Information
          Creation Time:  2014-03-03T18:13:21Z
            Source Host:  example
           Architecture:  i386
       Operating System:  Oracle Solaris 11.2 X86
       Recovery Archive:  Yes
           ...

Deployable Systems: 
          'global'
           ...
Example 2-5  Creating A Recovery Archive of a Zone

The following example shows how to create a recovery archive comprising a zone named newzone. Note that only one zone is allowed for creation of a recovery archive.

# archiveadm create -r -z example-net /var/tmp/example-net-recovery.uar
Unified Archive initialized: /var/tmp/example-net-recovery.uar
 .
 .
Archive creation complete
# archiveadm info example-net-recovery.uar
Archive Information
          Creation Time:  2014-03-03T19:10:53Z
            Source Host:  example
           Architecture:  i386
       Operating System:  Oracle Solaris 11.2 X86
       Recovery Archive:  Yes
           ...

Deployable Systems: 
     'example-net'
           ...

The output from this command is the same as the text shown in Example 2–4 except for the name of the created archive and the log file name. Use the archiveadm info command to verify that the archive has the correct information.

Example 2-6  Creating a Recovery Archive That Excludes a ZFS Dataset

As with clone archives, you can exclude datasets from an recovery archive. The following example shows how to create a recovery archive excluding the ZFS dataset rpool/scratch. The exclusion of a dataset is recursive, so all descendant datasets are also excluded.

# archiveadm create -r -D rpool/scratch /var/tmp/noscratch-recovery.uar
Unified Archive initialized: /var/tmp/noscratch-recovery.uar
 .
 .
Archive creation complete
# archiveadm info noscratch-recovery.uar
Archive Information
          Creation Time:  2014-03-03T19:46:10Z
            Source Host:  example
           Architecture:  i386
       Operating System:  Oracle Solaris 11.2 X86
       Recovery Archive:  Yes
           ...

Deployable Systems: 
          'global'
           ...

The output from this command is the same as the text shown in Example 2–4 except for the name of the created archive and the log file name. Use the archiveadm info command to verify that the archive has the correct information.