I don't see an answer here. Is this still not possible? I'm running PVE 7.1-12 in a development / hobby environment but I don't want to lose my VMs. Is there a way to boot from USB, i.e. with no VGs or LVs mounted and then resize?
I've been using this setup for 6+ months but now the 100G of /dev/pve/root space is too restrictive and I have well over a TB of unused space because the default install ate my whole 2TB nvme drive.
Code:
> vgdisplay
--- Volume group ---
VG Name pve
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 70
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 19
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size <1.82 TiB
PE Size 4.00 MiB
Total PE 476803
Alloc PE / Size 472612 / 1.80 TiB
Free PE / Size 4191 / 16.37 GiB
VG UUID fdRKNk-6Gv1-jLyD-oGvv-wNv6-5rEQ-9FYU5C
Note the VG Status is resizable. That's not very meaningful if I cannot shrink a LV within it.
An acceptable alternative for me would be to create a LV with /dev/pve/data and mount it on the host. Is that an easier ask? ...
UDPATE:
I ended up deleting all LVs (12 disk images and data), resizing root, restoring VMs from backup. It seems to have worked. Here's my code, if anyone's interested.
Bash:
#delete
lvremove /dev/pve/vm-100-disk-0 -y
...
lvremove /dev/pve/data -y
#resize
lvresize -L +1400G /dev/pve/root
resize2fs /dev/pve/root
#restore
lvcreate -L 358G -n data pve
lvconvert --type thin-pool pve/data
qmrestore vzdump-qemu-100-2022_04_15-20_01_09.vma.zst 100 --force
...