diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 1ff5abe4..40b6c302 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -3820,11 +3820,12 @@ __PACKAGE__->register_method({ PVE::QemuServer::create_ifaces_ipams_ips($newconf, $newid); if ($target) { - # always deactivate volumes - avoid lvm LVs to be active on several nodes - eval { - PVE::Storage::deactivate_volumes($storecfg, $vollist, $snapname) if !$running; - }; - log_warn($@) if ($@); + if (!$running) { + # always deactivate volumes – avoids that LVM LVs are active on several nodes + eval { PVE::Storage::deactivate_volumes($storecfg, $vollist, $snapname) }; + # but only warn when that fails (e.g., parallel clones keeping them active) + log_warn($@) if $@; + } PVE::Storage::deactivate_volumes($storecfg, $newvollist);