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 -------------------------------------------------------------------------------- M.Menge Tel.: (49) 7071/29-70316 Universit?t T?bingen Fax.: (49) 7071/29-5912 Zentrum f?r Datenverarbeitung mail: michael.menge at zdv.uni-tuebingen.de W?chterstra?e 76 72074 T?bingen -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5267 bytes Desc: S/MIME Signatur URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120223/e9a8aafc/attachment.p7s>
Hi Michael, The following may be helpful for you: http://fedoraproject.org/wiki/Features/VirtLockManager http://libvirt.org/locking.html Good Luck! Alex ----- Original Message ----- From: "Michael Menge" <michael.menge at zdv.uni-tuebingen.de> To: libvirt-users at redhat.com Sent: Thursday, February 23, 2012 7:56:33 PM Subject: [libvirt-users] 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 -------------------------------------------------------------------------------- M.Menge Tel.: (49) 7071/29-70316 Universit?t T?bingen Fax.: (49) 7071/29-5912 Zentrum f?r Datenverarbeitung mail: michael.menge at zdv.uni-tuebingen.de W?chterstra?e 76 72074 T?bingen _______________________________________________ libvirt-users mailing list libvirt-users at redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
On 02/23/2012 04:56 AM, Michael Menge wrote:> 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?The lock manager framework is designed to be extensible, although Dan Berrange's early attempts at an fcntl-manager [1] have not been touched in a couple months due to other more pressing issues. No one has written a manager for dlm, but it would be an interesting addition if you would like to step in and contribute code; and the fcntl-manager attempt should serve as a good starting point of how to do it. [1] https://www.redhat.com/archives/libvir-list/2011-July/msg00347.html -- Eric Blake eblake at redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 620 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120224/6c69b408/attachment.sig>