Automatic pve-root partition size

Tipenso

Member
May 12, 2022
15
2
8
Good morning, everyone.
Just a curiosity: during installation, how is calculated by the system the size of the pve-root partition, if I don't enter any 'maxroot' option? I had read on the guide, that it should correspond to hdsize/4, but this was not this in my case.

Screenshot 2025-02-11 alle 11.14.36.png

Thank you.
 
If nothing is set for the maxroot, it defaults to 96 GiB as upper limit.

In your case, since your root disk is only about 280GiB, this will be effectively be capped at about 280/4=70 + 12 GiB.

The exact calculations can be found at [0], which tries to account for a variety of possible disk sizes and find a as-optimal-as-possible sizing in the case no explicit values are specified. It's somewhat automagic and not that explicitly documented, but normally work fine for most deployments - or system administrators specify them themselves anyway.

[0] https://git.proxmox.com/?p=pve-inst...5aa3ae4f0c68f0579601807e43cde63e;hb=HEAD#l478