From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DDD745EDEA for ; Mon, 5 Mar 2018 08:38:00 +0000 (UTC) Received: from mail-qk0-f175.google.com (mail-qk0-f175.google.com [209.85.220.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9DBC383F3E for ; Mon, 5 Mar 2018 08:37:59 +0000 (UTC) Received: by mail-qk0-f175.google.com with SMTP id g2so19640444qkd.12 for ; Mon, 05 Mar 2018 00:37:59 -0800 (PST) MIME-Version: 1.0 From: Damon Wang Date: Mon, 5 Mar 2018 16:37:58 +0800 Message-ID: Content-Type: multipart/alternative; boundary="001a114a855c4256470566a63e7a" Subject: [linux-lvm] [lvmlockd] Refresh lvmlockd leases after sanlock changes Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: linux-lvm@redhat.com --001a114a855c4256470566a63e7a Content-Type: text/plain; charset="UTF-8" Hi all, I made a environment lvm + lvmlockd + sanlock. After active a lv with exclusive, we can see lock status via "lvmlockctl -i" or "sanlock status" and it must be agreed. But if use "sanlock client release -r xxxxxxx" to release the lock manually, "lvmlockctl -i" shows as previous which means lvmlockd still thinks the lock held, meanwhile other hosts now can get the lock. So is there any way to refresh lock lease inside lvmlockd? Thanks! Damon P.S Why I have such question and environment? I want to run vms on some hosts with a SAN, my plan is all hosts will login to SAN and provide a lun as lvm pv. Each vm gets a thin lv from lvm as root volume, and maybe some other thin lvs as data volume. So lvmlockd will assurance only one host will change metadata at same time, and lvmthin will provide thin provision. But if want to live migrate the vm, it could be difficult since thin lv can only be exclusive active on one host, if you want to active on another host, the only way I find is use sanlock to release it manually. If you have a better way, please tell me and thanks a loooot !!! --001a114a855c4256470566a63e7a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

I made a environment lvm + lvml= ockd + sanlock.

After active a lv with exclusive, = we can see lock status via "lvmlockctl -i" or "sanlock statu= s" and it must be agreed.

But if use "sa= nlock client release -r xxxxxxx" to release the lock manually, "l= vmlockctl -i" shows as previous which means lvmlockd still thinks the = lock held, meanwhile other hosts now can get the lock.

=
So is there any way to refresh lock lease inside lvmlockd?
<= br>
Thanks!

Damon
=C2=A0
=

P.S

Why I have such question a= nd=C2=A0environment?

I want to run vms on some hosts with a= SAN, my plan is all hosts will login to SAN and provide a lun as lvm pv. E= ach vm gets a thin lv from lvm as root volume, and maybe some other thin lv= s as data volume. So lvmlockd will assurance only one host will change meta= data at same time, and lvmthin will provide thin provision.

<= /div>
But if want to live migrate the vm, it could be difficult since t= hin lv can only be exclusive active on one host, if you want to active on a= nother host, the only way I find is use sanlock to release it manually. If = you have a better way, please tell me and thanks a loooot !!!
--001a114a855c4256470566a63e7a--