<div>Hello Chrissie,</div>
<div> </div>
<div>To make things clear, when I activate exclusively vg11 on node1, the existing lv's are locked on node1, right ?</div>
<div> </div>
<div>The things that confuse me about that are:</div>
<div> </div>
<div>- clvmd_locks on node1 shows node id 0</div>
<div>- clvmd_locks on node2 shows nothing</div>
<div>- I'm able on node2 to bypass the exclusive lock by issuing (node2) vgchange -a y vg11(or even vgchange -a ey vg11).</div>
<div> </div>
<div>My understanding of exclusive flag is to forbid any change on another node while lock holding node (node1) is alive and member of the cluster.</div>
<div> </div>
<div>Is it where I'm wrong ?</div>
<div> </div>
<div>Brem<br><br> </div>
<div><span class="gmail_quote">2009/7/29, Christine Caulfield <<a href="mailto:ccaulfie@redhat.com">ccaulfie@redhat.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I think you've misunderstood what vgchange -aey does,<br><br>It activates all the currently existing LVs in that VG exclusively on that node. If you create another LV in that VG then it's activated normally on all nodes in the cluster.<br>
<br>Chrissie 
<div><span class="e" id="q_122c6dda2a9ad458_1"><br><br>On 29/07/09 14:55, brem belguebli wrote:<br></span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div><span class="e" id="q_122c6dda2a9ad458_3">Hello,<br><br>I've been playing on RHEL 5.3 with CLVM and exclusive activation but the<br>results I'm getting are not what I'm expecting.<br><br>- My cluster is a freshly 2 nodes (node1 and node2) installed cluster<br>
with the packages shipped by RHEL 5.3 X86_64.<br><br>- LVM locking type =  3<br><br>- a San LUN (/dev/mpath/mpath2) visible from both nodes<br><br>- dlm used as lock_manager<br><br>Everything starts normally from cman to clvmd.<br>
<br>Below what I'm doing<br><br>On node1:<br><br> pvcreate /dev/mpath/mpath2<br> vgcreate -c n vg11 /dev/mpath/mpath2<br><br>! nothing in /debug/dlm/clvmd_locks on both nodes<br><br>  vgchange -a n vg11<br><br>! nothing in /debug/dlm/clvmd_locks on both nodes<br>
<br>  vgchange -c y vg11<br><br>! nothing in /debug/dlm/clvmd_locks on both nodes, vg seen on both nodes<br>as clustered.<br><br>  vgchange -a ey vg11<br><br>! nothing in /debug/dlm/clvmd_locks on both nodes<br><br> lvcreate -n lvol1 -L 6G /dev/vg11<br>
<br>On node1 cat /debug/dlm/clvmd_locks gives:<br><br>  6f0001 2 3da0001 2204 0 1 10001 2 1 -1 0 0 64<br>"iZ8vgn7nBm05aMSo5cfpy63rflTqL2ryr3Xrp1prEGceCkA2dhSA2ENWocunEfdf"<br>  38a0001 0 0 434 0 1 1 2 1 -1 0 0 64<br>
"iZ8vgn7nBm05aMSo5cfpy63rflTqL2ryr3Xrp1prEGceCkA2dhSA2ENWocunEfdf"<br><br>On node2:<br><br>  3da0001 1 6f0001 2204 0 1 1 2 1 -1 0 1 64<br>"iZ8vgn7nBm05aMSo5cfpy63rflTqL2ryr3Xrp1prEGceCkA2dhSA2ENWocunEfdf"<br>
<br>Is there something I'm doing wrong or misunderstand?<br>I understand that node1 (which actually activated exclusively the vg)<br>sees a lock on /dev/vg11/lvol1 (uuid corresponding to it) from node id 2<br>wich is node2<br>
plus a lock from node id 0 (which seems to be the quorun disk id which<br>is not configured in my case).<br><br>Plus, node2 seems to see the right lock from node1.<br><br>I go on:<br><br>on both nodes, lvdisplay -v /dev/vg11/lvol1 gives:<br>
<br>...<br> LV UUID                r3Xrp1-prEG-ceCk-A2dh-SA2E-NWoc-unEfdf<br>  LV Write Access        read/write<br>  LV Status              available<br>...<br><br>Shouldn't it be seen NOT available on node2 ?<br><br>
Now, on node2:<br><br>vgchange -a y vg11 :<br><br> 1 logical volume(s) in volume group "vg11" now active <-- vg was<br>supposed to be held exlusively by node1<br><br>cat  /debug/dlm/clvmd_locks gives:<br><br>
3da0001 1 6f0001 2204 0 1 1 2 1 -1 0 1 64<br>"iZ8vgn7nBm05aMSo5cfpy63rflTqL2ryr3Xrp1prEGceCkA2dhSA2ENWocunEfdf"<br><br>on node1:<br><br>6f0001 2 3da0001 2204 0 1 10001 2 1 -1 0 0 64<br>"iZ8vgn7nBm05aMSo5cfpy63rflTqL2ryr3Xrp1prEGceCkA2dhSA2ENWocunEfdf"<br>
38a0001 0 0 434 0 1 1 2 1 -1 0 0 64<br>"iZ8vgn7nBm05aMSo5cfpy63rflTqL2ryr3Xrp1prEGceCkA2dhSA2ENWocunEfdf"<br><br>I may be missing something in my procedure that makes it do everything<br>except what I'm expecting.<br>
<br>Any ideas ?<br><br><br></span></div>------------------------------------------------------------------------<br><br>--<br>Linux-cluster mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br></blockquote><br>--<br>Linux-cluster mailing list<br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
</blockquote></div><br>