diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index f65dcfbf..83ba5e2a 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm @@ -585,6 +585,11 @@ sub sync_disks { $self->{volume_map}->{$volid} = $new_volid; $self->log('info', "volume '$volid' is '$new_volid' on the target\n"); + + eval { PVE::Storage::deactivate_volumes($storecfg, [$volid]); }; + if (my $err = $@) { + $self->log('warn', $err); + } } } };