Go to main content

Lift and Shift Guide - Moving Oracle Solaris 10 Guest Domains to SPARC Servers Running Oracle Solaris 11

Exit Print View

Updated: February 2020
 
 

Create the Archive of the Source Guest Domain

Once you have prepared the source system, target system, and shared storage (see Preparing the Source, Target, and Shared Storage), you can create the source system archive.


Note -  If you plan to use the alternate method to only include a subset of virtual disks in the archive, do not follow this procedure. Instead, perform Create the Source Archive (Alternate Method).

This procedure creates an archive file on the shared storage. The archive file contains compressed versions of all of the source guest domain's virtual disks and configuration files.

image:A diagram showing how the ovmtcreate command creates an archive file on the shared storage.
  1. Ensure that the latest version of patch 151934 is installed on the source system.

    The latest patch is required so that the source system has the latest versions of OVMT utilities (see Prepare the Source System).

    root@SourceControlDomain# showrev -p | grep 151934
    Patch: 151934-06 Obsoletes: Requires: Incompatibles: Packages: SUNWldmib, SUNWldm
  2. On the source system, login as the Oracle user and shutdown the Oracle environment including the database, any applications, third party products, and so on.

    This example is of an Oracle restart environment, so the crsctl command is used.

    Note – It is a good practice to perform this step to avoid any application related errors on the target after the deployment. After the deployment, crsctl can be used to restart and enable the high availability components.

    $ crsctl stop has
    $ crsctl disable has
    

  3. Stop the source guest domain.

    This step is important because the ovmtcreate utility requires the Oracle Solaris 10 domain to be in a bound state.

    root@SourceControlDomain# ldm stop solaris10

  4. Create the archive of the source guest domain.

    Use the ovmtcreate command that was obtained from patch 151934 (see Prepare the Source System).

    The ovmtcreate command examines the topology of a logical domain to create an archive, which is in the form of an OVF archive (.ova file).

    Run this command as superuser on the source control domain.

    Not all ovmtcreate options are listed here. For more information about ovmtcreate, refer to the ovmtcreate (1M) man page.

    Syntax

    /opt/SUNWldm/lib/contrib/ovmtcreate –d GuestDomain -w Working_Directory –o Archive_File_on_Shared_Storage –s “Description

    Where:

    Note – For Oracle Solaris 10, the full path to the command is /opt/SUNWldm/lib/contrib/ovmtcreate.

    root@SourceControlDomain# ovmtcreate -d solaris10  -w /WorkingDirectory   -o /ovas/solaris10.ova  -s "source S10 domain"
    
    Oracle VM for SPARC Template Creation Utility
    ovmtcreate     Version:  on10-patch20171108123131
    
    STAGE 1 - EXAMINING SYSTEM AND ENVIRONMENT
    ------------------------------------------
    Performing platform & prerequisite checks
    Checking user permissions
    Checking for required packages
    Checking for required services
    Checking directory permissions
    
    STAGE 2 - ANALYZING DOMAIN
    ---------------------------
    Retrieving and processing attributes
    Checking domain state
    Getting domain resource settings
    Discovering network topology
    Discovering disk topology
    
    STAGE 3 - ARCHIVE CREATION
    ---------------------------
    Checking destination and current directory capacity
    Processing disk images 1 of 6
    Processing disk images 2 of 6
    Processing disk images 3 of 6
    Processing disk images 4 of 6
    Processing disk images 5 of 6
    Processing disk images 6 of 6
    Creating XML configuration
    Calculating manifest checksums
    Creating archive file
    Checking archive
    
    PROCESS COMPLETED
    ------------------
    Started: Tue Feb 13 15:34:10 PST 2018
    Completed: Tue Feb 13 22:15:06 PST 2018
    Elapsed time: 6:40:56
    
  5. Verify the creation of the source archive.
    root@SourceControlDomain# Shared_Location#  ls -rtlh *.ova
    -rw-r--r--   1 root         97G Feb 13 22:15 solaris10.ova
    

  6. (If needed) Reconfigure the source system's CPU and memory resources to their original values.

    Perform this step if you changed the CPU and memory resources in Prepare the Source System.