[SOLVED] Proxmox VE GUI allows deleting storage even though there are VMs referring to it

EllyMae

Member
Jul 20, 2022
134
10
23
I have a VM with a virtual disk on NVME1N1:

1665768344337.png

Here is the storage:

1665768445420.png

And, I delete it:

1665768504538.png

Now it's gone:

1665768569130.png

Now I go back to the original VM, bullwinkle. The virtual disk is still there. When I try to assign it to another VM:

1665768720525.png

I am requesting a change in the GUI. If anything is referencing a storage, do not allow it to be deleted. And, if you want to be kind to the user, please say exactly which references are preventing the storage from being deleted.

Thanks.
 
Last edited:
I am requesting a change in the GUI. If anything is referencing a storage, do not allow it to be deleted. And, if you want to be kind to the user, please say exactly which references are preventing the storage from being deleted.

even if we check for references, nothing can stop another node than the one where you are requesting the removal from concurrently creating new ones. PVE uses a multi-master cluster architecture where each node is responsible for local resources (which includes local storages). there are also very very many places that would need to be checked (all guest configs including all snapshots, backup jobs, ..). it's also possible that the removal even with references is intentional (to re-add it with different settings which are not editable over the GUI, for example).