From 7d930a0e7e6b54e8369f30d4552c955d2d019512 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Tue, 21 Jul 2015 15:14:36 +0200 Subject: [PATCH] vzdump : abord backup if disk have iothread enabled. Currently backup don't work with iothread feature, and crash qemu For now, abord the backup if one of the vm drives have iothread enabled until backup code is fixed. Upstream qemu backup cde already support iothread. http://git.qemu.org/?p=qemu.git;a=commit;h=761731b1805f6ef64eb615e5b82a0801db3cde78 Signed-off-by: Alexandre Derumier --- PVE/VZDump/QemuServer.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm index 314538fb..64146e88 100644 --- a/PVE/VZDump/QemuServer.pm +++ b/PVE/VZDump/QemuServer.pm @@ -67,6 +67,8 @@ sub prepare { if (defined($drive->{backup}) && $drive->{backup} eq "no") { $self->loginfo("exclude disk '$ds' (backup=no)"); return; + } elsif (defined($drive->{iothread}) && $drive->{iothread} eq "on") { + die "disk '$ds' (iothread=on) can't use backup feature currently. Please set backup=no for this drive"; } my $volid = $drive->{file};