[pve-devel] applied: [PATCH qemu-server] qemu-img convert: use cache=none

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Mar 23 15:08:37 CET 2018


applied, with s/,$/;/ fixup (see inline) :)

On 3/23/18 11:12 AM, Fabian Grünbichler wrote:
> this fixes an issue with zvols, which require cache=none and eat up all
> free memory as buffered pages otherwise
> 
> https://github.com/zfsonlinux/zfs/issues/7235
> 
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
>  PVE/QemuServer.pm | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
> index 061effa..e4b090b 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -6146,6 +6146,7 @@ sub qemu_img_convert {
>  	my $cmd = [];
>  	push @$cmd, '/usr/bin/qemu-img', 'convert', '-p', '-n';
>  	push @$cmd, '-s', $snapname if($snapname && $src_format eq "qcow2");
> +	push @$cmd, '-t', 'none', '-T', 'none',
                                              ^^^
>  	push @$cmd, '-f', $src_format, '-O', $dst_format, $src_path;
>  	if ($is_zero_initialized) {
>  	    push @$cmd, "zeroinit:$dst_path";
> 






More information about the pve-devel mailing list