[pve-devel] [PATCH qemu-server] Add LVM and LVMThin to QemuMigration

Wolfgang Link w.link at proxmox.com
Tue Jun 7 09:10:08 CEST 2016


Ofline migration on LVM and LVMThin are possible offline.
---
 PVE/QemuMigrate.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 7b9506f..2fd307c 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -293,7 +293,9 @@ 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} eq 'dir' || $scfg->{type} eq 'zfspool') && (!$sharedvm));
+		if (!($scfg->{type} eq 'dir' || $scfg->{type} eq 'zfspool'
+		      || $scfg->{type} eq 'lvmthin' || $scfg->{type} eq 'lvm')
+		      && (!$sharedvm));
 
 	    # if file, check if a backing file exist
 	    if (!($scfg->{type} eq 'dir' || $scfg->{type} eq 'zfspool') && (!$sharedvm)) {
-- 
2.1.4





More information about the pve-devel mailing list