After disk migration, LVM failed to deactivate

Oct 25, 2024
6
1
3
Hi,

I have noticed strange behavior.
When I migrate disk to another storage, task is OK, but I see message in output: `volume deactivation failed`
So I've got two volumes.
In VM config file I see proper storage.

In CLI i do:
lvdisplay | grep {VM_ID}
then
lvremove /dev/{storage}/vm-{VM_ID}-disk-0.qcow2

but this is not long-term solution ;-)

EDIT:
When VM is powered off, problem does't apper

HV: Proxmox 9.1.4 (repo enterprise)
Storage type: LVM (FC SAN Storage via multipath)
 
Last edited:
  • Like
Reactions: Puliper
This is bug 7143. It happens with LVM on FC multipath when the VM is running because the old LV is still active, so deactivation fails.


That is why it does not occur when the VM is powered off.


Update to the latest enterprise packages first. Until it is fully fixed, migrate with the VM shut down or clean up the leftover LV manually.