deactivate new volumes after clone to other node

this might otherwise lead to volumes activated on the
source and target node, which is problematic for at least
LVM and Ceph.
This commit is contained in:
Fabian Grünbichler 2016-07-13 12:44:12 +02:00 committed by Wolfgang Bumiller
parent b5b9979081
commit 32acc380d3

View File

@ -2392,6 +2392,7 @@ __PACKAGE__->register_method({
if ($target) {
# always deactivate volumes - avoid lvm LVs to be active on several nodes
PVE::Storage::deactivate_volumes($storecfg, $vollist, $snapname) if !$running;
PVE::Storage::deactivate_volumes($storecfg, $newvollist);
my $newconffile = PVE::QemuConfig->config_file($newid, $target);
die "Failed to move config to node '$target' - rename failed: $!\n"