<div dir="ltr"><div>Ferenc, regarding the flag use_lvmetad in /usr/lib/ocf/resource.d/heartbeat/LVM I read:<br><br>        "#lvmetad is a daemon that caches lvm metadata to improve the <br>        # performance of LVM commands. This daemon should never be used when<br>        # volume groups exist that are being managed by the cluster. The lvmetad<br>        # daemon introduces a response lag, where certain LVM commands look like<br>        # they have completed (like vg activation) when in fact the command<br>        # is still in progress by the lvmetad.  This can cause reliability issues<br>        # when managing volume groups in the cluster.  For Example, if you have a<br>        # volume group that is a dependency for another application, it is possible<br>        # the cluster will think the volume group is activated and attempt to start<br>        # the application before volume group is really accesible... lvmetad is bad."<br><br></div>in the function LVM_validate_all()<br><div>Anyway, it's only a warning but there is a good reason. I'm not an expert, I'm studying for a certification and I have a lot of doubts. <br></div><div>Thank you for your help<br></div><div>Marco<br></div><div> <br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-18 11:03 GMT+01:00 Ferenc Wágner <span dir="ltr"><<a href="mailto:wferi@niif.hu" target="_blank">wferi@niif.hu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Marco Marino <<a href="mailto:marino.mrc@gmail.com">marino.mrc@gmail.com</a>> writes:<br>
<br>
> I agree with you for<br>
> use_lvmetad = 0 (setting it = 1 in a clustered environment is an error)<br>
<br>
</span>Where does this information come from?  AFAIK, if locking_type=3 (LVM<br>
uses internal clustered locking, that is, clvmd), lvmetad is not used<br>
anyway, even if it's running.  So it's best to disable it to avoid<br>
warning messages all around.  This is the case with active/active<br>
clustering in LVM itself, in which Pacemaker isn't involved.<br>
<br>
On the other hand, if you use Pacemaker to do active/passive clustering<br>
by appropriately activating/deactivating your VG, this isn't clustering<br>
from the LVM point of view, you don't set the clustered flag on your VG,<br>
don't run clvmd and use locking_type=1.  Lvmetad should be perfectly<br>
fine with this in principle (unless it caches metadata of inactive VGs,<br>
which would be stupid, but I never tested this).<br>
<span class=""><br>
> but I think I have to set<br>
> locking_type = 3 only if I use clvm<br>
<br>
</span>Right.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Feri<br>
</font></span></blockquote></div><br></div>