search for: sanlock

Displaying 20 results from an estimated 243 matches for "sanlock".

2012 Mar 13
2
libvirt with sanlock
Hello, I configured libvirtd with the sanlock lock manager plugin: # rpm -qa | egrep "libvirt-0|sanlock-[01]" libvirt-lock-sanlock-0.9.4-23.el6_2.4.x86_64 sanlock-1.8-2.el6.x86_64 libvirt-0.9.4-23.el6_2.4.x86_64 # egrep -v "^#|^$" /etc/libvirt/qemu-sanlock.conf auto_disk_leases = 1 disk_lease_dir = "/var/lib/libvirt/...
2012 May 08
1
release open_disk error
Hello, I wonder what the "open error -1" / "release open_disk error" messages in sanlock.log actually mean. I saw these messages in the log on a KVM host that rebooted, and after running "/usr/sbin/virt-sanlock-cleanup" on that host. The resources where disks from 2 guests running on another KVM host. So in fact the disks are still in use, bot got cleaned up by the other KV...
2017 Nov 08
2
Does libvirt-sanlock support network disk?
Hello, As we know, libvirt sanlock support file type storage. I wonder *if it supports network storage.* I tried *iSCSI*, but found it didn't generate any resource file: Version: *qemu-2.10 libvirt-3.9 sanlock-3.5* 1. Set configuration: qemu.conf: *lock_manager = "sanlock"* qemu-sanlock.conf: *auto_disk_leases = 1...
2013 Jan 31
1
Sanlock gives up lock when VM is paused
Hello, I'm using libvirt and sanlock on qemu-kvm guests. Each guest has it's own Logical Volume for it's root filesystem. Sanlock is configured and working and prevents me from starting the same VM twice on multiple nodes and corrupting it's root filesystem. Each VM's domain XML resides on 2 servers that share the...
2016 Mar 31
0
CEBA-2016:0541 CentOS 7 sanlock BugFix Update
...and Bugfix Advisory 2016:0541 Upstream details at : https://rhn.redhat.com/errata/RHBA-2016-0541.html The following updated files have been uploaded and are currently syncing to the mirrors: ( sha256sum Filename ) x86_64: 96a4bc7ef0285522786a39d02c0b427656aaa71e1abb779a75c65c2e1c600748 fence-sanlock-3.2.4-2.el7_2.x86_64.rpm cbede0824cee328ff9f833fd2e50c6464850d2729e1212eae49148e0f1d8625d sanlk-reset-3.2.4-2.el7_2.x86_64.rpm a6abc9271230546fdc086e170313cd7d98f03097737fcc4467cb85dffcc4b2fb sanlock-3.2.4-2.el7_2.x86_64.rpm bbc748e729eccf047477058b62a0414b4a287353cec7b340c7b46b5209458109 sanloc...
2012 Feb 22
1
[libvirt] a question about sanlock
Hi Daniel, I got a question about lock manager, if I enable 'sanlock' in qemu.conf and uncomment 'auto_disk_leases = 1' in qemu-sanlock.conf then restart libvirtd service, libvirtd will be dead, I know I should also uncomment 'host_id = 1' in qemu-sanlock.conf, because I enable 'auto_disk_leases'. The question is the libvirtd must die d...
2013 May 03
1
sanlockd, virtlock and GFS2
Hi, I'm trying to put in place a KVM cluster (using clvm and gfs2), but I'm running into some issues with either sanlock or virtlockd. All virtual machines are handled via the cluster (in /etc/cluser/cluster.conf) but I want some kind of locking to be in place as extra security measurement. Sanlock ======= At first I tried sanlock, but it seems if one node goes down unexpectedly, sanlock sometimes blocks everythi...
2019 Nov 22
2
Re: [PATCH nbdkit v2 02/10] python: Add various constants to the API.
...onding to various flags. */ > + PyModule_AddIntConstant (m, "THREAD_MODEL_SERIALIZE_CONNECTIONS", > + NBDKIT_THREAD_MODEL_SERIALIZE_CONNECTIONS); This can fail and needs cleanup. Very unlikely and a lot of code in the standard library have this issue. In sanlock we do: if (PyModule_AddIntConstant(m, "LSFLAG_ADD", SANLK_LSF_ADD)) return -1; And the caller decref the module object and return NULL. See https://github.com/nirs/sanlock/blob/53f7f0284c084ac2e4542fd1f71d0406075adb5d/python/sanlock.c#L1846 https://github.com/nirs/sanlock/b...
2016 Mar 30
0
Re: VM crash and lock manager
...e list >> >> If I try to remove all the file associated with the VM in /var/run or >> /var/lib....channel .. It doesn't give results The >> VM is still running as defunct and after a libvirt restart , libvirt >> and virsh command are pending. >> >> With sanlock it's a problem because the is never release and it's >> impossible to restart the VM. I can't remove the VM in the sanlock >> list. I tried kill commands, rm ... but without a real success. >> >> I tried many command with sanlock perhaps I misunderstood some >...
2012 Sep 06
1
How to properly test watchdog?
CentOS 6 Hi all, I am working on setting up sanlock + watchdog on a 2 node KVM pair. Sanlock is working beautifully and is preventing access to the VM disks by more than one process as it should across both boxes. I am attempting to test failure scenarios involving watchdog, but I am having a hard time getting it to actually reset the server. I...
2013 Mar 09
0
Sanlock disk leases on drbd/gfs2 volume
Hi all, I have a 2 node cluster that consists of the following: * 1 drbd/gfs2 partition that holds VM images and XML * Sanlock configured with the disk lease directory on the same drbd/gfs partition Everything is working well, aside from one small issue I ran into. When testing fencing, on one particular test GFS began replaying the journal for the remaining node, and in the middle of it rgmanager attempted to recove...
2016 Mar 29
1
VM crash and lock manager
2019 Nov 22
1
Re: [PATCH nbdkit v2 02/10] python: Add various constants to the API.
...t;THREAD_MODEL_SERIALIZE_CONNECTIONS", > > > + NBDKIT_THREAD_MODEL_SERIALIZE_CONNECTIONS); > > > > This can fail and needs cleanup. Very unlikely and a lot of code in > > the standard library have > > this issue. > > > > In sanlock we do: > > > > if (PyModule_AddIntConstant(m, "LSFLAG_ADD", SANLK_LSF_ADD)) > > return -1; > > > > And the caller decref the module object and return NULL. > > > > See > > https://github.com/nirs/sanlock/blob/53f7f0284c084ac2e454...
2017 Nov 08
0
Re: Does libvirt-sanlock support network disk?
On Wed, Nov 08, 2017 at 02:42:35PM +0800, Han Han wrote: > Hello, > As we know, libvirt sanlock support file type storage. I wonder *if it > supports network storage.* > I tried *iSCSI*, but found it didn't generate any resource file: Correct, the code currently ignores locking for any non-local disk. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/...
2011 Nov 30
0
need help with sanlock plugin
Hi I am working with libvirt on ubuntu. I would like have sanlock feature with ubuntu. Can you please guide me on how to. -- Thanks and Regards, Upendra.M *As a leading developer of IT infrastructure software solutions, Hexagrid developed the first cloud computing<http://www.hexagrid.com/d/vxdatacenter.html>platform that directly aligns with the real-wo...
2012 Feb 23
2
lockmanager for use with clvm
Hi, i am setting up a cluster of kvm hypervisors managed with libvirt. The storage pool is on iscsi with clvm. To prevent that a vm is started on more than one hypervisor, I want to use a lockmanager with libvirt. I could only find sanlock as lockmanager, but AFSIK sanlock will not work in my setup as I don't have a shared filesystem. I have dlm running for clvm. Are there lockmanager implementations that use dlm? Or other implementations that can be used in my setup? Regards Michael Menge --------------------------------...
2012 Apr 08
0
NFS + sanlock problems
Hello list, In short: I am experiencing a problem where trying to start a VM which is allready running on a different libvirt host. Starting it fails, thanks to sanlock, but the disk dies on the original hypervisor and the vms filesystem is rendered read-only. Long version: i have the following setup: Two machines (H1 and H2) using CentOS 6.2 with the packages: qemu-kvm-0.12.1.2-2.209.el6_2.4.x86_64 libvirt-client-0.9.4-23.el6_2.7.x86_64 libvirt-0.9.4-23.el6_2....
2019 Dec 28
0
Re: Locking without virtlockd (nor sanlock)?
Il 28-12-2019 01:39 Gionatan Danti ha scritto: > Hi list, > I would like to ask a clarification about how locking works. My test > system is CentOS 7.7 with libvirt-4.5.0-23.el7_7.1.x86_64 > > Is was understanding that, by default, libvirt does not use any locks. > From here [1]: "The out of the box configuration, however, currently > uses the nop lock manager
2020 Jan 03
0
Re: Locking without virtlockd (nor sanlock)?
Il 03-01-2020 11:26 Daniel P. Berrangé ha scritto: > virtlockd also uses fcntl(), however, it doesn't have to acquire locks > on > the file/block device directly. It can use a look-aside file for > locking. > For example a path under /var/lib/libvirt/lock. This means that locks > on > block devices for /dev/sda1 would be held as >
2020 Jan 06
0
Re: Locking without virtlockd (nor sanlock)?
On Fri, Jan 03, 2020 at 14:08:03 +0000, Daniel Berrange wrote: > On Fri, Jan 03, 2020 at 02:56:50PM +0100, Gionatan Danti wrote: > > Il 03-01-2020 11:26 Daniel P. Berrangé ha scritto: [...] > > > There are some issues with libvirt's locking though where we haven't > > > always released/re-acquired locks at the correct time when dealing > > > with block