[pve-devel] [PATCH] implement offline migration on zfs

Wolfgang Link w.link at proxmox.com
Fri Apr 24 13:27:27 CEST 2015


Signed-off-by: Wolfgang Link <w.link at proxmox.com>
---
 PVE/QemuMigrate.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index af04ea5..f6eb3f5 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -248,10 +248,10 @@ sub sync_disks {
 	    my $scfg =  PVE::Storage::storage_config($self->{storecfg}, $sid);
 
 	    die "can't migrate '$volid' - storage type '$scfg->{type}' not supported\n"
-		if $scfg->{type} ne 'dir';
+		if (!($scfg->{type} eq 'dir' || $scfg->{type} eq 'zfspool') && (!$sharedvm));
 
 	    # if file, check if a backing file exist
-	    if (($scfg->{type} eq 'dir') && (!$sharedvm)) {
+	    if (!($scfg->{type} eq 'dir' || $scfg->{type} eq 'zfspool') && (!$sharedvm)) {
 		my (undef, undef, undef, $parent) = PVE::Storage::volume_size_info($self->{storecfg}, $volid, 1);
 		die "can't migrate '$volid' as it's a clone of '$parent'" if $parent;
 	    }
-- 
1.7.10.4





More information about the pve-devel mailing list