]> git.proxmox.com Git - pve-installer.git/commit
always align rootdisk size to 4 MiB
authorFiona Ebner <f.ebner@proxmox.com>
Thu, 22 Jun 2023 14:18:34 +0000 (16:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Jun 2023 14:26:49 +0000 (16:26 +0200)
commit98c856e86a8431f795eb2508f7f2c9d34f2b0c22
treee93587a9765372ffce5d4e7d05e12be2c1102881
parent22b783728390ec3422f87df49b3625fd8716bedf
always align rootdisk size to 4 MiB

While this was already done in the $rest < 48 GiB cases, it wasn't yet
done for the else branch and also not if $maxroot_mb was assigned,
because of being smaller.

Second and last step towards fixing an issue reported in the community
forum [0] where using 250.00 hdsize, 250 maxroot and 0 minfree would
fail.

Turns out two extents would be missing because of lvcreate implicitly
rounding up, one of them for the root LV (the one for metadata was
already handled in the previous commit).

[0]: https://forum.proxmox.com/threads/129320/post-566375

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Proxmox/Install.pm