Skip to content

Commit dcc4484

Browse files
authored
Merge pull request #36305 from stoobie/1949274
BZ#1949274: New info on migrating compute and control nodes to a different RHV storage domain.
2 parents 8650b27 + a4c4784 commit dcc4484

File tree

3 files changed

+110
-2
lines changed

3 files changed

+110
-2
lines changed

machine_management/modifying-machineset.adoc

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,27 @@ include::modules/common-attributes.adoc[]
55

66
toc::[]
77

8+
You can modify a machine set, such as adding labels, changing the instance type, or changing block storage.
89

9-
You can make changes to a machine set, such as adding labels, changing the instance type, or changing block storage.
10+
On {rh-virtualization-first}, you can also change a machine set to provision new nodes on a different storage domain.
1011

1112
[NOTE]
1213
====
1314
If you need to scale a machine set without making other changes, see xref:../machine_management/manually-scaling-machineset.adoc#manually-scaling-machineset[Manually scaling a machine set].
1415
====
1516

16-
1717
include::modules/machineset-modifying.adoc[leveloffset=+1]
18+
19+
[id="migrating-nodes-to-a-different-storage-domain-rhv_{context}"]
20+
== Migrating nodes to a different storage domain on {rh-virtualization}
21+
22+
You can migrate the {product-title} control plane and compute nodes to a different storage domain in a {rh-virtualization-first} cluster.
23+
24+
include::modules/machineset-migrating-compute-nodes-to-diff-sd-rhv.adoc[leveloffset=+2]
25+
26+
.Additional resources
27+
* xref:../machine_management/creating_machinesets/creating-machineset-rhv.adoc#machineset-creating_creating-machineset-rhv[Creating a machine set].
28+
* xref:../machine_management/manually-scaling-machineset.adoc#machineset-manually-scaling_manually-scaling-machineset[Scaling a machine set manually]
29+
* xref:../nodes/scheduling/nodes-scheduler-about.adoc#nodes-scheduler-about[Controlling pod placement using the scheduler]
30+
31+
include::modules/machineset-migrating-control-plane-nodes-to-diff-sd-rhv.adoc[leveloffset=+2]
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * machine_management/modifying-machineset.adoc
4+
[id="machineset-migrating-compute-nodes-to-diff-sd-rhv_{context}"]
5+
= Migrating compute nodes to a different storage domain in {rh-virtualization}
6+
7+
.Prerequisites
8+
9+
* You are logged in to the {rh-virtualization-engine-name}.
10+
* You have the name of the target storage domain.
11+
12+
.Procedure
13+
14+
. Identify the virtual machine template:
15+
+
16+
[source,terminal]
17+
----
18+
$ oc get -o jsonpath='{.items[0].spec.template.spec.providerSpec.value.template_name}{"\n"}' machineset -A
19+
----
20+
21+
. Create a new virtual machine in the {rh-virtualization-engine-name}, based on the template you identified. Leave all other settings unchanged. For details, see link:https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html-single/virtual_machine_management_guide/index#Creating_a_Virtual_Machine_Based_on_a_Template[Creating a Virtual Machine Based on a Template] in the Red Hat Virtualization _Virtual Machine Management Guide_.
22+
+
23+
[TIP]
24+
====
25+
You do not need to start the new virtual machine.
26+
====
27+
28+
. Create a new template from the new virtual machine. Specify the target storage domain under *Target*. For details, see link:https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html-single/virtual_machine_management_guide/index#Creating_a_template_from_an_existing_virtual_machine[Creating a Template] in the Red Hat Virtualization _Virtual Machine Management Guide_.
29+
30+
. Add a new machine set to the {product-title} cluster with the new template.
31+
.. Get the details of the current machine set:
32+
+
33+
[source,terminal]
34+
----
35+
$ oc get machineset -o yaml
36+
----
37+
.. Use these details to create a machine set. For more information see _Creating a machine set_.
38+
+
39+
Enter the new virtual machine template name in the *template_name* field. Use the same template name you used in the *New template* dialog in the {rh-virtualization-engine-name}.
40+
.. Note the names of both the old and new machine sets. You need to refer to them in subsequent steps.
41+
42+
. Migrate the workloads.
43+
.. Scale up the new machine set. For details on manually scaling machine sets, see _Scaling a machine set manually_.
44+
+
45+
{product-title} moves the pods to an available worker when the old machine is removed.
46+
.. Scale down the old machine set.
47+
48+
. Remove the old machine set:
49+
+
50+
[source,terminal]
51+
----
52+
$ oc delete machineset <machineset-name>
53+
----
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * machine_management/modifying-machineset.adoc
4+
[id="machineset-migrating-control-plane-nodes-to-diff-sd-rhv_{context}"]
5+
= Migrating control plane nodes to a different storage domain on {rh-virtualization}
6+
7+
{product-title} does not manage control plane nodes, so they are easier to migrate than compute nodes. You can migrate them like any other virtual machine on {rh-virtualization-first}.
8+
9+
Perform this procedure for each node separately.
10+
11+
.Prerequisites
12+
13+
* You are logged in to the {rh-virtualization-engine-name}.
14+
* You have identified the control plane nodes. They are labeled *master* in the {rh-virtualization-engine-name}.
15+
16+
.Procedure
17+
18+
. Select the virtual machine labeled *master*.
19+
20+
. Shut down the virtual machine.
21+
22+
. Click the *Disks* tab.
23+
24+
. Click the virtual machine's disk.
25+
26+
. Click *More Actions*{kebab} and select *Move*.
27+
28+
. Select the target storage domain and wait for the migration process to complete.
29+
30+
. Start the virtual machine.
31+
32+
. Verify that the {product-title} cluster is stable:
33+
+
34+
[source,terminal]
35+
----
36+
$ oc get nodes
37+
----
38+
+
39+
The output should display the node with the status `Ready`.
40+
41+
. Repeat this procedure for each control plane node.

0 commit comments

Comments
 (0)