Skip to content

Commit 6b201d0

Browse files
authored
Update expand-disks.md
Remove references to CentOS and update to a RHEL 8+ standard
1 parent cb6cc8f commit 6b201d0

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

articles/virtual-machines/linux/expand-disks.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ ms.custom: references_regions, devx-track-azurecli, linux-related-content
1212

1313
# Expand virtual hard disks on a Linux VM
1414

15-
> [!CAUTION]
16-
> This article references CentOS, a Linux distribution that is nearing End Of Life (EOL) status. Please consider your use and plan accordingly. For more information, see the [CentOS End Of Life guidance](~/articles/virtual-machines/workloads/centos/centos-end-of-life.md).
17-
1815
**Applies to:** :heavy_check_mark: Linux VMs :heavy_check_mark: Flexible scale sets
1916

2017
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.
@@ -172,7 +169,7 @@ If a data disk was expanded without downtime using the procedure mentioned previ
172169

173170
The remainder of this article uses the OS disk for the examples of the procedure for increasing the size of a volume at the OS level. If the expanded disk is a data disk, use the [previous guidance for identifying the data disk device](#identifyDisk), and follow these instructions as a guideline, substituting the data disk device (for example `/dev/sda`), partition numbers, volume names, mount points, and filesystem formats, as necessary.
174171

175-
All Linux OS guidance should be viewed as generic and may apply on any distribution, but generally matches the conventions of the named marketplace publisher. Reference the Red Hat documents for the package requirements on any distribution claiming Red Hat compatibility, such as CentOS and Oracle.
172+
All Linux OS guidance should be viewed as generic and may apply on any distribution, but generally matches the conventions of the named marketplace publisher. Reference the Red Hat documents for the package requirements on any distribution based on Red Hat or claiming Red Hat compatibility.
176173

177174
### Increase the size of the OS disk
178175

@@ -344,7 +341,7 @@ To increase the OS disk size in SUSE 12 SP4, SUSE SLES 12 for SAP, SUSE SLES 15,
344341

345342
In the preceding example, we can see that the file system size for the OS disk has been increased.
346343

347-
# [Red Hat/CentOS with LVM](#tab/rhellvm)
344+
# [Red Hat with LVM](#tab/rhellvm)
348345

349346
1. Follow the procedure above to expand the disk in the Azure infrastructure.
350347

@@ -410,10 +407,10 @@ To increase the OS disk size in SUSE 12 SP4, SUSE SLES 12 for SAP, SUSE SLES 15,
410407
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
411408

412409
```bash
413-
yum install cloud-utils-growpart gdisk
410+
dnf install cloud-utils-growpart gdisk
414411
```
415412

416-
In RHEL/CentOS 8.x VMs you can use `dnf` command instead of `yum`.
413+
In Red Hat versions 7 and below you can use `yum` command instead of `dnf`.
417414

418415
1. Determine which disk and partition holds the LVM physical volume (PV) or volumes in the volume group named **rootvg** by using the **pvscan** command. Note the size and free space listed between the brackets (**[** and **]**).
419416

@@ -529,7 +526,7 @@ To increase the OS disk size in SUSE 12 SP4, SUSE SLES 12 for SAP, SUSE SLES 15,
529526
> [!NOTE]
530527
> To use the same procedure to resize any other logical volume, change the **lv** name in step **12**.
531528
532-
# [Red Hat/CentOS without LVM](#tab/rhelraw)
529+
# [Red Hat without LVM](#tab/rhelraw)
533530

534531
1. Follow the procedure above to expand the disk in the Azure infrastructure.
535532

@@ -544,11 +541,11 @@ To increase the OS disk size in SUSE 12 SP4, SUSE SLES 12 for SAP, SUSE SLES 15,
544541
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
545542

546543
```bash
547-
yum install cloud-utils-growpart gdisk
544+
dnf install cloud-utils-growpart gdisk
548545
```
549546

550-
In RHEL/CentOS 8.x VMs you can use `dnf` command instead of `yum`.
551-
547+
In Red Hat versions 7 and below you can use `yum` command instead of `dnf`.
548+
552549
1. Use the **lsblk -f** command to verify the partition and filesystem type holding the root (**/**) partition
553550

554551
```bash

0 commit comments

Comments
 (0)