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
Copy file name to clipboardExpand all lines: modules/migration-creating-migration-plan-cam.adoc
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,18 @@ You can create a migration plan in the {mtc-full} ({mtc-short}) web console.
24
24
+
25
25
The migration plan name must not exceed 253 lower-case alphanumeric characters (`a-z, 0-9`) and must not contain spaces or underscores (`_`).
26
26
27
-
. Select a *Source cluster*, a *Target cluster*, and a *Repository*, and click *Next*.
28
-
. On the *Namespaces* page, select the projects to be migrated and click *Next*.
29
-
. On the *Persistent volumes* page, click a *Migration type* for each PV:
27
+
. Select a *Source cluster*, a *Target cluster*, and a *Repository*.
28
+
. Click *Next*.
29
+
. Select the projects for migration.
30
+
. Optional: Click the edit icon beside a project to change the target namespace.
31
+
. Click *Next*.
32
+
. Select a *Migration type* for each PV:
30
33
31
34
* The *Copy* option copies the data from the PV of a source cluster to the replication repository and then restores the data on a newly created PV, with similar characteristics, in the target cluster.
32
35
* The *Move* option unmounts a remote volume, for example, NFS, from the source cluster, creates a PV resource on the target cluster pointing to the remote volume, and then mounts the remote volume on the target cluster. Applications running on the target cluster use the same remote volume that the source cluster was using.
33
36
34
37
. Click *Next*.
35
-
. On the *Copy options* page, select a *Copy method* for each PV:
38
+
. Select a *Copy method* for each PV:
36
39
37
40
* *Snapshot copy* backs up and restores data using the cloud provider's snapshot functionality. It is significantly faster than *Filesystem copy*.
38
41
* *Filesystem copy* backs up the files on the source cluster and restores them on the target cluster.
@@ -51,7 +54,7 @@ If you selected *Filesystem copy*, you can change the target storage class.
51
54
The direct migration options copy images and files directly from the source cluster to the target cluster. This option is much faster than copying images and files from the source cluster to the replication repository and then from the replication repository to the target cluster.
52
55
53
56
. Click *Next*.
54
-
. Optional: On the *Hooks* page, click *Add Hook* to add a hook to the migration plan.
57
+
. Optional: Click *Add Hook* to add a hook to the migration plan.
55
58
+
56
59
A hook runs custom code. You can add up to four hooks to a single migration plan. Each hook runs during a different migration step.
<2> Direct volume migration is enabled if `false`.
252
254
<3> Specify the name of the `MigStorage` CR instance.
253
-
<4> Specify one or more namespaces to be migrated.
254
-
<5> Specify the name of the source cluster `MigCluster` instance.
255
+
<4> Specify one or more source namespaces. If you specify only the source namespace, the destination namespace is the same.
256
+
<5> Specify a destination namespace if it is different from the source namespace.
257
+
<6> Specify the name of the source cluster `MigCluster` instance.
258
+
+
259
+
[IMPORTANT]
260
+
====
261
+
You must ensure that namespaces are not duplicated on the source or the destination clusters because the UID and GID ranges are copied during migration. The following examples will cause a validation error:
Copy file name to clipboardExpand all lines: modules/migration-mtc-cr-manifests.adoc
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -268,6 +268,24 @@ spec:
268
268
269
269
The `MigPlan` CR defines the parameters of a migration plan. It contains a group of virtual machines that are being migrated with the same parameters.
270
270
271
+
[IMPORTANT]
272
+
====
273
+
You must ensure that namespaces are not duplicated on the source or the destination clusters because the UID and GID ranges are copied during migration. The following examples will cause a validation error:
<1> The migration has completed if `true`. You cannot create another `MigMigration` CR for this `MigPlan` CR.
305
325
<2> Specify the name of the source cluster `MigCluster` CR.
@@ -313,8 +333,9 @@ spec:
313
333
<10> Direct image migration is disabled if `true`. Images are copied from the source cluster to the replication repository and from the replication repository to the destination cluster.
314
334
<11> Direct volume migration is disabled if `true`. PVs are copied from the source cluster to the replication repository and from the replication repository to the destination cluster.
315
335
<12> Specify the name of `MigStorage` CR.
316
-
<13> Specify one or more namespaces.
317
-
<14> The `MigPlan` CR is validated if `true`.
336
+
<13> Specify one or more source namespaces. If you specify only the source namespace, the destination namespace is the same.
337
+
<14> Specify the destination namespace if it is different from the source namespace.
0 commit comments