Increase LVM Partition

First you need to check that there is free space available to use.

vgdisplay
To view the logical volumes use the following command
lvdisplay
Expand volume
lvextend -L+20G /dev/centos/root

-L+20G –> extesion by 20GB
-L+100%FREE –> use all free space

Resize the file system
xfs_growfs /dev/centos_lvm/root

For ext3/ext4-Partitions you can alternatively use

resize2fs /dev/centos_lvm/root
Other useful commands
lsblk
df -h

Leave a Reply

Your email address will not be published. Required fields are marked *