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
You may be able to expand your managed disks without deallocating your VM.
58
+
You can expand your managed disks without deallocating your VM. The host cache setting of your disk doesn't change whether or not you can expand a data disk without deallocating your VM.
59
59
60
60
This feature has the following limitations:
61
61
@@ -65,7 +65,7 @@ This feature has the following limitations:
65
65
66
66
Make sure that you have the latest [Azure CLI](/cli/azure/install-az-cli2) installed and are signed in to an Azure account by using [az login](/cli/azure/reference-index#az-login).
67
67
68
-
This article requires an existing VM in Azure with at least one data disk attached and prepared. If you do not already have a VM that you can use, see [Create and prepare a VM with data disks](tutorial-manage-disks.md#create-and-attach-disks).
68
+
This article requires an existing VM in Azure with at least one data disk attached and prepared. If you don't already have a VM that you can use, see [Create and prepare a VM with data disks](tutorial-manage-disks.md#create-and-attach-disks).
69
69
70
70
In the following samples, replace example parameter names such as *myResourceGroup* and *myVM* with your own values.
71
71
@@ -79,7 +79,7 @@ In the following samples, replace example parameter names such as *myResourceGro
79
79
```
80
80
81
81
> [!NOTE]
82
-
> The VM must be deallocated to expand the virtual hard disk. Stopping the VM with `az vm stop` does not release the compute resources. To release compute resources, use `az vm deallocate`.
82
+
> The VM must be deallocated to expand the virtual hard disk. Stopping the VM with `az vm stop` doesn't release the compute resources. To release compute resources, use `az vm deallocate`.
83
83
84
84
1. View a list of managed disks in a resource group with [az disk list](/cli/azure/disk#az-disk-list). The following example displays a list of managed disks in the resource group named *myResourceGroup*:
85
85
@@ -114,7 +114,7 @@ In the following samples, replace example parameter names such as *myResourceGro
114
114
115
115
### Detecting a changed disk size
116
116
117
-
If a data disk was expanded without downtime using the procedure mentioned previously, the disk size will not be changed until the device is rescanned, which normally only happens during the boot process. This rescan can be called on-demand with the following procedure. In this example we have detected using the methods in this document that the data disk is currently `/dev/sda` and has been resized from 256GB to 512GB.
117
+
If a data disk was expanded without downtime using the procedure mentioned previously, the disk size won't be changed until the device is rescanned, which normally only happens during the boot process. This rescan can be called on-demand with the following procedure. In this example we have detected using the methods in this document that the data disk is currently `/dev/sda` and has been resized from 256GB to 512GB.
118
118
119
119
1. Identify the currently recognized size on the first line of output from `fdisk -l /dev/sda`
120
120
@@ -167,7 +167,7 @@ The following instructions apply to endorsed Linux distributions.
167
167
168
168
# [Ubuntu](#tab/ubuntu)
169
169
170
-
On Ubuntu 16.x and newer, the root partition of the OS disk and filesystems will be automatically expanded to utilize all free contiguous space on the root disk by cloud-init, provided there is a small bit of free space for the resize operation. For this circumstance the sequence is simply
170
+
On Ubuntu 16.x and newer, the root partition of the OS disk and filesystems will be automatically expanded to utilize all free contiguous space on the root disk by cloud-init, provided there's a small bit of free space for the resize operation. For this circumstance the sequence is simply
171
171
172
172
1. Increase the size of the OS disk as detailed previously
173
173
1. Restart the VM, and then access the VM using the **root** user account.
@@ -202,7 +202,7 @@ To increase the OS disk size in SUSE 12 SP4, SUSE SLES 12 for SAP, SUSE SLES 15,
202
202
sudo -i
203
203
```
204
204
205
-
1. Use the following command to install the **growpart** package, which will be used to resize the partition, if it is not already present:
205
+
1. Use the following command to install the **growpart** package, which will be used to resize the partition, if it isn't already present:
206
206
207
207
```
208
208
zypper install growpart
@@ -344,7 +344,7 @@ To increase the OS disk size in SUSE 12 SP4, SUSE SLES 12 for SAP, SUSE SLES 15,
1. Check whether there is free space in the LVM volume group (VG) containing the root partition. If there is free space, skip to step 12.
347
+
1. Check whether there's free space in the LVM volume group (VG) containing the root partition. If there's free space, skip to step 12.
348
348
349
349
```bash
350
350
vgdisplay rootvg
@@ -370,7 +370,7 @@ To increase the OS disk size in SUSE 12 SP4, SUSE SLES 12 for SAP, SUSE SLES 15,
370
370
VG UUID lPUfnV-3aYT-zDJJ-JaPX-L2d7-n8sL-A9AgJb
371
371
```
372
372
373
-
In this example, the line **Free PE / Size** shows that there is 38.02 GB free in the volume group, as the disk has already been resized.
373
+
In this example, the line **Free PE / Size** shows that there's 38.02 GB free in the volume group, as the disk has already been resized.
374
374
375
375
1. Install the **cloud-utils-growpart** package to provide the **growpart** command, which is required to increase the size of the OS disk and the gdisk handler for GPT disk layouts This package is preinstalled on most marketplace images
376
376
@@ -435,7 +435,7 @@ To increase the OS disk size in SUSE 12 SP4, SUSE SLES 12 for SAP, SUSE SLES 15,
1. Expand the LV by the required amount, which does not need to be all the free space in the volume group. In the following example, **/dev/mapper/rootvg-rootlv** is resized from 2 GB to 12 GB (an increase of 10 GB) through the following command. This command will also resize the file system on the LV.
438
+
1. Expand the LV by the required amount, which doesn't need to be all the free space in the volume group. In the following example, **/dev/mapper/rootvg-rootlv** is resized from 2 GB to 12 GB (an increase of 10 GB) through the following command. This command will also resize the file system on the LV.
@@ -26,7 +26,7 @@ When you create a new virtual machine (VM) in a resource group by deploying an i
26
26
27
27
## Expand without downtime
28
28
29
-
You can now expand your data disks without deallocating your VM.
29
+
You can expand data disks without deallocating your VM. The host cache setting of your disk doesn't change whether or not you can expand a data disk without deallocating your VM.
0 commit comments