Centos 7 Extend Root Partition

(Last Updated On: April 19, 2019)Welcome to our guide on how to extend root filesystem using. This will cover both ext4 and XFS filesystem root partition extending.

Centos 7 extend disk space

To demonstrate a complete LVM lifecycle, we will perform the following actions:. Create an LVM physical volume, volume group, and logical volume. Create an XFS and ext4 file systems on the logical volumes. Chairs for 400 lb people. Extend LVM logical volumes ( root and non-root filesystem)LVM allows you to create, resize or delete partitions on a running system without requiring any reboot. So check the steps below to extend root filesystem using LVM in Linux. You can skip some steps which don’t apply to use.If you’re not using LVM, check our guide below.

Centos 7 enlarge root partition

Centos 7 Extend Root Partition Download

Step 1: Confirm Disk Partitions in Distribution.Before we can do any extension, let’s just confirm our disk layout / partitioning scheme. $ lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTsr0 11:0 1 1024M 0 romvda 252:0 0 30G 0 disk├─vda1 252:1 0 1G 0 part /boot└─vda2 252:2 0 29G 0 part├─rhel-root 253:0 0 26.9G 0 lvm /└─rhel-swap 253:1 0 2.1G 0 lvm SWAPAs noted, we have a root filesystem on /dev/vda2 physical volume. $ sudo pvsPV VG Fmt Attr PSize PFree/dev/vda2 rhel lvm2 a. Once the OS block device is resized, ssh to your Linux machine and extend LVM to use newly added disk capacity. The command below will expand the last partition ( Partition 2), as shown by 252:2,on the disk ( /dev/vda) to the maximum size the disk provides.

Install cloud utilsFor those new to growpart, it is a Linux command line tool used to extend a partition in a partition table to fill available space.

Comments are closed.