Increasing LVM Storage Size
Overview
This document outlines growing an LVM partition when you need to increase available disk space.
Growing LVM Storage
We will assume at this point, the underlying disk space has been grown physically.
- Confirm disk information and phsyical volumes:
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 1024M 0 rom
vda 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 [SWAP]
sudo pvs
PV VG Fmt Attr PSize PFree
/dev/vda2 rhel lvm2 a-- <29.00g 0- Extend partition. In this example, vda2 is the partition we are increasing.
sudo growpart /dev/vda 2
sudo pvresize /dev/vda2
sudo lvextend -r -l 100%FREE /dev/ubuntu-vg/ubuntu-lv- Profit