<div dir="ltr"><div><div><div><div><div><div><div>Hi Bliu, thank you.<br></div>I agree with you for<br></div>use_lvmetad = 0 (setting it = 1 in a clustered environment is an error)<br></div>but I think I have to set<br></div>locking_type = 3 only if I use clvm<br></div>In my case, I'm trying to use LVM so I think that locking_type = 1 is ok. What do you think about?<br><br></div>Furthermore, I have an application (managed as a resource in the cluster) that continously create and remove logical volumes in the cluster. Is this a problem? The application uses a custom lvm.conf configuration file where I have volume_list = [ "@pacemaker" ]<br><br></div>Thank you<br><div><br><div><br><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-18 10:12 GMT+01:00 bliu <span dir="ltr"><<a href="mailto:bliu@suse.com" target="_blank">bliu@suse.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hi, Marco</p><span class="">
<br>
<div class="m_-3946666366554990204moz-cite-prefix">On 01/18/2017 04:45 PM, Marco Marino
wrote:<br>
</div>
</span><span class=""><blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi, I'm trying to realize a cluster
with 2 nodes that manages a volume
group.<br>
</div>
Basically I have a san connected to both
nodes that exposes 1 lun. So both nodes
have a disk /dev/sdb. From one node I
did:<br>
</div>
fdisk /dev/sdb <- Create a partition
with type = 8e (LVM)<br>
</div>
pvcreate /dev/sdb1<br>
</div>
vgcreate myvg<br>
<br>
</div>
then<br>
<br>
</div>
pcs resource create halvm LVM volgrpname=myvg
exclusive=true <br>
<br>
</div>
Last command fails with an error: "LVM: myvg did not
activate correctly"<br>
<br>
</div>
Reading /usr/lib/ocf/resource.d/<wbr>heartbeat/LVM, this
happens because it seems that I need at least one
logical volume inside the volume group before create
the resource. Is this correct?<br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote></span>
Yes, you need to create pv, vg before you use cluster to manager it.<span class=""><br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Furthermore, how can I set volume_list in lvm.conf?
Actually in lvm.conf I have:<br>
</div>
</div>
</div>
</div>
</div>
</blockquote></span>
Normally, clvm is used in cluster with shared storage as:<br>
<div>locking_type = 3<br>
</div>
use_lvmetad = 0<br>
<blockquote type="cite"><span class="">
<div dir="ltr">
<div>
<div>
<div>locking_type = 1<br>
</div>
use_lvmetad = 1<br>
</div>
volume_list = [ "vg-with-root-lv" ]<br>
<br>
<br>
</div>
Thank you<br>
<div>
<div>
<div>
<div>
<div>
<div>
<div><br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_-3946666366554990204mimeAttachmentHeader"></fieldset>
<br>
</span><span class=""><pre>______________________________<wbr>_________________
Users mailing list: <a class="m_-3946666366554990204moz-txt-link-abbreviated" href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a>
<a class="m_-3946666366554990204moz-txt-link-freetext" href="http://lists.clusterlabs.org/mailman/listinfo/users" target="_blank">http://lists.clusterlabs.org/<wbr>mailman/listinfo/users</a>
Project Home: <a class="m_-3946666366554990204moz-txt-link-freetext" href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a>
Getting started: <a class="m_-3946666366554990204moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="m_-3946666366554990204moz-txt-link-freetext" href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a>
</pre>
</span></blockquote>
<br>
</div>
<br>______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><br></div>