<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 -> ../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'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"><<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a>></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>
> *Hi all,<br>
><br>
> *<br>
> *I am new to pacemaker and I have some questions about the clvmd +<br>
<span class="">> pacemaker + corosync. I wish you could explain it for me if you are<br>
> free. thank you very much!<br>
><br>
</span>> *<br>
> *I have 2 nodes and the pacemaker's status is as follows:*<br>
<div><div class="h5">><br>
> [root@controller ~]# pcs status --full<br>
> Cluster name: mycluster<br>
> Last updated: Mon Dec 5 18:15:12 2016 Last change: Fri Dec 2<br>
> 15:01:03 2016 by root via cibadmin on compute1<br>
> Stack: corosync<br>
> Current DC: compute1 (2) (version 1.1.13-10.el7_2.4-44eb2dd) - partition<br>
> with quorum<br>
> 2 nodes and 4 resources configured<br>
><br>
> Online: [ compute1 (2) controller (1) ]<br>
><br>
> Full list of resources:<br>
><br>
> Clone Set: dlm-clone [dlm]<br>
> dlm (ocf::pacemaker:controld): Started compute1<br>
> dlm (ocf::pacemaker:controld): Started controller<br>
> Started: [ compute1 controller ]<br>
> Clone Set: clvmd-clone [clvmd]<br>
> clvmd (ocf::heartbeat:clvm): Started compute1<br>
> clvmd (ocf::heartbeat:clvm): Started controller<br>
> Started: [ compute1 controller ]<br>
><br>
> Node Attributes:<br>
> * Node compute1 (2):<br>
> * Node controller (1):<br>
><br>
> Migration Summary:<br>
> * Node compute1 (2):<br>
> * Node controller (1):<br>
><br>
> PCSD Status:<br>
> controller: Online<br>
> compute1: Online<br>
><br>
> Daemon Status:<br>
> corosync: active/disabled<br>
> pacemaker: active/disabled<br>
> pcsd: active/enabled<br>
</div></div>> *<br>
> *<br>
<br>
You need to configure and enable (and test!) stonith. This is doubly-so<br>
with clustered LVM/shared storage.<br>
<br>
> *I create a lvm on controller node and it can be seen on the compute1<br>
<span class="">> node immediately with 'lvs' command. but the lvm it not activate on<br>
> compute1.<br>
><br>
</span>> *<br>
> *then i want to create a snapshot of the lvm, but failed with the error<br>
> message:*<br>
><br>
> /### volume-4fad87bb-3d4c-4a96-<wbr>bef1-8799980050d1 must be active<br>
<span class="">> exclusively to create snapshot ###<br>
><br>
</span>> /<br>
> *Can someone tell me how to snapshot a lvm in the cluster lvm<br>
> environment? thank you very much。*<br>
<br>
This is how it works. You can't snapshot a clustered LV, as the error<br>
indicates. The process is ACTIVE -> deactivate on all node -> set<br>
exclusive on one node -> set it back to ACTIVE, then you can snapshot.<br>
<br>
It's not very practical, unfortunately.<br>
<div><div class="h5"><br>
> Additional information:<br>
><br>
> [root@controller ~]# vgdisplay<br>
> --- Volume group ---<br>
> VG Name cinder-volumes<br>
> System ID<br>
> Format lvm2<br>
> Metadata Areas 1<br>
> Metadata Sequence No 19<br>
> VG Access read/write<br>
> VG Status resizable<br>
> Clustered yes<br>
> Shared no<br>
> MAX LV 0<br>
> Cur LV 1<br>
> Open LV 0<br>
> Max PV 0<br>
> Cur PV 1<br>
> Act PV 1<br>
> VG Size 1000.00 GiB<br>
> PE Size 4.00 MiB<br>
> Total PE 255999<br>
> Alloc PE / Size 256 / 1.00 GiB<br>
> Free PE / Size 255743 / 999.00 GiB<br>
> VG UUID aLamHi-mMcI-2NsC-Spjm-QWZr-<wbr>MzHx-pPYSTt<br>
><br>
> [root@controller ~]# rpm -qa |grep pacem<br>
> pacemaker-cli-1.1.13-10.el7_2.<wbr>4.x86_64<br>
> pacemaker-libs-1.1.13-10.el7_<wbr>2.4.x86_64<br>
> pacemaker-1.1.13-10.el7_2.4.<wbr>x86_64<br>
> pacemaker-cluster-libs-1.1.13-<wbr>10.el7_2.4.x86_64<br>
><br>
><br>
> [root@controller ~]# lvs<br>
> LV VG Attr<br>
> LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert<br>
> volume-1b0ea468-37c8-4b47-<wbr>a6fa-6cce65b068b5 cinder-volumes -wi-a-----<br>
> 1.00g<br>
><br>
><br>
> [root@compute1 ~]# lvs<br>
> LV VG Attr<br>
> LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert<br>
> volume-1b0ea468-37c8-4b47-<wbr>a6fa-6cce65b068b5 cinder-volumes -wi-------<br>
> 1.00g<br>
><br>
><br>
> thank you very much!<br>
><br>
><br>
><br>
><br>
><br>
</div></div>> ______________________________<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>
<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>