[SOLVED] Is there a way to determine if a VM is currently locked?

Ivan Gersi

Renowned Member
May 29, 2016
83
7
73
55
I had a several VM locked today but onl one has running backup process. Is there any way to see all locked machine in cluster/node?
 
In Proxmox VE 6 you'll see all locks in the webinterface resource tree, and the cluster resource API call.

For older PVE versions, either:
* upgrade ;)
* check the config files find /etc/pve -type f -name '*.conf' -exec grep -H 'lock:' {} \;
 
In Proxmox VE 6 you'll see all locks in the webinterface resource tree, and the cluster resource API call.
You`re right, I have 5 nodes cluster and I was login in via v5 node (not v6). Api from v6 show me all locked machine.
 
You`re right, I have 5 nodes cluster and I was login in via v5 node (not v6). Api from v6 show me all locked machine.

I hope you're only have a "mixed version" cluster due to being in the process to upgrade the remaining ones, as it's not recommended to run different major versions alongside in the same cluster for an extended period of time, just FYI :)