Increase lvm size in Debian
Let's see how much free space we have
pvs
PV | VG | FMT | Attr | PSize | PFree |
---|---|---|---|---|---|
/dev/sda1 | v1 | lvm2 | a - - | 60.43 | 15.84 |
Then choose the right LV Path volume
lvscan
I will increase the size of the root volume
/dev/v1/root
Increase the size by 2 Gigabytes
lvextend -L+2G /dev/v1/root
Сheck the file system for errors
e2fsck -f /dev/v1/root
Resize the filesystem
resize2fs /dev/v1/root
Check the new LVM size
lvs