Install so /var/lib/vz uses whole disk

Jaark

New Member
Aug 29, 2025
2
0
1
Hi,

I am looking to install PVE9.1 on a few servers. These have two sets of storage device configured - one to boot from (~200G) and the other for data storage (~6T).
Therefore I want all the VMs and such on the larger disk set. I set maxvz to zero during install so it does not create the data volume. That's fine but it then leaves the majority of the boot disk unallocated, having the root volume using just a third of the disk.

Am I missing something in the installer?

I am guessing it is safe to just grow the root lv and filesystem after install to fill the disk, but I am wondering if there is any good reason it is leaving the space unused?

TIA,
 
Extending is safe and very easy (lvresize -r -L +99%FREE pve/root) but you can also just modify maxroot.
ZFS doesn't have such issues. All storages in the pool can use all the space. You likely use it for the data storage anyways so why not for root too?
As for keeping some free see the minfree section in the link. It's mostly helpful to protect against a full thin pool which you don't have or to have the possibility to extend swap, etc.
 
Last edited:
Sorry, I meant to say I had set maxroot to the size of the disk but it still left the space unused.

Thanks for confirming my assumptions about the space on the boot drive - I can just add a resize to my scripts the create the storage volumes.