Information


UseCase

These are case studies and references for usage of LVM. This includes common errors and solutions that we have found when running into them.

Storage

To extend the ubuntu--vg-ubuntu-lv after increasing the size of a physical volume from Proxmox

For the purposes of simplicity, I’m going to assume that the main volume you wish to extend is /dev/sda3.

  • Check the current size with sudo lsblk or sudo fdisk -l
  • Run either sudo growpart /dev/sda 3 or use sudo cfdisk to resize the /dev/sda3 to max size
  • Extend the PV volume with sudo pvresize /dev/sda3
  • Extend the LV to 100% with sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
  • Resize the filesystem with sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv