bug in migration function with clvm + iscsi

argonius

Renowned Member
Jan 17, 2012
48
1
71
Hi,

we've probably faced a bug.

in a cluster setup with shared storage ( clvm over iscsi), the newly created lv isn't deactived after auto migration:

you can reproduce this the following way:
lets say you have a kvm template on node1 and do a "clone to node2", the new vm is firstly cloned on node1 and after that it gets moved to node2. the problem now is, that the
logical volume (lv) of the new vm (for example vm-101-disk-1) isn't deactivated on node1 after it is automatically moved to node2 (after the cloning process). if you now delete the vm on node2
node1 does not recognize this, and you will run into an error if you try to create a new vm with the same id after you have deleted the vm on node2.

reproduce:
- create a cluster with min 2 nodes and iscsi storage with clvm on top
- create a kvm vm on node1 on the clvm storage and define it as template (right click -> convert to template)
- now create a clone of the template. choose as destination: node2
- after cloning is completed and new vm is located on node2, you will see on node1 (via ssh and 'lvdisplay' or 'dminfo show') that vm-101-disk-1 is still active
- delete the new vm on node2
- try to create a new vm with the id of the just removed vm
- you will now get a lvm error



greets,
patrick
 
thanks for the fast fix. applyied the diff and rebooted the nodes, but the fix does not work!
dmsetup info still shows active vm disk on node1 while the server resides on node2...
 
thanks for the fast fix. applyied the diff and rebooted the nodes, but the fix does not work!
dmsetup info still shows active vm disk on node1 while the server resides on node2...

push! the bug seems still to exist...
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!