mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-15 06:08:27 +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);
|
PVE::QemuServer::update_config_nolock($newid, $newconf, 1);
|
||||||
|
|
||||||
if ($target) {
|
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);
|
my $newconffile = PVE::QemuServer::config_file($newid, $target);
|
||||||
die "Failed to move config to node '$target' - rename failed: $!\n"
|
die "Failed to move config to node '$target' - rename failed: $!\n"
|
||||||
if !rename($conffile, $newconffile);
|
if !rename($conffile, $newconffile);
|
||||||
|
Loading…
Reference in New Issue
Block a user