Migrating a single-instance VM with HCX using cold migration

  1. Shutdown the Oracle database
  2. Click Migrate Virtual Machine
  3. Cold Migration appears as an option
  4. Select the appropriate destination folder
  5. Select the appropriate destination container
  6. Select the appropriate destination storage
  7. Select BCA-L2VPN as the destination port group
  8. Click Next
  9. Click Finish
  10. The migration has started
  11. The migration is complete

Migrating a single-instance VM with HCX using bulk migration

  1. Click Migration within the HCX dashboard
  2. Clicking Schedule Failover enables choosing a scheduled failover window
  3. Repeat the steps as indicated above for OL76-ORA19c-Test
  4. Click Finish
  5. Migration of both VMs has begun
  6. Migration of both VMs is complete

Migrating a single-instance VM with HCX using vMotion

  1. Viewing the HCX screen, click Migration, then Migrate Virtual Machines
  2. Click Finish to start migration
  3. The migration has started
  4. The migration is complete

Migrating a single-instance VM using HCX Replication Assisted vMotion (RAV)

  1. Details for OL76-ORA19c-Prod-RAV
  2. Open the menu as shown below and select HCX
  3. Viewing the HCX screen, click Migration, then click Migrate Virtual Machines
  4. Pick the appropriate connection
  5. Click on the checkbox next to the VM ‘OL76-ORA19c-Prod-RAV’ 
  6. Click switchover option
  7. Click extended options
  8. Choose destination network
  9. Start migration
  10. The migration has started
  11. The VM is being migrated online without any downtime
  12. The migration completed successfully
  13. OL760ORA19c-Prod-RAV has been successfully migrated

Summary of HCX migration methods for single-instance VMs

 

Each Site B single-instance VM is similar in layout, featuring 8 vCPUs, 64GB RAM, and a similar disk layout (as shown in Figure 4 below):

Hard Disk 1 – Operating System

Hard Disk 2 – Oracle Binaries (Grid and RDBMS)

Hard Disk 3 – Database on ASM storage using ASMLIB

Each single-instance VM contains an Oracle 19c database with ASM for storage running on OEL 7.6.

grid@sb_ol76_ora19c:+ASM:/home/grid> asmcmd lsdg
State    Type    Rebal  Sector  Logical_Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
MOUNTED  EXTERN  N         512             512   4096  4194304     71676    60324                0           60324              0             N  DATA_DG/
grid@sb_ol76_ora19c:+ASM:/home/grid>

 

 

oracle@sb_ol76_ora19c:ora19c:/home/oracle> sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Wed May 15 14:56:00 2019
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle.  All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

 

SQL> select NAME,LOG_MODE from v$database;
NAME      LOG_MODE
--------- ------------
ORA19C    ARCHIVELOG
SQL>

 

 

The HCX migration method for each single-instance VM is as follows:

  • Cold migration – OL76-ORA19c-Cold
  • Bulk migration – OL76-ORA19c-Dev, OL76-ORA19c-Test
  • vMotion – OL76-ORA19c-Prod-vMotion
  • vMotion with vSphere Replication – OL76-ORA19c-Prod-RAV

 

Migrating a single-instance VM with HCX using cold migration

Cold migration uses VMware NFC protocol, which is automatically selected when the source VM is powered off.

Cold migration uses the same network path as HCX vMotion to transfer a powered-off VM. The VM’s IP and MAC addresses are preserved. A cold migration must satisfy vMotion requirements.

Further details regarding HCX cold migration can be found here.

 OL76-ORA19c-Cold is powered on and the VM’s details are shown in the figure below:

 

A previously indicated, cold migration is only visible when the source VM is powered off.

 

Follow the steps below to complete the migration:

Shutdown the Oracle database and power off OL76-ORA19c-Cold. Open the menu as shown below and select HCX.

Click Migrate Virtual Machine.

Cold Migration appears as an option.

Select the appropriate destination folder.

Select the appropriate destination container.

Select the appropriate destination storage.

Select BCA-L2VPN as the destination port group.

Click Next.

Click Finish.

The migration has started.

The migration is complete.

OL76-ORA19c-Cold is now available in VMware Cloud on AWS.

Power on OL76-ORA19c-Cold.

 

Migrating a single-instance VM with HCX using bulk migration

Bulk migration uses host-based replication to move a live VM to-and-from HCX-enabled Cloud sites or data centers.

To reduce downtime, the source VM remains online during the replication and is bootstrapped on the destination ESX host after replication is completed.

VMware HCX Manager renames the original powered-off VM to avoid a naming conflict with the migrated VM, appending a binary timestamp to the original VM name. If “Retain MAC” has not been enabled, the migrated VM obtains a new MAC address.

Further details regarding HCX bulk migration can be found here.

OL76-ORA19c-Dev and OL76-ORA19c-Test are types of VMs that require bulk migration.

 

The details for OL76-ORA19c-Dev follow below:

The details for OL76-ORA19c-Test follow below:

Click Migration within the HCX dashboard.

Choose Bulk Migration for OL76-ORA19c-Dev, then make the following selections:

Clicking Schedule Failover enables choosing a scheduled failover window:

Repeat the steps as indicated above for OL76-ORA19c-Test.

Click Finish.

Migration of both VMs has begun.

Migration of both VMs is complete.

OL76-ORA19c-Dev and OL76-ORA19c-Test remain powered on.

Bulk migration uses host-based replication. The following restrictions exist (among others) for vSphere Replication 8.2:

  • No support for VSS quiescing on virtual volumes.
  • Inability to replicate VMs that share vmdk files.
  • vSphere Replication tracks larger blocks on disks over 2TB. Replication performance on a disk larger than 2TB may be different from that of a disk less than 2TB for the same workload. The disparity depends on how much of the disk goes over the network for a particular set of changed blocks.

Further details regarding vSphere Replication 8.2 restrictions can be found here.

 

Migrating a single-instance VM with HCX using vMotion

HCX vMotion can transfer a live VM from an HCX-enabled VMware vCenter® Server to an HCX-enabled remote site (or from the HCX-enabled target site to the local site).

The vMotion transfer captures the VM’s active memory, execution state, IP address, and MAC address. Migration duration depends on the level of connectivity, including bandwidth available and latency between the two sites.

Further details regarding HCX using vMotion can be found here.

 

Details for OL76-ORA19c-Prod-vMotion are as follows:

Viewing the HCX screen, click Migration, then Migrate Virtual Machines. Using the selections outlined in migrations described above, repeat those selections for destination folder, container and storage.



Click Finish to start migration.

The migration has started.



The migration is complete.

OL76-ORA19c-Prod-vMotion has been migrated live with no downtime.



 

Migrating a single-instance VM using HCX vMotion with vSphere Replication  

HCX Replication-Assisted vMotion (RAV) is a new migration method that combines the benefits of both HCX Bulk Migration (i.e., parallel operations, resiliency, and scheduling) and HCX vMotion (i.e., zero downtime VM-state migration).

Migration begins with the replication of the VM's disks. As is true for bulk migration, VMs can be moved in parallel with the switchover configurable on a schedule.

During the RAV switchover phase, vMotion is engaged for migrating the disk delta data and VM state.

More details about HCX RAV can be found here.

 

Details for OL76-ORA19c-Prod-RAV are as follows:

 

Open the menu as shown below and select HCX.


Viewing the HCX screen, click Migration, then click Migrate Virtual Machines.

Pick the appropriate connection , in this case , the one specific for Site B.

Click on the checkbox next to the VM ‘OL76-ORA19c-Prod-RAV’ .

Using the selections outlined in migrations described above, repeat those selections for destination folder, container and storage. Pick Replication-assisted vMotion in the Migration Profile drop down.



Click Switchover option and choose optional Switchover Schedule if needed.



Click Extended Options , click Edit Extended Options and choose , if needed



Click on VM ‘OL76-ORA19c-PROD-RAV’ drop down arrow and choose Destination Network




Click Finish to start migration.



The migration has started.





The VM is being migrated online without any downtime. A ping test was started to ping the VM’s gateway to check any loss of network connectivity. No network issues were reported.



The migration completed successfully.

OL760ORA19c-Prod-RAV has been successfully migrated to VMware Cloud on AWS with no downtime.



 

Replication-Assisted vMotion (RAV) uses host-based replication. The following restrictions exist (among others) for vSphere Replication 8.2:

  • No support for VSS quiescing on virtual volumes.
  • Inability to replicate VMs that share vmdk files.
  • vSphere Replication tracks larger blocks on disks over 2TB. Replication performance on a disk larger than 2TB may be different from that of a disk less than 2TB for the same workload. The disparity depends on how much of the disk goes over the network for a particular set of changed blocks.

Further details regarding vSphere Replication 8.2 restrictions can be found here.

 

Summary of HCX migration methods for single-instance VMs

   Migration Methods    Single Instance
HCX cold migration OL76-ORA19c-Cold successfully migrated offline to VMware Cloud on AWS
HCX bulk migration OL76-ORA19c-Dev and OL76-ORA19c-Test migrated using host-based replication (with very short cutover downtime) to VMware Cloud on AWS
HCX vMotion OL76-ORA19c-Prod-vMotion migrated online to VMware Cloud on AWS
HCX vMotion with vSphere Replication OL76-ORA19c-Prod-RAV migrated live using host-based replication for initial sync and Cloud Motion (vMotion) for final cutover to VMware Cloud on AWS

 

 

 

 

 

check-circle-line exclamation-circle-line close-line
Scroll to top icon