<div dir="ltr">Thanks for your replay,  This snapshot factor will seriously affect my application.<div><div><br></div><div>then, because now I have not a stonith device and I want to verify the basic process of snapshot a clustered LV.</div><div><br></div><div>I have a more question:</div><div><br></div><div>After I create a VG: cinder-volumes on controller node, I can see it throuth vgs command on both controller and compute </div><div>1 nodes. then i create a LV:volume-1b0ea468-37c8-4b47-a6fa-6cce65b068b5. Then I execute the lvs command on both nodes:</div><div><br></div><div><div>[root@controller ~]# lvs</div><div>  LV                                          VG             Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert</div><div>  volume-1b0ea468-37c8-4b47-a6fa-6cce65b068b5 cinder-volumes -wi-a----- 1.00g                                                    </div><div>[root@controller ~]# </div><div>[root@controller ~]# </div><div>[root@controller ~]# </div><div>[root@controller ~]# ll /dev/cinder-volumes/</div><div>total 0</div><div>lrwxrwxrwx 1 root root 7 Dec  5 21:29 volume-1b0ea468-37c8-4b47-a6fa-6cce65b068b5 -&gt; ../dm-0</div></div><div><br></div><div><br></div><div><br></div><div><div>[root@compute1 ~]# lvs</div><div>  LV                                          VG             Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert</div><div>  volume-1b0ea468-37c8-4b47-a6fa-6cce65b068b5 cinder-volumes -wi------- 1.00g                                                    </div><div>[root@compute1 ~]# </div><div>[root@compute1 ~]# </div><div>[root@compute1 ~]# ll /dev/cinder-volumes</div><div>ls: cannot access /dev/cinder-volumes: No such file or directory</div><div>[root@compute1 ~]# </div></div><div><br></div><div><br></div><div><br></div><div>But it seems that the LV can&#39;t be exist on the compute1 node. My question is that how to access the LV on the compute1 node?</div><div><br></div><div>thanks very much!</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-06 9:26 GMT+08:00 Digimer <span dir="ltr">&lt;<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 05/12/16 08:16 PM, su liu wrote:<br>
&gt; *Hi all,<br>
&gt;<br>
&gt; *<br>
&gt; *I am new to pacemaker and I have some questions about the clvmd +<br>
<span class="">&gt; pacemaker + corosync. I wish you could explain it for me if you are<br>
&gt; free. thank you very much!<br>
&gt;<br>
</span>&gt; *<br>
&gt; *I have 2 nodes and the pacemaker&#39;s status is as follows:*<br>
<div><div class="h5">&gt;<br>
&gt; [root@controller ~]# pcs status --full<br>
&gt; Cluster name: mycluster<br>
&gt; Last updated: Mon Dec  5 18:15:12 2016        Last change: Fri Dec  2<br>
&gt; 15:01:03 2016 by root via cibadmin on compute1<br>
&gt; Stack: corosync<br>
&gt; Current DC: compute1 (2) (version 1.1.13-10.el7_2.4-44eb2dd) - partition<br>
&gt; with quorum<br>
&gt; 2 nodes and 4 resources configured<br>
&gt;<br>
&gt; Online: [ compute1 (2) controller (1) ]<br>
&gt;<br>
&gt; Full list of resources:<br>
&gt;<br>
&gt;  Clone Set: dlm-clone [dlm]<br>
&gt;      dlm    (ocf::pacemaker:controld):    Started compute1<br>
&gt;      dlm    (ocf::pacemaker:controld):    Started controller<br>
&gt;      Started: [ compute1 controller ]<br>
&gt;  Clone Set: clvmd-clone [clvmd]<br>
&gt;      clvmd    (ocf::heartbeat:clvm):    Started compute1<br>
&gt;      clvmd    (ocf::heartbeat:clvm):    Started controller<br>
&gt;      Started: [ compute1 controller ]<br>
&gt;<br>
&gt; Node Attributes:<br>
&gt; * Node compute1 (2):<br>
&gt; * Node controller (1):<br>
&gt;<br>
&gt; Migration Summary:<br>
&gt; * Node compute1 (2):<br>
&gt; * Node controller (1):<br>
&gt;<br>
&gt; PCSD Status:<br>
&gt;   controller: Online<br>
&gt;   compute1: Online<br>
&gt;<br>
&gt; Daemon Status:<br>
&gt;   corosync: active/disabled<br>
&gt;   pacemaker: active/disabled<br>
&gt;   pcsd: active/enabled<br>
</div></div>&gt; *<br>
&gt; *<br>
<br>
You need to configure and enable (and test!) stonith. This is doubly-so<br>
with clustered LVM/shared storage.<br>
<br>
&gt; *I create a lvm on controller node and it can be seen on the compute1<br>
<span class="">&gt; node immediately with &#39;lvs&#39; command. but the lvm it not activate on<br>
&gt; compute1.<br>
&gt;<br>
</span>&gt; *<br>
&gt; *then i want to create a snapshot of the lvm, but failed with the error<br>
&gt; message:*<br>
&gt;<br>
&gt; /### volume-4fad87bb-3d4c-4a96-<wbr>bef1-8799980050d1 must be active<br>
<span class="">&gt; exclusively to create snapshot ###<br>
&gt;<br>
</span>&gt; /<br>
&gt; *Can someone tell me how to snapshot a lvm in the cluster lvm<br>
&gt; environment? thank you very much。*<br>
<br>
This is how it works. You can&#39;t snapshot a clustered LV, as the error<br>
indicates. The process is ACTIVE -&gt; deactivate on all node -&gt; set<br>
exclusive on one node -&gt; set it back to ACTIVE, then you can snapshot.<br>
<br>
It&#39;s not very practical, unfortunately.<br>
<div><div class="h5"><br>
&gt; Additional information:<br>
&gt;<br>
&gt; [root@controller ~]# vgdisplay<br>
&gt;   --- Volume group ---<br>
&gt;   VG Name               cinder-volumes<br>
&gt;   System ID<br>
&gt;   Format                lvm2<br>
&gt;   Metadata Areas        1<br>
&gt;   Metadata Sequence No  19<br>
&gt;   VG Access             read/write<br>
&gt;   VG Status             resizable<br>
&gt;   Clustered             yes<br>
&gt;   Shared                no<br>
&gt;   MAX LV                0<br>
&gt;   Cur LV                1<br>
&gt;   Open LV               0<br>
&gt;   Max PV                0<br>
&gt;   Cur PV                1<br>
&gt;   Act PV                1<br>
&gt;   VG Size               1000.00 GiB<br>
&gt;   PE Size               4.00 MiB<br>
&gt;   Total PE              255999<br>
&gt;   Alloc PE / Size       256 / 1.00 GiB<br>
&gt;   Free  PE / Size       255743 / 999.00 GiB<br>
&gt;   VG UUID               aLamHi-mMcI-2NsC-Spjm-QWZr-<wbr>MzHx-pPYSTt<br>
&gt;<br>
&gt; [root@controller ~]# rpm -qa |grep pacem<br>
&gt; pacemaker-cli-1.1.13-10.el7_2.<wbr>4.x86_64<br>
&gt; pacemaker-libs-1.1.13-10.el7_<wbr>2.4.x86_64<br>
&gt; pacemaker-1.1.13-10.el7_2.4.<wbr>x86_64<br>
&gt; pacemaker-cluster-libs-1.1.13-<wbr>10.el7_2.4.x86_64<br>
&gt;<br>
&gt;<br>
&gt; [root@controller ~]# lvs<br>
&gt;   LV                                          VG             Attr<br>
&gt; LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert<br>
&gt;   volume-1b0ea468-37c8-4b47-<wbr>a6fa-6cce65b068b5 cinder-volumes -wi-a-----<br>
&gt; 1.00g<br>
&gt;<br>
&gt;<br>
&gt; [root@compute1 ~]# lvs<br>
&gt;   LV                                          VG             Attr<br>
&gt; LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert<br>
&gt;   volume-1b0ea468-37c8-4b47-<wbr>a6fa-6cce65b068b5 cinder-volumes -wi-------<br>
&gt; 1.00g<br>
&gt;<br>
&gt;<br>
&gt; thank you very much!<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; ______________________________<wbr>_________________<br>
&gt; Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
&gt; <a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt; 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>
&gt; Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;<br>
<br>
<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>
<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>
</blockquote></div><br></div>