Storage deletion over 2 Clusters

Volker Lieder

Well-Known Member
Nov 6, 2017
50
3
48
45
Hi,
we have installed 2 clusters which have some same storages defined.
If i now delete eg. VM 103 on Cluster A, and have also a VM 103 on Cluster B and they have access to all storages, the storage from VM 103 on cluster B will also be deleted.
Is it possible to change deletion of a vm in that way, that only the storage from the config will be deleted and not all which is named with VM 103?
Best regards,
Volker
 
According to API viewer, GUI warnings, qm man page - the unreferenced disks are NOT destroyed by default.
Code:
--destroy-unreferenced-disks <boolean> (default = 0)
           If set, destroy additionally all disks not referenced in the config but with a matching VMID from all enabled storages.


Although I am slightly curious about the reasons that made you arrive to a setup your described lets ignore that for now.
If you are seeing all disks with matching VMID being removed, even those that are not referenced in the configuration and you have steps that can easily reproduce this - you should post the details here as you may have stumbled onto a bug.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
you also shouldn't share shared storages between clusters without some namespacing (e.g., different exports for SMB/NFS) - among other things locking a shared storage is per cluster, you will run into issues sooner or later otherwise even if you never tick that box/set that flag.