From 9045f57a2740ca39bb3eba0d9a7c5109ade8f7f3 Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Thu, 23 Feb 2017 14:44:54 +0100 Subject: [PATCH] Check array existed before use. This triggers if a qemu guest has a local unused disk. The disk will migrate by offline disk migration, so it is not in the target_drives. --- PVE/QemuMigrate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index cd1fc2b3..bcd9c84e 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm @@ -592,7 +592,7 @@ sub phase2 { my $start = time(); - if ($self->{opts}->{targetstorage}) { + if ($self->{opts}->{targetstorage} && defined $self->{online_local_volumes}) { $self->{storage_migration} = 1; $self->{storage_migration_jobs} = {}; $self->log('info', "starting storage migration");