[pve-devel] [PATCH 2/2] disable drive-mirror when iothread is enabled

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Aug 23 09:45:01 CEST 2016


applied this one

On Sat, Aug 20, 2016 at 10:02:29AM +0200, Alexandre Derumier wrote:
> drive-mirror is not working with qemu 2.6 when iothread is enabled.
> 
> with virtio-blk : mirror is working, but block-job-completed crash the vm
> with virtio-scsi : mirror hang at start.
> 
> This should be fixed in qemu 2.7
> 
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
>  PVE/QemuServer.pm | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
> index b295ae4..9c7444e 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -5760,6 +5760,9 @@ sub clone_disk {
>  	if (!$running || $snapname) {
>  	    qemu_img_convert($drive->{file}, $newvolid, $size, $snapname, $sparseinit);
>  	} else {
> +	    #qemu 2.6
> +	    die "drive-mirror is not working currently when iothread is enabled" if $drive->{iothread};
> +
>  	    qemu_drive_mirror($vmid, $drivename, $newvolid, $newvmid, $sparseinit);
>  	}
>      }
> -- 
> 2.1.4




More information about the pve-devel mailing list