mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-04-30 19:31:54 +00:00
deactivate volumes after clone to other node
This commit is contained in:
parent
d0d31281d1
commit
baca276db5
@ -2252,6 +2252,9 @@ __PACKAGE__->register_method({
|
||||
PVE::QemuServer::update_config_nolock($newid, $newconf, 1);
|
||||
|
||||
if ($target) {
|
||||
# always deactivate volumes - avoid lvm LVs to be active on several nodes
|
||||
PVE::Storage::deactivate_volumes($storecfg, $vollist);
|
||||
|
||||
my $newconffile = PVE::QemuServer::config_file($newid, $target);
|
||||
die "Failed to move config to node '$target' - rename failed: $!\n"
|
||||
if !rename($conffile, $newconffile);
|
||||
|
Loading…
Reference in New Issue
Block a user