|
| 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 | +---- |
0 commit comments