DEV Community

Fega Suseno
Fega Suseno

Posted on

Fix Error "trying to acquire cfs lock 'storage-vm_pool'" in Proxmox [Solved]

Error "trying to acquire cfs lock 'storage-vm_pool'" biasanya terjadi di Proxmox ketika ada proses yang mencoba mengakses atau mengubah konfigurasi storage secara bersamaan. Ini bisa disebabkan oleh:

  • Konflik Akses: Ada proses lain (misalnya GUI atau CLI) yang sedang mengedit storage atau task yang masih berjalan atau macet.
  • Lock yang Tidak Dilepas: Kadang, setelah gagal atau terhenti, lock tetap tersangkut di sistem.
  • Masalah dengan Cluster Filesystem (CFS) di Proxmox Cluster: Jika menjalankan Proxmox dalam cluster, masalah ini bisa terjadi karena sinkronisasi lambat atau node tidak responsif.
  1. Coba dengan menghapus task yang tersangkut Cek log task yg masih tersangkut
pvesh get /cluster/tasks
Enter fullscreen mode Exit fullscreen mode

atau

journalctl -xe | grep storage
Enter fullscreen mode Exit fullscreen mode

lalu hapus task yg tersangkut

pvesh delete /cluster/tasks/UPID:node:timestamp:pid:uuid
Enter fullscreen mode Exit fullscreen mode
  1. Dengan merestar proxmox cluster Jika menggunakan Proxmox Cluster, coba restart layanan pve-cluster
systemctl restart pve-cluster
systemctl restart pvedaemon
systemctl restart pvestatd
Enter fullscreen mode Exit fullscreen mode

lalu cek apakah masih error

  1. Hapus lock secara manual cek terlebih dahulu apakah ada file lock yang tersangkut
ls -l /var/lock/pve-manager
Enter fullscreen mode Exit fullscreen mode

lalu hapus file .lock dengan perintah rm -rf seperti biasa.
Lakukan restart cluster

systemctl restart pveproxy pvedaemon pvestatd
Enter fullscreen mode Exit fullscreen mode

Cek kembali sinkronisasi cluster
Jika menggunakan ceph atau nfs bisa cek dengan menggunakan

pvesm status
Enter fullscreen mode Exit fullscreen mode

jika menggunakan proxmox cluster bisa dengan mengecek

pvecm status
Enter fullscreen mode Exit fullscreen mode

Seharusnya dengan beberapa cara di atas task yang tersangkut sudah hilang dan bisa di pakai kembali

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more