|
6 | 6 | [id="about-cold-warm-migration_{context}"] |
7 | 7 | = About cold and warm migration |
8 | 8 |
|
9 | | -{project-short} supports cold migration from: |
| 9 | +[role="_abstract"] |
| 10 | +{project-first} supports cold and warm migration as follows: |
10 | 11 |
|
11 | | -* VMware vSphere |
| 12 | +{project-short} supports cold migration from these source providers: |
| 13 | + |
| 14 | +* {vmw} vSphere |
12 | 15 | * {rhv-full} ({rhv-short}) |
13 | 16 | * {osp} |
| 17 | +* Open Virtual Appliances (OVAs) that were created by {vmw} vSphere |
14 | 18 | * Remote {virt} clusters |
15 | 19 |
|
16 | | -{project-short} supports warm migration from VMware vSphere and from {rhv-short}. |
17 | | - |
18 | | -[id="cold-migration_{context}"] |
19 | | -== Cold migration |
20 | | - |
21 | | -Cold migration is the default migration type. The source virtual machines are shut down while the data is copied. |
22 | | - |
23 | | -[NOTE] |
24 | | -==== |
25 | | -include::snip_qemu-guest-agent.adoc[] |
26 | | -==== |
27 | | - |
28 | | -[id="warm-migration_{context}"] |
29 | | -== Warm migration |
30 | | - |
31 | | -Most of the data is copied during the _precopy_ stage while the source virtual machines (VMs) are running. |
32 | | - |
33 | | -Then the VMs are shut down and the remaining data is copied during the _cutover_ stage. |
34 | | - |
35 | | -.Precopy stage |
36 | | - |
37 | | -The VMs are not shut down during the precopy stage. |
38 | | - |
39 | | -The VM disks are copied incrementally by using link:https://kb.vmware.com/s/article/1020128[changed block tracking (CBT)] snapshots. The snapshots are created at one-hour intervals by default. You can change the snapshot interval by updating the `forklift-controller` deployment. |
40 | | - |
41 | | -[IMPORTANT] |
42 | | -==== |
43 | | -You must enable CBT for each source VM and each VM disk. |
44 | | -
|
45 | | -A VM can support up to 28 CBT snapshots. If the source VM has too many CBT snapshots and the `Migration Controller` service is not able to create a new snapshot, warm migration might fail. The `Migration Controller` service deletes each snapshot when the snapshot is no longer required. |
46 | | -==== |
47 | | - |
48 | | -The precopy stage runs until the cutover stage is started manually or is scheduled to start. |
49 | | - |
50 | | -.Cutover stage |
51 | | - |
52 | | -The VMs are shut down during the cutover stage and the remaining data is migrated. Data stored in RAM is not migrated. |
53 | | - |
54 | | -You can start the cutover stage manually by using the {project-short} console or you can schedule a cutover time in the `Migration` manifest. |
55 | | - |
56 | | - |
57 | | -[id="warm-migration-versus-cold-migration"_{context}] |
58 | | -== Advantages and disadvantages of cold and warm migrations |
59 | | - |
60 | | -The table that follows offers a more detailed description of the advantages and disadvantages of cold migration and warm migration. It assumes that you have installed Red Hat Enterprise Linux (RHEL) 9 on the {ocp} platform on which you installed {project-short}: |
61 | | - |
62 | | -[cols="1,1,1",options="header"] |
63 | | -.Detailed description of advantages and disadvantages |
64 | | - |
65 | | -[cols="1,1,1",options="header"] |
66 | | -.Advantages and disadvantages of cold and warm migrations |
67 | | -|=== |
68 | | -| |
69 | | -|*Cold migration* |
70 | | -|*Warm migration* |
71 | | - |
72 | | -|*Duration* |
73 | | -|Correlates to the amount of data on the disks. Each block is copied once. |
74 | | -|Correlates to the amount of data on the disks and VM utilization. Blocks may be copied multiple times. |
75 | | - |
76 | | -|*Fail fast* |
77 | | -|Convert and then transfer. Each VM is converted to be compatible with {ocp-short} and, if the conversion is successful, the VM is transferred. If a VM cannot be converted, the migration fails immediately. |
78 | | -|Transfer and then convert. For each VM, {project-short} creates a snapshot and transfers it to {ocp}. When you start the cutover, {project-short} creates the last snapshot, transfers it, and then converts the VM. |
79 | | - |
80 | | -|*Tools* |
81 | | -a|`virt-v2v` (Red Hat Enterprise Linux 9), used to convert virtual machines from a foreign hypervisor to run on Kernel-based Virtual Machines (KVMs). |
82 | | -a|Containerized Data Importer (CDI), a persistent storage management add-on, and `virt-v2v` (Red Hat Enterprise Linux 9) |
83 | | - |
84 | | -|*Data transferred* |
85 | | -|Approximate sum of all disks |
86 | | -|Approximate sum of all disks and VM utilization |
87 | | - |
88 | | -|*VM downtime* |
89 | | -|High: The VMs are shut down, and the disks are transferred. |
90 | | -|Low: Disks are transferred in the background. The VMs are shut down during the cutover stage, and the remaining data is migrated. Data stored in RAM is not migrated. |
91 | | - |
92 | | -|*Parallelism* |
93 | | -|Disks are transferred sequentially for each VM. For remote migration, disks are transferred in parallel. |
94 | | -footnoteref:[footnote1,Remote migration: Target environment that does not have MTV installed. Migration to a remote environment using CDI.] |
95 | | -|Disks are transferred in parallel by different pods. |
96 | | - |
97 | | -|*Connection use* |
98 | | -|Keeps the connection to the Source only during the disk transfer. |
99 | | -|Keeps the connection to the Source during the disk transfer, but the connection is released between snapshots. |
100 | | - |
101 | | -|*Tools* |
102 | | -|{project-short} only. |
103 | | -|{project-short} and CDI from {virt}. |
104 | | -|=== |
105 | | - |
106 | | - |
107 | | -[NOTE] |
108 | | -==== |
109 | | -The preceding table describes the situation for VMs that are running because the main benefit of warm migration is the reduced downtime, and there is no reason to initiate warm migration for VMs that are down. However, performing warm migration for VMs that are down is not the same as cold migration, even when {project-short} uses `virt-v2v` and RHEL 9. For VMs that are down, {project-short} transfers the disks using CDI, unlike in cold migration. |
110 | | -==== |
111 | | - |
112 | | -[NOTE] |
113 | | -==== |
114 | | -When importing from VMware, there are additional factors which impact the migration speed such as limits related to ESXi, vSphere. or VDDK. |
115 | | -==== |
116 | | - |
117 | | -=== Conclusions |
118 | | - |
119 | | -Based on the preceding information, we can draw the following conclusions about cold migration vs. warm migration: |
| 20 | +{project-short} supports warm migration from these source providers: |
| 21 | +* {vmw} vSphere |
| 22 | +* {rhv-full} |
120 | 23 |
|
121 | | -* The shortest downtime of VMs can be achieved by using warm migration. |
122 | | -* The shortest duration for VMs with a large amount of data on a single disk can be achieved by using cold migration. |
123 | | -* The shortest duration for VMs with a large amount of data that is spread evenly across multiple disks can be achieved by using warm migration. |
0 commit comments