Hello,
When creating or cloning a server in Proxmox, a lock file is generated under /var/lock/qemu-server. These lock files should be deleted automatically once the process is completed so that we can configure VM settings via the API. However, in our case, the lock files are not being removed automatically. This issue is occurring across almost all of our servers located in different regions even in newly installed ones.
Here are the steps I've tried:
2. qm destroy <vmid> - This command also does not remove the lock files.
I am able to manually remove lock files.
Is this a common issue in Proxmox v8.2.4? How can I resolve this problem?
Thank you for your help!
When creating or cloning a server in Proxmox, a lock file is generated under /var/lock/qemu-server. These lock files should be deleted automatically once the process is completed so that we can configure VM settings via the API. However, in our case, the lock files are not being removed automatically. This issue is occurring across almost all of our servers located in different regions even in newly installed ones.
Here are the steps I've tried:
- qm unlock <vmid> - This command does not remove the lock files.
Code:root@pve01:/var/lock/qemu-server# ls -l total 0 -rwxr-xr-x 1 root root 0 Jun 28 03:05 lock-100.conf -rwxr-xr-x 1 root root 0 Jun 28 03:06 lock-101.conf -rwxr-xr-x 1 root root 0 Jun 28 03:25 lock-105.conf -rwxr-xr-x 1 root root 0 Jun 28 03:31 lock-107.conf -rwxr-xr-x 1 root root 0 Jun 28 03:05 lock-265.conf root@pve01:/var/lock/qemu-server# qm unlock 105 root@pve01:/var/lock/qemu-server# ls -l total 0 -rwxr-xr-x 1 root root 0 Jun 28 03:05 lock-100.conf -rwxr-xr-x 1 root root 0 Jun 28 03:06 lock-101.conf -rwxr-xr-x 1 root root 0 Jun 28 03:25 lock-105.conf -rwxr-xr-x 1 root root 0 Jun 28 03:31 lock-107.conf -rwxr-xr-x 1 root root 0 Jun 28 03:05 lock-265.conf
2. qm destroy <vmid> - This command also does not remove the lock files.
Code:
root@pve01:/var/lock/qemu-server# ls -l
total 0
-rwxr-xr-x 1 root root 0 Jun 28 03:05 lock-100.conf
-rwxr-xr-x 1 root root 0 Jun 28 03:06 lock-101.conf
-rwxr-xr-x 1 root root 0 Jun 28 03:25 lock-105.conf
-rwxr-xr-x 1 root root 0 Jun 28 03:31 lock-107.conf
-rwxr-xr-x 1 root root 0 Jun 28 03:05 lock-265.conf
root@pve01:/var/lock/qemu-server# qm destroy 107
Logical volume "vm-107-disk-0" successfully removed.
root@pve01:/var/lock/qemu-server# ls -l
total 0
-rwxr-xr-x 1 root root 0 Jun 28 03:05 lock-100.conf
-rwxr-xr-x 1 root root 0 Jun 28 03:06 lock-101.conf
-rwxr-xr-x 1 root root 0 Jun 28 03:25 lock-105.conf
-rwxr-xr-x 1 root root 0 Jun 28 03:31 lock-107.conf
-rwxr-xr-x 1 root root 0 Jun 28 03:05 lock-265.conf
I am able to manually remove lock files.
Is this a common issue in Proxmox v8.2.4? How can I resolve this problem?
Thank you for your help!