<div dir="ltr">Thanks your replay. I will join the <span style="color:rgb(0,0,0)">Clusterlabs users list.</span><div class="gmail_extra"><br><div class="gmail_quote">2016-08-26 13:04 GMT+08:00 Digimer <span dir="ltr"><<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5">On 25/08/16 11:59 AM, David Teigland wrote:<br>
> On Thu, Aug 25, 2016 at 09:50:24AM +0800, su liu wrote:<br>
>> I have a question about lvm2 cluster, The scene is that I try to imitate<br>
>> FCSAN by mapping a rbd volume to two compute node, Then I using the rbd<br>
>> volume to  create a PV and VG.I stoped the lvmetad daemon on the compute<br>
>> nodes. Then I find that when I operating the VG on one compute node, the<br>
>> changes can also be aware on another compute nodes.<br>
>><br>
>> But this docment(<a href="http://www.tldp.org/HOWTO/LVM-HOWTO/sharinglvm1.html" rel="noreferrer" target="_blank">http://www.tldp.org/<wbr>HOWTO/LVM-HOWTO/sharinglvm1.<wbr>html</a>) says<br>
>> that "*LVM is not cluster aware".*<br>
>><br>
>> My question is that can I use the method to achieve the case that I create<br>
>> or delete lv on one node whlie other compute node can using the lvs?<br>
>><br>
>> Can anybody explain this?<br>
><br>
> It's not safe to use lvm on shared storage without some extra mechanism to<br>
> protect the data or coordinate access among hosts.  There are multiple<br>
> ways, depending on what sort of sharing/coordination you want to use:<br>
><br>
> - use system ID to protect VGs from other hosts,<br>
>   <a href="http://man7.org/linux/man-pages/man7/lvmsystemid.7.html" rel="noreferrer" target="_blank">http://man7.org/linux/man-<wbr>pages/man7/lvmsystemid.7.html</a><br>
><br>
> - use lvmlockd to coordinate sharing with sanlock or dlm (this is new),<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>
> - use clvm to coordinate sharing with dlm (this is old)<br>
>   <a href="http://man7.org/linux/man-pages/man8/clvmd.8.html" rel="noreferrer" target="_blank">http://man7.org/linux/man-<wbr>pages/man8/clvmd.8.html</a><br>
<br>
</div></div>It's not at all old. Or rather, it's not "old" in the sense that it's<br>
not used or developed anymore. It's still an active part of the HA<br>
cluster tool kit. DLM was just broken out to be stand-alone when<br>
corosync went v2 as part of the merger of the old cman/rgmanager to<br>
pacemaker migration.<br>
<div class=""><div class="h5"><br>
--<br>
Digimer<br>
Papers and Projects: <a href="https://alteeve.ca/w/" rel="noreferrer" target="_blank">https://alteeve.ca/w/</a><br>
What if the cure for cancer is trapped in the mind of a person without<br>
access to education?<br>
</div></div></blockquote></div><br></div></div>