<div>Here's the test I've done :</div>
<div> </div>
<div>- Cluster formed of 2 nodes A and B, RHEL5.3 X86_64</div>
<div>- dlm used as lock_manager </div>
<div>- -  </div>
<div>
<p>Hello,</p>
<p>I've been playing on RHEL 5.3 with CLVM and exclusive activation but the results I'm getting are not what I'm expecting.</p>
<p>- My cluster is a freshly 2 nodes (node1 and node2) installed cluster with the packages shipped by RHEL 5.3 X86_64. </p>
<p>- LVM locking type =  3</p>
<p>- a San LUN (/dev/mpath/mpath2) visible from both nodes</p>
<p>- dlm used as lock_manager </p>
<p>Everything starts normally from cman to clvmd.</p>
<p>Below what I'm doing</p>
<p>On node1:</p>
<p> pvcreate /dev/mpath/mpath2<br> vgcreate -c n vg11 /dev/mpath/mpath2</p>
<p>! nothing in /debug/dlm/clvmd_locks on both nodes<br>  <br>  vgchange -a n vg11</p>
<p>! nothing in /debug/dlm/clvmd_locks on both nodes</p>
<p><br>  vgchange -c y vg11</p>
<p>! nothing in /debug/dlm/clvmd_locks on both nodes, vg seen on both nodes as clustered.<br>  <br>  vgchange -a ey vg11</p>
<p>! nothing in /debug/dlm/clvmd_locks on both nodes</p>
<p> lvcreate -n lvol1 -L 6G /dev/vg11</p>
<p>On node1 cat /debug/dlm/clvmd_locks gives:</p>
<p>  6f0001 2 3da0001 2204 0 1 10001 2 1 -1 0 0 64 "iZ8vgn7nBm05aMSo5cfpy63rflTqL2ryr3Xrp1prEGceCkA2dhSA2ENWocunEfdf"<br>  38a0001 0 0 434 0 1 1 2 1 -1 0 0 64 "iZ8vgn7nBm05aMSo5cfpy63rflTqL2ryr3Xrp1prEGceCkA2dhSA2ENWocunEfdf"</p>

<p>On node2: </p>
<p>  3da0001 1 6f0001 2204 0 1 1 2 1 -1 0 1 64 "iZ8vgn7nBm05aMSo5cfpy63rflTqL2ryr3Xrp1prEGceCkA2dhSA2ENWocunEfdf"</p>
<p>Is there something I'm doing wrong or misunderstand? <br>I understand that node1 (which actually activated exclusively the vg) sees a lock on /dev/vg11/lvol1 (uuid corresponding to it) from node id 2 wich is node2<br>
plus a lock from node id 0 (which seems to be the quorun disk id which is not configured in my case).</p>
<p>Plus, node2 seems to see the right lock from node1.</p>
<p>I go on:</p>
<p>on both nodes, lvdisplay -v /dev/vg11/lvol1 gives:</p>
<p>...<br> LV UUID                r3Xrp1-prEG-ceCk-A2dh-SA2E-NWoc-unEfdf<br>  LV Write Access        read/write<br>  LV Status              available<br>...</p>
<p>Shouldn't it be seen NOT available on node2 ?</p>
<p>Now, on node2:</p>
<p>vgchange -a y vg11 :</p>
<p> 1 logical volume(s) in volume group "vg11" now active <-- vg was supposed to be held exlusively by node1</p>
<p>cat  /debug/dlm/clvmd_locks gives:</p>
<p>3da0001 1 6f0001 2204 0 1 1 2 1 -1 0 1 64 "iZ8vgn7nBm05aMSo5cfpy63rflTqL2ryr3Xrp1prEGceCkA2dhSA2ENWocunEfdf"</p>
<p>on node1:</p>
<p>6f0001 2 3da0001 2204 0 1 10001 2 1 -1 0 0 64 "iZ8vgn7nBm05aMSo5cfpy63rflTqL2ryr3Xrp1prEGceCkA2dhSA2ENWocunEfdf"<br>38a0001 0 0 434 0 1 1 2 1 -1 0 0 64 "iZ8vgn7nBm05aMSo5cfpy63rflTqL2ryr3Xrp1prEGceCkA2dhSA2ENWocunEfdf"</p>

<p> </p>
<p>I may be missing something in my procedure that makes it do everything except what I'm expecting.</p>
<p>Any ideas ?</p></div>