<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 01/18/2017 04:45 PM, Marco Marino
wrote:<br>
</div>
<blockquote
cite="mid:CAFHVVuKRcGQK+uGviH6+iGkv-ACzQV6gw838Oe7bH8NCDswcKA@mail.gmail.com"
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/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>
Yes<br>
<blockquote
cite="mid:CAFHVVuKRcGQK+uGviH6+iGkv-ACzQV6gw838Oe7bH8NCDswcKA@mail.gmail.com"
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>
locking_type =3<br>
use_lvmetad = 0<br>
<blockquote
cite="mid:CAFHVVuKRcGQK+uGviH6+iGkv-ACzQV6gw838Oe7bH8NCDswcKA@mail.gmail.com"
type="cite">
<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="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="http://lists.clusterlabs.org/mailman/listinfo/users">http://lists.clusterlabs.org/mailman/listinfo/users</a>
Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</a>
</pre>
</blockquote>
<br>
</body>
</html>