<div dir="ltr"><div style="font-size:14px"><div><div><div><div><b>Hi all,<br><br></b></div><b>I am new to pacemaker and I have some questions about the clvmd + pacemaker + corosync. I wish you could explain it for me if you are free. thank you very much!<br><br></b></div><b>I have 2 nodes and the pacemaker's status is as follows:</b><br><br><font size="2">[root@controller ~]# pcs status --full<br>Cluster name: mycluster<br>Last updated: Mon Dec  5 18:15:12 2016        Last change: Fri Dec  2 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 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><b><br></b></font></div><b><font size="2">I create a lvm on controller node and it can be seen on the compute1 node </font><span id="gmail-m_-2736661179386831605gmail-result_box" class="gmail-m_-2736661179386831605gmail-short_text" lang="en"><span class="gmail-m_-2736661179386831605gmail-">immediately with 'lvs' command. but the lvm it not activate on compute1.<br><br></span></span></b></div><span id="gmail-m_-2736661179386831605gmail-result_box" class="gmail-m_-2736661179386831605gmail-short_text" lang="en"><b>then i want to create a snapshot of the lvm, but failed with the error message:</b><br></span><span id="gmail-m_-2736661179386831605gmail-result_box" class="gmail-m_-2736661179386831605gmail-short_text" lang="en"><br><i>### volume-4fad87bb-3d4c-4a96-<wbr>bef1-8799980050d1 must be active exclusively to create snapshot ###<br><br></i></span></div><b style="font-size:14px"><span id="gmail-m_-2736661179386831605gmail-result_box" class="gmail-m_-2736661179386831605gmail-short_text" lang="en"><span class="gmail-m_-2736661179386831605gmail-">Can someone tell me how to snapshot a lvm in the cluster lvm environment? thank you very much。</span></span></b><br><div><b style="font-size:14px"><span class="gmail-m_-2736661179386831605gmail-short_text" lang="en"><span class="gmail-m_-2736661179386831605gmail-"><br></span></span></b></div><div><br></div><div>Additional information:</div><div><br></div><div><div>[root@controller ~]# vgdisplay </div><div>  --- Volume group ---</div><div>  VG Name               cinder-volumes</div><div>  System ID             </div><div>  Format                lvm2</div><div>  Metadata Areas        1</div><div>  Metadata Sequence No  19</div><div>  VG Access             read/write</div><div>  VG Status             resizable</div><div>  Clustered             yes</div><div>  Shared                no</div><div>  MAX LV                0</div><div>  Cur LV                1</div><div>  Open LV               0</div><div>  Max PV                0</div><div>  Cur PV                1</div><div>  Act PV                1</div><div>  VG Size               1000.00 GiB</div><div>  PE Size               4.00 MiB</div><div>  Total PE              255999</div><div>  Alloc PE / Size       256 / 1.00 GiB</div><div>  Free  PE / Size       255743 / 999.00 GiB</div><div>  VG UUID               aLamHi-mMcI-2NsC-Spjm-QWZr-MzHx-pPYSTt</div></div><div><br></div><div><div>[root@controller ~]# rpm -qa |grep pacem</div><div>pacemaker-cli-1.1.13-10.el7_2.4.x86_64</div><div>pacemaker-libs-1.1.13-10.el7_2.4.x86_64</div><div>pacemaker-1.1.13-10.el7_2.4.x86_64</div><div>pacemaker-cluster-libs-1.1.13-10.el7_2.4.x86_64</div></div><div><br></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><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><div><br></div><div><br></div><div>thank you very much!</div><div><br></div><div><br></div><div><br></div></div>