Sanlock locking failed for readonly devices and sanlock doesn't start without watchdog
Issue
- On a RHEL 6.3 KVM host with sanlock installed on it:
# rpm -qa | grep sanlock
sanlock-python-2.3-1.el6.x86_64
sanlock-debuginfo-2.3-1.el6.x86_64
sanlock-lib-2.3-1.el6.x86_64
sanlock-2.3-1.el6.x86_64
libvirt-lock-sanlock-0.9.10-21.el6_3.1.x86_64
- Trying to create a new VM installing it from a local ISO file, causes this error:
libvirtError: internal error unsupported configuration: Readonly leases are not supported
- This is the
/etc/libvirt/qemu-sanlock.conf:
host_id = 802
auto_disk_leases = 1
#require_lease_for_disks = 0
ignore_readonly_and_shared_disks = 1
NOTE: It seems that the last entry is ignored.
- further more it is not possible to start sanlcok without a watchdog:
# cat /etc/sysconfig/sanlock
SANLOCKOPTS="-w 0"
- In this case there is a sanlock segfault.
Environment
- Red Hat Enterprise Linux 6
- KVM
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.