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: articles/aks/csi-disk-move-subscriptions.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: Move Azure Disk Persistent Volumes in Azure Kubernetes Service (AKS)
2
+
title: Move Azure Disk persistent volumes in Azure Kubernetes Service (AKS)
3
3
titleSuffix: Azure Kubernetes Service
4
-
description: Learn how to move a persistent volume between Azure Kubernetes Service clusters in the same subscription or a different subscription and in the same region.
4
+
description: Learn how to move a persistent volume between Azure Kubernetes Service clusters in the same subscription or a different subscription.
5
5
author: tamram
6
6
7
7
ms.author: tamram
@@ -15,21 +15,20 @@ This article describes how to safely move Azure Disk persistent volumes from one
15
15
16
16
The sequence of steps to complete this move are:
17
17
18
-
*Confirm the Azure Disk resource state on the source AKS cluster isn't in an **Attached** state to avoid data loss.
18
+
*To avoid data loss, confirm that the Azure Disk resource state on the source AKS cluster isn't in an **Attached** state.
19
19
* Move the Azure Disk resource to the target resource group in the same subscription or a different subscription.
20
20
* Validate that the Azure Disk resource move succeeded.
21
21
* Create the persistent volume (PV) and the persistent volume claim (PVC) and then mount the moved disk as a volume on a pod on the target cluster.
22
22
23
23
## Before you begin
24
24
25
-
* You need an Azure [storage account][azure-storage-account].
26
25
* Make sure you have Azure CLI version 2.0.59 or later installed and configured. To find the version, run `az --version`. If you need to install or upgrade, see [Install Azure CLI][install-azure-cli].
27
26
* Review details and requirements about moving resources between different regions in [Move resources to a new resource group or subscription][move-resources-new-subscription-resource-group]. Be sure to review the [checklist before moving resources][move-resources-checklist] in that article.
28
27
* You have an AKS cluster in the target subscription and the source cluster has persistent volumes with Azure Disks attached.
29
28
30
29
## Validate disk volume state
31
30
32
-
Preserving data is important while working with persistent volumes to avoid risk of data corruption, inconsistencies, or data loss. To prevent loss during the migration or move process, you must first verify the disk volume is unattached by performing the following steps.
31
+
It's important to avoid risk of data corruption, inconsistencies, or data loss while working with persistent volumes. To mitigate these risks during the migration or move process, you must first verify that the disk volume is unattached by performing the following steps.
33
32
34
33
1. Identify the node resource group hosting the Azure managed disks using the [`az aks show`][az-aks-show] command and add the `--query nodeResourceGroup` parameter.
35
34
@@ -43,7 +42,7 @@ Preserving data is important while working with persistent volumes to avoid risk
43
42
MC_myResourceGroup_myAKSCluster_eastus
44
43
```
45
44
46
-
1. List the managed disks using the [`az disk list`][az-disk-list] command referencing the resource group returned in the previous step.
45
+
1. List the managed disks using the [`az disk list`][az-disk-list] command. Reference the resource group returned in the previous step.
47
46
48
47
```azurecli-interactive
49
48
az disk list --resource-group MC_myResourceGroup_myAKSCluster_eastus
@@ -72,7 +71,7 @@ Preserving data is important while working with persistent volumes to avoid risk
72
71
73
72
1. If `diskState` shows `Attached`, first verify if any workloads are still accessing the volume and stop them first. After a period of time, disk state returns state `Unattached` and can then be moved.
74
73
75
-
## Move persistent volume
74
+
## Move the persistent volume
76
75
77
76
To move the persistent volume or volumes to another AKS cluster, follow the steps described in [Move Azure resources to a new resource group or subscription][move-resources-new-subscription-resource-group]. You can use the [Azure portal][move-resources-using-porta], [Azure PowerShell][move-resources-using-azure-powershell], or use the [Azure CLI][move-resources-using-azure-cli] to perform the migration.
78
77
@@ -85,17 +84,17 @@ During this process, you reference:
85
84
> [!NOTE]
86
85
> Because of the dependencies between resource providers, this operation can take up to four hours to complete.
87
86
88
-
## Verify that the disk volume has moved
87
+
## Verify that the disk volume has been moved
89
88
90
-
After moving the disk volume to the target cluster resource group, validate the resource in the resource group list using the [`az disk list`][az-disk-list] command referencing the destination resource group the resources were moved to. In this example, the disks were moved to a resource group named *MC_myResourceGroup_myAKSCluster_westus*.
89
+
After moving the disk volume to the target cluster resource group, validate the resource in the resource group list using the [`az disk list`][az-disk-list] command. Reference the destination resource group where the resources were moved. In this example, the disks were moved to a resource group named *MC_myResourceGroup_myAKSCluster_westus*.
91
90
92
91
```azurecli-interactive
93
92
az disk list --resource-group MC_myResourceGroup_myAKSCluster_westus
94
93
```
95
94
96
95
## Mount the moved disk as a volume
97
96
98
-
To mount the moved disk volume, you'll create a static persistent volume with the resource ID copied in the previous steps, the persistent volume claim, and in this example a simple pod.
97
+
To mount the moved disk volume, create a static persistent volume with the resource ID copied in the previous steps, the persistent volume claim, and in this example, a simple pod.
99
98
100
99
1. Create a *pv-azuredisk.yaml* file with a persistent volume. Update the *volumeHandle* field with the disk resource ID from the previous step.
0 commit comments