mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-03 15:45:49 +00:00
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:
parent
b5b9979081
commit
32acc380d3
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user