You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
== Advantages and disadvantages of cold and warm migrations
59
59
60
-
[id="warm-cold-migration-overview_{context}"]
61
-
=== Overview
62
-
63
-
include::snip_cold-warm-comparison-table.adoc[]
64
-
65
-
[id="warm-cold-migration-detailed_{context}"]
66
-
=== Detailed description
67
-
68
-
The table that follows offers a more detailed description of the advantages and disadvantages of each type of migration. It assumes that you have installed Red Hat Enterprise Linux (RHEL) 9 on the {ocp} platform on which you installed {project-short}.
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}:
69
61
70
62
[cols="1,1,1",options="header"]
71
63
.Detailed description of advantages and disadvantages
72
64
65
+
[cols="1,1,1",options="header"]
66
+
.Advantages and disadvantages of cold and warm migrations
73
67
|===
74
-
| |Cold migration |Warm migration
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
75
76
76
|*Fail fast*
77
-
|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
-
|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.
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
79
80
80
|*Tools*
81
-
|{project-short} only.
82
-
|{project-short} and CDI from {virt}.
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.
83
91
84
92
|*Parallelism*
85
-
|Disks must be transferred sequentially.
86
-
|Disks can be transferred in parallel using different pods.
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}.
87
104
|===
88
105
106
+
89
107
[NOTE]
90
108
====
91
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.
@@ -103,21 +121,3 @@ Based on the preceding information, we can draw the following conclusions about
103
121
* The shortest downtime of VMs can be achieved by using warm migration.
104
122
* The shortest duration for VMs with a large amount of data on a single disk can be achieved by using cold migration.
105
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.
= {project-short} cold migration and warm migration introduction
8
+
9
+
Cold migration is when a powered *_off_* virtual machine (VM) is migrated to a separate host. The VM is powered off, and there is no need for common shared storage.
10
+
11
+
Warm migration is when a powered *_on_* VM is migrated to a separate host. A source host state is cloned to the destination host.
12
+
13
+
.Warm migrations precopy stage
14
+
15
+
. Create an initial snapshot of running VM disks.
16
+
. Copy first snapshot to target: full-disk transfer, the largest amount of data copied. It takes more time to complete.
17
+
. Copy deltas: changed data, copying only data that has changed since the last snapshot was taken. It takes less time to complete.
18
+
.. Create a new snapshot.
19
+
.. Copy the delta between the previous snapshot and the new snapshot.
20
+
.. Schedule the next snapshot, configurable by default, one hour after the last snapshot finished.
21
+
. An arbitrary number of deltas can be copied.
22
+
23
+
24
+
.Warm migration cutover stage
25
+
26
+
. Scheduled time to finalize warm migration
27
+
. Shut down the source VM.
28
+
. Copy the final snapshot delta to the target.
29
+
. Continue in the same way as cold migration
30
+
.. Guest conversion
31
+
.. Starting target VM (optional)
32
+
33
+
// will delete this table once the review is complete
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).
52
+
a|Containerized Data Importer (CDI), a persistent storage management add-on, and `virt-v2v` (Red Hat Enterprise Linux 9)
53
+
54
+
|VM downtime
55
+
|The VMs are shut down, and the disks are transferred.
56
+
|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.
57
+
58
+
|Parallelism
59
+
|Disks are transferred sequentially for each VM. For remote migration, disks are transferred in parallel.
60
+
footnoteref:[footnote1,Remote migration: Target environment that does not have MTV installed. Migration to a remote environment using CDI.]
61
+
|Disks are transferred in parallel by different pods.
62
+
63
+
|Connection use
64
+
|Keeps the connection to the Source only during the disk transfer.
65
+
|Keeps the connection to the Source during the disk transfer, but the connection is released between snapshots.
* The observed speeds for the warm migration single disk transfer and disk conversion are approximately the same as for the cold migration.
10
+
11
+
* The benefit of warm migration is that the transfer of the snapshot is happening in the background while the VM is powered *_on_*.
12
+
13
+
* The default snapshot time is taken every 60 minutes. If VMs change substantially, more data needs to be transferred than in cold migration when the VM is powered *_off_*.
14
+
15
+
* The cutover time, meanng the shutdown of the VM and last snapshot transfer, is dependent on how much the VM has changed since the last snapshot.
Copy file name to clipboardExpand all lines: documentation/modules/snip_cold-warm-comparison-table.adoc
+25-6Lines changed: 25 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,36 @@ Both cold migration and warm migration have advantages and disadvantages, as des
6
6
[cols="1,1,1",options="header"]
7
7
.Advantages and disadvantages of cold and warm migrations
8
8
|===
9
-
| |Cold migration |Warm migration
9
+
|
10
+
|*Cold migration*
11
+
|*Warm migration*
10
12
11
13
|*Duration*
12
-
|Correlates to the amount of data on the disks
13
-
|Correlates to the amount of data on the disks and VM utilization
14
+
|Correlates to the amount of data on the disks. Each block is copied once.
15
+
|Correlates to the amount of data on the disks and VM utilization. Blocks may be copied multiple times.
16
+
17
+
|*Fail fast*
18
+
|Convert and then transfer.
19
+
|Transfer and then convert.
20
+
21
+
|*Tools*
22
+
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).
23
+
a|Containerized Data Importer (CDI), a persistent storage management add-on, and `virt-v2v` (Red Hat Enterprise Linux 9)
14
24
15
25
|*Data transferred*
16
26
|Approximate sum of all disks
17
27
|Approximate sum of all disks and VM utilization
18
28
19
29
|*VM downtime*
20
-
|High
21
-
|Low
22
-
|===
30
+
|High: The VMs are shut down, and the disks are transferred.
31
+
|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.
32
+
33
+
|*Parallelism*
34
+
|Disks are transferred sequentially for each VM. For remote migration, disks are transferred in parallel.
35
+
footnoteref:[footnote1,Remote migration: Target environment that does not have MTV installed. Migration to a remote environment using CDI.]
36
+
|Disks are transferred in parallel by different pods.
37
+
38
+
|*Connection use*
39
+
|Keeps the connection to the Source only during the disk transfer.
40
+
|Keeps the connection to the Source during the disk transfer, but the connection is released between snapshots.
0 commit comments