Files
DevOps/Linux/expand_lvm_partition.md
T
2026-06-27 17:33:50 +02:00

17 lines
451 B
Markdown

# 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.
https://www.saturnme.com/how-to-extend-a-linux-vm-disk-on-proxmox-ve/