Extend Linux Lvm(Short)
Mon, Jun 20, 2022
One-minute read
How to extend a Linux LVM
-
Add more disk space to the VM
-
Show info about the Volume Group and the Logical Volume
sudo vgdisplay -v
-
Extend the volume by 10GB
sudo lvextend -L+10G /dev/ubuntu-vg/ubuntu-lv
Where the
L+10G
is the size in GB to increase the volume with -
Resize the Logical Volume
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv
-
Done!