Resizing the LVM
LVM is quite complicated and need much knowledge to administer. This is just a quick glimpse into that.
Resize a LVM PVE Root
If you do not switch to the preferred ZFS at install, you end up using LVM storage. It gives a lot of storage to pve-data
which is a volume-storage
and not a lot for pve-root
, and pve-root
it’s where your file system is mounted. Proxmox doesn't need much space for pve-root
. But sometimes it's too little.
You can check current situation by lvdisplay
.
For example, if we want to resize our pve-data
to be 200 GiB
and also give pve-root
the rest of the space, we can do it by do it as follows:
Remove the pve-data logical volume.
lvremove /dev/pve/data -y
Create the pve-date with new size
lvcreate -L 10G -n data pve -T
Allocate the remaining space to pve-root
lvresize -l +100%FREE /dev/pve/root
And then Resize pve-root
resize2fs /dev/mapper/pve-root
Check for Success
lvdisplay