Major Bug when deleting VMs on different Hosts/Storages

MasterTH

Renowned Member
Jun 12, 2009
229
7
83
www.sonog.de
Hi there,

i faced one really big problem.
When using multiple proxmox Hosts/Cluster on one storage, and one host has a vm running with id 100 on local disk and the other one has the same VM-ID (100) running at the Shared Storage - the HardDiskFiles at the Shared Storage would get deleted when the host that has the vm running on the local disk deletes the VM.

the deletion progress should just delete the configured harddisks and not all of them, available on the configured storages.


this may not be a big problem in normal scenarios but when you are migrating clusters it can happen that you have to add vm to the new cluster, and after adding it, you realize that the vm-id is also used on the other cluster. when you then delete the new created vm it'll delete the harddisks of the other one to.
 
Hi,
When using multiple proxmox Hosts/Cluster on one storage, and one host has a vm running with id 100 on local disk and the other one has the same VM-ID (100) running at the Shared Storage - the HardDiskFiles at the Shared Storage would get deleted when the host that has the vm running on the local disk deletes the VM.

Different clusters must not share the exact same shared storage share, that's by design.
It's not "just" the name spacing and VMID uniques which then gets violated. Locking between different clusters just cannot work, and thus you cannot safely allocate, delete, ... volumes or disk images.
 
i totally agree with you, but when you are migrating this can happen for a short period of time.
and if you are deleting something you want that the system just deletes what is configured, right?
 
and if you are deleting something you want that the system just deletes what is configured, right?

Yeah right, that's why you do not delete anything if you temporarily share a storage against all recommendation, or ensure the that no VMID conflicts yourself - two separate clusters just cannot do what you ask for..

You can also cluster the old and new nodes and move the guests with the interfaces Proxmox VE provides, so that the cluster can protect from such issues.
 

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!