[pve-devel] [PATCH installer] warn if maxvz is set and <= 4 GiB

Mira Limbeck m.limbeck at proxmox.com
Tue Nov 19 11:46:58 CET 2024


On 11/19/24 11:45, Mira Limbeck wrote:
> Signed-off-by: Mira Limbeck <m.limbeck at proxmox.com>
> ---
>  Proxmox/Install.pm | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/Proxmox/Install.pm b/Proxmox/Install.pm
> index c64e1d4..da8fb55 100644
> --- a/Proxmox/Install.pm
> +++ b/Proxmox/Install.pm
> @@ -555,6 +555,10 @@ sub create_lvm_volumes {
>  	my $maxvz = Proxmox::Install::Config::get_maxvz();
>  	if ($iso_env->{product} eq 'pve' && !defined($maxvz)) {
>  	    Proxmox::UI::message("Skipping auto-creation of LVM thinpool for guest data due to low space.");
> +	} elsif ($iso_env->{product} eq 'pve') {
> +	    Proxmox::UI::message(
> +		"Skipping auto-creation of LVM thinpool for guest data, Maximum data volume size set too low."
> +	    );
>  	}
>  	$datadev = undef;
>      }

Sent it a bit too soon, maybe we want to check if $maxvz is 0 and don't
warn in that case?




More information about the pve-devel mailing list