deactivate volumes after storage_migrate

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2020-11-06 15:30:59 +01:00 committed by Fabian Grünbichler
parent 78bd57d9c3
commit e219712561

View File

@ -585,6 +585,11 @@ sub sync_disks {
$self->{volume_map}->{$volid} = $new_volid; $self->{volume_map}->{$volid} = $new_volid;
$self->log('info', "volume '$volid' is '$new_volid' on the target\n"); $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);
}
} }
} }
}; };