How to Expand Root Partition on CentOS / AlmaLinux 8/9 in VMware ESXi: A Step-by-Step Guide

How to Expand Root Partition on CentOS / AlmaLinux 8/9 in VMware ESXi: A Step-by-Step Guide

Running out of space on your CentOS or AlmaLinux VM hosted on VMware ESXi? Expanding the root partition can resolve storage issues and improve server performance. This comprehensive guide will walk you through expanding the root partition, logical volume (LVM), and filesystem in CentOS 7, CentOS 8, AlmaLinux 8, and AlmaLinux 9.By the end of this tutorial, you will learn:How to rescan the disk and extend partitions in VMware ESXi.How to expand LVM-based logical volumes and filesystems.How to handle situations where growpart is unavailable.Let’s get started.Why Expand the Root Partition?Over time, disk space can become limited due to:Increased storage needs for applications, logs, or backups.Growing data requirements for websites or databases...
How to Expand Root Partition on Ubuntu VM in VMware ESXi: A Step-by-Step Guide

How to Expand Root Partition on Ubuntu VM in VMware ESXi: A Step-by-Step Guide

As a system administrator or developer, managing storage efficiently in virtual machines is essential. If you're using VMware ESXi to host an Ubuntu VM and need to expand the root partition due to increasing disk usage, this guide will help you. Follow our step-by-step process to extend your Ubuntu root partition (LVM-based) safely and effectively.By the end of this tutorial, you will learn:How to rescan a virtual disk after adding space in VMware ESXi.How to expand the logical volume (LVM) and filesystem in Ubuntu.This detailed guide is optimized for both beginners and experienced professionals looking to enhance their virtual infrastructure.Why Expand the Root Partition in Ubuntu?Running out of disk space on your Ubuntu server can cause critical issues, includi...