diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 18eef46..932f0f1 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -709,6 +709,13 @@ sub storage_migrate { }; volume_snapshot($cfg, $volid, $snapshot) if $migration_snapshot; + + if (defined($snapshot)) { + activate_volumes($cfg, [$volid], $snapshot); + } else { + activate_volumes($cfg, [$volid]); + } + eval { if ($insecure) { my $input = IO::File->new();