<div dir="ltr">Thanks all people<br>I understand reboot/fencing is mandatory <br>I hope the visibility might be better in external locking tool like redis<div>With lvmlockd I find no deb available for ubuntu, and documentations for clvm to handle an issue is difficult to find</div><div>Could somebody redirect me for a good documentation on clvm?<br>Let me compile lvmlockd and give it a shot<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 29, 2017 at 9:53 PM, David Teigland <span dir="ltr"><<a href="mailto:teigland@redhat.com" target="_blank">teigland@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Aug 29, 2017 at 11:25:19AM +0200, Zdenek Kabelac wrote:<br>
> Dne 28.8.2017 v 14:41 Kalyana sundaram napsal(a):<br>
> > We have a shared iscsi disk at all our boxes, with one vg. We are using<br>
> > clvm to manage locks to create extend activate delete list.<br>
> > CLVM is tedious to manage especially especially due to reboot if locking<br>
> > is struck somewhere. Instead we are thinking of modifying file_locking.c<br>
> > to get lock with distributed store like zookeeper or redis and on<br>
> > success run the above command, on failure backoff and try again<br>
> > The external ocking code will sit at _file_lock_resource, case LCK_VG.<br>
> > Do you think its risky. Is there some other way people handle it?<br>
> ><br>
><br>
> Hi<br>
><br>
> Have you considered  usage of 'lvmlockd' and it's sanlock interface<br>
> (where locks are maintained on shared storage device).<br>
<br>
</span>And lvmlockd can use different lock managers.  Currently it supports<br>
sanlock (where the locks are kept in the VG's storage and networking is<br>
not used), or the dlm (which uses the network and requires corosync).  You<br>
also could try adding another lock manager option to lvmlockd.<br>
<br>
See here for more info:<br>
<a href="http://man7.org/linux/man-pages/man8/lvmlockd.8.html" rel="noreferrer" target="_blank">http://man7.org/linux/man-<wbr>pages/man8/lvmlockd.8.html</a><br>
<br>
I think people will find lvmlockd works much better than clvm.<br>
<a href="https://www.redhat.com/archives/linux-lvm/2016-November/msg00022.html" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>archives/linux-lvm/2016-<wbr>November/msg00022.html</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Kalyanasundaram<br><a href="http://blogs.eskratch.com/" target="_blank">http://blogs.eskratch.com/</a><div><a href="https://github.com/kalyanceg/" target="_blank">https://github.com/kalyanceg/</a><br></div></div>
</div></div></div>