Files
DevOps/Linux/expand_lvm_partition.md
2025-10-03 12:02:54 +02:00

380 B

Ubuntu Server

Expand partition using LVM

To expand a partition using LVM on Ubuntu Server, first check for free space in your volume group with

sudo vgdisplay

Then, extend the logical volume with sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv

and resize the filesystem using sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv to apply the changes.