[libvirt-users] Fwd: Re: Unable to acquire lock

Accidentally sent to OP only. This has been with 0.8.7 on CentOS 6 CR that Ive had the problem. ---------- Forwarded message ---------- From: "Trey Dockendorf" <treydock@gmail.com> Date: Oct 24, 2011 12:31 AM Subject: Re: [libvirt-users] Unable to acquire lock To: "Jatin Kumar" <cs5090243@cse.iitd.ernet.in> On Mon, Oct 24, 2011 at 12:05 AM, Jatin Kumar <cs5090243@cse.iitd.ernet.in>wrote:
Hello, I am trying to execute virsh commands on a host but it is giving errors due to failure in acquiring lock.
root@kvm01:~# virsh suspend blindone error: Failed to suspend domain blindone error: Timed out during operation: cannot acquire state change lock
Any suggestions how can we figure out possible reasons.
-- Jatin
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
I've run into this a few times when a snapshot hangs. Unfortunately I can't offer much advice on why it happens, but increasing log verbosity may help troubleshoot it. These are the relevant lines I use in /etc/libvirt/libvirtd.conf log_level = 2 log_filters="2:remote 2:event" log_outputs="2:file:/var/log/libvirt/libvirtd.log" Be careful with level 1 alerts...I generated a 100GB text log in 3 days. To fix that problem and unlock a VM, you need to kill libvirt, remove the PID files and start libvirt # service libvirtd stop # rm -rfv /var/run/libvirt # service libvirtd start More information here, https://bugzilla.redhat.com/show_bug.cgi?id=676205 - Trey

On 10/24/2011 01:42 PM, Trey Dockendorf wrote:
Accidentally sent to OP only.
This has been with 0.8.7 on CentOS 6 CR that Ive had the problem.
There are some known locking bugs in 0.8.7, that have been fixed in the meantime. You may want to try 0.9.4 from the RHEL 6.2 beta instead, which has tackled a lot of the locking bugs. Short of that, the only solution is to restart libvirtd (the problem is that the older releases had some bugs where locks were improperly released if the domain exited in the middle of a command). -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
participants (2)
-
Eric Blake
-
Trey Dockendorf