search for: lock_manag

Displaying 17 results from an estimated 17 matches for "lock_manag".

Did you mean: lock_manager
2019 Dec 28
3
Locking without virtlockd (nor sanlock)?
...ification 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 plugin". As "lock_manager" is commented in my qemu.conf file, I was expecting that no locks were used to protect my virtual disk from guest double-start or misassignement to other vms. However, "cat /proc/locks" shows the following (17532905 being the vdisk inode): [root@localhost tmp]# cat /proc/locks...
2016 Mar 30
0
Re: VM crash and lock manager
...but I never succeed in removing lock on the VMs. >> >> sanlock client rem_lockspace -r >> __LIBVIRT__DISKS__:b90b9c61e2d6413077205907ffb3281a:/var/lib/libvirt/images/POOL_ADMIN/sanlock/b90b9c61e2d6413077205907ffb3281a:0:4 >> -p 9383 >> >> So I'm trying to use lock_manager to replace the sanlock but >> lock_manager doesn't have tools to retrieve the lock / VM name in >> case of failure or crash. >> >> My questions are, is there a way to release or to force to release a >> lock with sanlock even if the qemu process is defunc and a w...
2016 Mar 29
1
VM crash and lock manager
2013 Oct 11
2
upstart script for virtlockd
...t-script=upstart Libvirtd upstart script is actually well generated but I can't see nothing about virtlockd... or am I blind ? :) Nevertheless, running virtlockd -d && service libvirtd restart works fine. Am I wrong thinking that editing qemu-lockd.conf with my needs and qemu.conf with lock_manager="lockd" was enough ? Thank you for your help.
2018 Jul 03
1
Breaking a virtlockd lock?
I have several Qemu/kvm servers running VMs hosted on an NFS share, and am using virtlockd. (lock_manager = "lockd" in qemu.conf) After a power failure, one of the VMs will not start, claiming that it is locked. How do I get out of this? thanks, Steve Gaarder System Administrator, Dept of Mathematics Cornell University, Ithaca, NY, USA gaarder@math.cornell.edu
2019 Dec 28
0
Re: Locking without virtlockd (nor sanlock)?
...ocking 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 plugin". As "lock_manager" is commented in > my qemu.conf file, I was expecting that no locks were used to protect > my virtual disk from guest double-start or misassignement to other > vms. > > However, "cat /proc/locks" shows the following (17532905 being the > vdisk inode): > [root...
2020 Jun 08
2
Disable virtlockd
Hello! Is it possible to disable the virtlockd daemon or VM file locking? I start qemu with a -snapshot option which prevents and changes to the disk image anyways. Using <readonly /> is not supported for IDE disks. Another option would be to not require locking on the NFS share, but i have no idea how. Can someone help me with that? Regards Felix Queißner
2020 Jan 03
2
Re: Locking without virtlockd (nor sanlock)?
...; > 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 plugin". As "lock_manager" is commented in > > my qemu.conf file, I was expecting that no locks were used to protect > > my virtual disk from guest double-start or misassignement to other > > vms. > > > > However, "cat /proc/locks" shows the following (17532905 being the vdisk...
2016 Mar 31
2
How is calculate the lock with lockd_manager
2016 Mar 31
0
Re: How is calculate the lock with lockd_manager
On Thu, Mar 31, 2016 at 12:05:07PM +0200, villeneu@kassis.univ-brest.fr wrote: > Hello > > I use lock_manager with libvirt 1.3 and > I would like to know how is exactly calculate the hash SHA256. I would > create a table > to retreive the name with the hash in case of crash to release manualy the > lock. Do you mean in the case of a host crash, and if so what filesystem ? If you are using N...
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 = 1disk_lease_dir = "/var/lib/libvirt/sanlock"host_id = 1user = "sanlock"group = "sanlock"* # systemctl restart sanlock # systemctl restart libvirtd 2. Start a VM with iSCSI disk and check *resource f...
2020 Jun 09
0
Re: Disable virtlockd
On Mon, Jun 08, 2020 at 16:26:44 +0200, Felix Queißner wrote: > Hello! Hi, > > Is it possible to disable the virtlockd daemon Yes. via the 'lock_manager' option in /etc/libvirt/qemu.conf >or VM file locking? I If you mean the image locking provided by qemu, then no, libvirt doesn't have provisions to disable it. > start qemu with a -snapshot option which prevents and changes to the > disk image anyways. Note that starting fro...
2013 Oct 11
0
Re: upstart script for virtlockd
...ora had already moved over to systemd, so no one has bothered to write an upstart init script for it yet. Patches welcome. > Nevertheless, running virtlockd -d && service libvirtd restart works fine. > Am I wrong thinking that editing qemu-lockd.conf with my needs and qemu.conf with lock_manager="lockd" was enough ? Yes, I think that's a reasonable workaround in the meantime. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
2013 Oct 21
1
Re: upstart script for virtlockd
...ora had already moved over to systemd, so no one has bothered to write an upstart init script for it yet. Patches welcome. > Nevertheless, running virtlockd -d && service libvirtd restart works fine. > Am I wrong thinking that editing qemu-lockd.conf with my needs and qemu.conf with lock_manager="lockd" was enough ? Yes, I think that's a reasonable workaround in the meantime. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
2017 Nov 15
2
virtlock - a VM goes read-only
...ll. However, starting a few weeks ago I have been trying to implement virtlock in order to prevent a VM running on 2 hypervisors at the same time. Here is the description how the environment looks like in terms of virtlock configuration on both hypervisors: -- Content of /etc/libvirt/qemu.conf -- lock_manager = "lockd" Only the above line is uncommented for direct locking. # libvirtd --version; python -c "import platform; print(platform.platform())"; virtlockd -V libvirtd (libvirt) 3.2.0 Linux-3.10.0-693.2.2.el7.x86_64-x86_64-with-centos-7.4.1708-Core virtlockd (libvirt) 3.2.0 #...
2018 Dec 07
3
Re: concurrent migration of several domains rarely fails
On 12/6/18 10:12 AM, Lentes, Bernd wrote: > >> Hi, >> >> i have a two-node cluster with several domains as resources. During testing i >> tried several times to migrate some domains concurrently. >> Usually it suceeded, but rarely it failed. I found one clue in the log: >> >> Dec 03 16:03:02 ha-idg-1 libvirtd[3252]: 2018-12-03 15:03:02.758+0000: 3252:
2012 Apr 08
0
NFS + sanlock problems
...e for filesystems ( net set up as a libvirt storage pool ) and one for sanlock. sanlock is started without watchdog. /etc/libvirt/qemu-sanlock.conf: auto_disk_leases = 1 disk_lease_dir = "/opt/mln/sanlock" host_id = 51 ( host_id is 52 on H2 ) cat /etc/libvirt/qemu.conf | grep sanlock lock_manager = "sanlock" A virtual machine is created ( with virsh create ) on H1 using the following xml: <domain type='kvm' > <name>rhel1.locktest</name> <memory>524288</memory> <vcpu></vcpu> <os> <type arch='x86_64' >hvm<...