Can't shutdown / VM Locking problem

MisterY

Renowned Member
Oct 10, 2016
141
4
83
38
Hi,
My Proxmox-Server won't shutdown out of the sudden, because either some ct or vm won't shutdown.
When I delete the files within /var/lock/qemu-server or restart the qemu-server, then I can shutdown. But after a new boot I have the same problem. What can I do?
The only thing changed was the 2-Port SATA PCI-E Card was replaced by a 4-Port. But even after going back the same problem is there.
 
Try running

Code:
pvesh create /nodes/localhost/stopall

before you shut down. This should stop all VMs and CTs.
 
I would suggest debugging why stopping fails.
Check where does the lock come from.
Obviously something is locking and then not releasing lock.
Maybe failed backups?

You can also unlock them with pct unlock and qm unlock manually.