Qcow2 image stuck as locked after host crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Invalid
|
Undecided
|
Unassigned |
Bug Description
After a host crash, the qcow2 image of the VM, stored on a remote NFS share, has become inaccessible. Libvirt/QEMU reports that 'failed to get "write" lock\nIs another process using the image [/path/
I'm currently attempting to fix this by converting the image via 'qemu-img convert -U -f qcow2 -O qcow2 image.qcow2 image_2.gcow2', though this will likely take some time.
Using QEMU 3.1.0
I wonder if your QEMU is using OFD locks or not, which might depend on a few things:
-Are you using a distributed QEMU or one you've built yourself?
-What glibc was it compiled against?
-What version of Linux are you running under?
I would have thought that after the process that held the lock died that the lock would be released, but perhaps it's more complicated than that because of NFS, perhaps there's a very long timeout involved somewhere?