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
**Applies to:**:heavy_check_mark: Linux VMs :heavy_check_mark: Flexible scale sets
16
16
17
-
This article describes how to expand managed disks for a Linux virtual machine (VM). You can [add data disks](add-disk.md) to provide for additional storage space, and you can also expand an existing data disk. The default virtual hard disk size for the operating system (OS) is typically 30 GB on a Linux VM in Azure. This article covers expanding either OS disks or data disks.
17
+
This article describes how to expand managed disks for a Linux virtual machine (VM). You can [add data disks](add-disk.md) to provide for additional storage space, and you can also expand an existing data disk. The default virtual hard disk size for the operating system (OS) is typically 30 GB on a Linux VM in Azure. This article covers expanding either OS disks or data disks. You can't expand the size of striped volumes.
18
18
19
19
An OS disk has a maximum capacity of 4,095 GiB. However, many operating systems are partitioned with [master boot record (MBR)](https://wikipedia.org/wiki/Master_boot_record) by default. MBR limits the usable size to 2 TiB. If you need more than 2 TiB, create and attach data disks and use them for data storage. If you need to store data on the OS disk and require the additional space, convert it to GUID Partition Table (GPT).
20
20
@@ -23,7 +23,7 @@ An OS disk has a maximum capacity of 4,095 GiB. However, many operating systems
23
23
24
24
## <aid="identifyDisk"></a>Identify Azure data disk object within the operating system ##
25
25
26
-
In the case of expanding a data disk when there are several data disks present on the VM, it may be difficult to relate the Azure LUNs to the Linux devices. If the OS disk needs expansion, it will be clearly labeled in the Azure portal as the OS disk.
26
+
In the case of expanding a data disk when there are several data disks present on the VM, it may be difficult to relate the Azure LUNs to the Linux devices. If the OS disk needs expansion, it is clearly labeled in the Azure portal as the OS disk.
27
27
28
28
Start by identifying the relationship between disk utilization, mount point, and device, with the ```df``` command.
29
29
@@ -39,9 +39,9 @@ Filesystem Type Size Used Avail Use% Mounted on
39
39
/dev/sde1 ext4 32G 49M 30G 1% /opt/db/log
40
40
```
41
41
42
-
Here we can see, for example, the `/opt/db/data` filesystem is nearly full, and is located on the `/dev/sdd1` partition. The output of `df`will show the device path regardless of whether the disk is mounted by device path or the (preferred) UUID in the fstab. Also take note of the Type column, indicating the format of the filesystem. This will be important later.
42
+
Here we can see, for example, the `/opt/db/data` filesystem is nearly full, and is located on the `/dev/sdd1` partition. The output of `df`shows the device path regardless of whether the disk is mounted by device path or the (preferred) UUID in the fstab. Also take note of the Type column, indicating the format of the filesystem. This is important later.
43
43
44
-
Now locate the LUN which correlates to `/dev/sdd` by examining the contents of `/dev/disk/azure/scsi1`. The output of the following `ls` command will show that the device known as `/dev/sdd` within the Linux OS is located at LUN1 when looking in the Azure portal.
44
+
Now locate the LUN that correlates to `/dev/sdd` by examining the contents of `/dev/disk/azure/scsi1`. The output of the following `ls` command shows that the device known as `/dev/sdd` within the Linux OS is located at LUN1 when looking in the Azure portal.
45
45
46
46
```bash
47
47
sudo ls -alF /dev/disk/azure/scsi1/
@@ -121,7 +121,7 @@ In the following samples, replace example parameter names such as *myResourceGro
121
121
122
122
### Detecting a changed disk size
123
123
124
-
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.
124
+
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 256 GiB to 512 GiB.
125
125
126
126
1. Identify the currently recognized size on the first line of output from `fdisk -l /dev/sda`
127
127
@@ -439,7 +439,7 @@ To increase the OS disk size in SUSE 12 SP4, SUSE SLES 12 for SAP, SUSE SLES 15,
439
439
└─rootvg-rootlv 253:6 0 2G 0 lvm /
440
440
```
441
441
442
-
1. Expand the partition containing this PV using *growpart*, the device name, and partition number. Doing so will expand the specified partition to use all the free contiguous space on the device.
442
+
1. Expand the partition containing this PV using *growpart*, the device name, and partition number. Doing so expands the specified partition to use all the free contiguous space on the device.
@@ -25,6 +25,8 @@ An OS disk has a maximum capacity of 4,095 GiB. However, many operating systems
25
25
> Shrinking an existing disk isn’t supported and may result in data loss.
26
26
>
27
27
> After expanding the disks, you need to [Expand the volume in the operating system](#expand-the-volume-in-the-operating-system) to take advantage of the larger disk.
Copy file name to clipboardExpand all lines: includes/disks-prem-v2-limitations.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,5 +18,5 @@ ms.custom:
18
18
- Azure Site Recovery isn't supported for VMs with Premium SSD v2 disks.
19
19
- Azure Backup support for VMs with Premium SSD v2 disks is currently in [public preview](/azure/backup/backup-support-matrix-iaas#vm-storage-support).
20
20
- The size of a Premium SSD v2 can't be expanded without either deallocating the VM or detaching the disk.
0 commit comments