<font class="Apple-style-span" size="4">Hello.</font><div><font class="Apple-style-span" size="4"><br></font></div><div><font class="Apple-style-span" size="4">The HA-LVM + clvmd is working!!!</font></div><div><br></div><div>
<p class="MsoNormal" dir="LTR" style="margin-bottom:0cm;margin-bottom:.0001pt;
text-align:left;line-height:normal;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">The Vg should be tagged as cluster.</span></p>

<p class="MsoNormal" dir="LTR" style="margin-bottom:0cm;margin-bottom:.0001pt;
text-align:left;line-height:normal;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"> </span></p>

<p class="MsoNormal" dir="LTR" style="margin-bottom:0cm;margin-bottom:.0001pt;
text-align:left;line-height:normal;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">The major problem I noticed when I checked the cluster
is that on the passive system </span><span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 16px; ">I am able to run vgchange -c n vgxx ; vgchange -a y
vgxx ; mount the LV out of the cluster - While this lv is mounted on the active member.</span></p><p class="MsoNormal" dir="LTR" style="margin-bottom:0cm;margin-bottom:.0001pt;
text-align:left;line-height:normal;direction:ltr;unicode-bidi:embed"><span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 16px; "><br></span></p><p class="MsoNormal" dir="LTR" style="margin-bottom:0cm;margin-bottom:.0001pt;
text-align:left;line-height:normal;direction:ltr;unicode-bidi:embed"><span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 16px; ">Shalom.</span></p>

<p class="MsoNormal" dir="RTL"><span dir="LTR"> </span></p></div><div><br></div><div><br><div class="gmail_quote">On Sat, Feb 5, 2011 at 12:24 PM, dOminic <span dir="ltr"><<a href="mailto:share2dom@gmail.com">share2dom@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br><br>If you are you using traditional HA-LVM setup with locking_type = 1 , then you need to setup tagging / initrd rebuild <br>
Anything went wrong with tagging.... then it won't prevent admin to activate vg, remove the VG which is activated/used in another node. <br>
<br># vgchange -ay domvg<br>  1 logical volume(s) in volume group "domvg" now active<br># lvremove /dev/domvg/domlv <br>Do you really want to remove active logical volume domlv? [y/n]: y<br>  Logical volume "domlv" successfully removed<br>

<br>If you are using clvmd variant with locking_type = 3 and cluster is *active/passive* then clvmd won't let you to remove the VG which is activate/used in another node.<br><br># lvremove /dev/domvg/domlv<br>Do you really want to remove active clustered logical volume domlv? [y/n]: y<br>

  Error locking on node <a href="http://node1.domtest.com" target="_blank">node1.domtest.com</a>: LV domvg/domlv in use: not deactivating<br>  Unable to deactivate logical volume "domlv"<br><font color="#888888"><br>
- dominic <br></font><div><div></div><div class="h5"><br><div class="gmail_quote">
On Sat, Feb 5, 2011 at 1:07 PM, שלום קלמר <span dir="ltr"><<a href="mailto:sklemer@gmail.com" target="_blank">sklemer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

Hi.<div><div><br></div><div> After reading the manual again ,I think i know  what was my setup problem.</div><div><br></div><div>The VGs should be taged as cluster , ( this action will path the lvm.sh check ) & the LVs should be deactivated.</div>


<div><br></div><div>The cluster will activate the LVs as <span style="font-family:'Liberation Sans','Lucida Grande','Trebuchet MS','Bitstream Vera Sans',helvetica,verdana,arial,sans-serif;font-size:13px;color:rgb(51, 51, 51);line-height:18px">exclusive. (i will check it on monday ).</span></div>


<div><font face="'Liberation Sans', 'Lucida Grande', 'Trebuchet MS', 'Bitstream Vera Sans', helvetica, verdana, arial, sans-serif" color="#333333"><span style="line-height:18px"><br>
</span></font></div><div><font face="'Liberation Sans', 'Lucida Grande', 'Trebuchet MS', 'Bitstream Vera Sans', helvetica, verdana, arial, sans-serif" color="#333333"><span style="line-height:18px">Shalom.</span></font></div>

<div><div></div><div>
<div><font face="'Liberation Sans', 'Lucida Grande', 'Trebuchet MS', 'Bitstream Vera Sans', helvetica, verdana, arial, sans-serif" color="#333333"><span style="line-height:18px"><br>
</span></font><br><div class="gmail_quote">On Sat, Feb 5, 2011 at 12:07 AM, שלום קלמר <span dir="ltr"><<a href="mailto:sklemer@gmail.com" target="_blank">sklemer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">


<div>Hello Dominic.</div><div><br></div>I will be in lab on monday and collect all steps & logs files.<div><br></div><div>btw - Is it <span style="font-family:Arial,sans-serif"> redhat <span><span style="font-size:11pt;line-height:115%;color:black">recommendation</span></span> to <span style="font-family:arial">preferre</span>  using  HA-LVM with the locking_type=1 method ??</span></div>


<p class="MsoNormal" dir="RTL">
<span lang="HE"></span></p><div><div><br></div><div>Regards</div><div><br></div><div>Shalom<div><div></div><div><br><br><div class="gmail_quote">On Fri, Feb 4, 2011 at 5:23 PM, dOminic <span dir="ltr"><<a href="mailto:share2dom@gmail.com" target="_blank">share2dom@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Hi Shalom,<br><br>Are you still facing problem implementing HA-LVM with locking_type = 3 setting ?. If yes, it would be great if you could provide the following details .<br>



So that others can also check<br><br>* steps you are following along with complete output <br>

* status in "clustat" after making changes in cluster.conf <br>* attach cluster.conf and /var/log/messages. <br><font color="#888888"><br>dominic <br></font><div><div></div><div><br><div class="gmail_quote">
On Fri, Feb 4, 2011 at 8:34 PM, שלום קלמר <span dir="ltr"><<a href="mailto:sklemer@gmail.com" target="_blank">sklemer@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Thanks.<div><br></div><div>This is the old methos and its work great but its hard to maintain such cluster.</div>





<div><br></div><div>Shalom.<div><div></div><div><br><br><div class="gmail_quote">On Fri, Feb 4, 2011 at 4:32 PM, Dominic Geevarghese <span dir="ltr"><<a href="mailto:share2dom@gmail.com" target="_blank">share2dom@gmail.com</a>></span> wrote:<br>






<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><br>Hi,<br><br>I am not sure about the error you are getting but it would be great if you could try the preferred method <br>






<br>locking_type = 1 <br>volume_list [ "your-root-vg-name" , "@hostname" ] <br>
<br>rebuild initrd <br><br>add the <lvm> and <fs> resources in cluster.conf , start the cman, rgmanager .<br><br><br>Thanks, <br><div><div></div><div><br><div class="gmail_quote">On Thu, Feb 3, 2011 at 8:02 PM, Corey Kovacs <span dir="ltr"><<a href="mailto:corey.kovacs@gmail.com" target="_blank">corey.kovacs@gmail.com</a>></span> wrote:<br>







<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Excellent,<br>
<br>
<br>
Thanks<br>
<font color="#888888"><br>
-C<br>
</font><div><div></div><div><br>
On Thu, Feb 3, 2011 at 10:38 AM, שלום קלמר <<a href="mailto:sklemer@gmail.com" target="_blank">sklemer@gmail.com</a>> wrote:<br>
><br>
><br>
> On Thu, Feb 3, 2011 at 12:35 PM, שלום קלמר <<a href="mailto:sklemer@gmail.com" target="_blank">sklemer@gmail.com</a>> wrote:<br>
>><br>
>><br>
>><br>
>> <a href="https://access.redhat.com/kb/docs/DOC-3068" target="_blank">https://access.redhat.com/kb/docs/DOC-3068</a><br>
>><br>
>> On Thu, Feb 3, 2011 at 11:13 AM, Corey Kovacs <<a href="mailto:corey.kovacs@gmail.com" target="_blank">corey.kovacs@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Is using ha-lvm with clvmd a new capability? It's always been my<br>
>>> understanding that the lvm locking type for using ha-lvm had to be set<br>
>>> to '1'.<br>
>>><br>
>>> I'd much rather be using clvmd if it is the way to go. Can you point<br>
>>> me to the docs you are seeing these instructions in please?<br>
>>><br>
>>> As for why your config isn't working, clvmd requires that it's<br>
>>> resources are indeed tagged as cluster volumes, so you might try doing<br>
>>> that and see how it goes.<br>
>>><br>
>>> -C<br>
>>><br>
>>> On Thu, Feb 3, 2011 at 7:26 AM, שלום קלמר <<a href="mailto:sklemer@gmail.com" target="_blank">sklemer@gmail.com</a>> wrote:<br>
>>> > Hello.<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > I followed redhat instruction trying install HA-LVM with clvmd. ( rhcs<br>
>>> > 5.6 -<br>
>>> > rgmanager 2.0.52-9 )<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > I can't make it work.<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > lvm.conf- locking_type=3<br>
>>> ><br>
>>> > clvmd work<br>
>>> ><br>
>>> > Its failed saying HA-LVM is not configured correctly.<br>
>>> ><br>
>>> > The manual said that we should run "lvchange -a n lvxx" edit the<br>
>>> > cluster.conf & start the service.<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > But From lvm.conf :<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > case $1 in<br>
>>> ><br>
>>> > start)<br>
>>> ><br>
>>> >         if ! [[ $(vgs -o attr --noheadings $OCF_RESKEY_vg_name) =~<br>
>>> > .....c<br>
>>> > ]]; then<br>
>>> ><br>
>>> >                 ha_lvm_proper_setup_check || exit 1<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > If the vg is not taged as cluster than the ha_lvm is looking for<br>
>>> > volume_list<br>
>>> > in lvm.conf.<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > I am confused- Does the VG should taged as cluster ??  ( BTW - the old<br>
>>> > fashion HA-LVM is worked with no problems )<br>
>>> ><br>
>>> > redhat instructions :<br>
>>> ><br>
>>> > To set up HA LVM Failover (using the preferred CLVM variant), perform<br>
>>> > the<br>
>>> > following steps:<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > 1. Ensure that the parameter locking_type in the global section<br>
>>> > of /etc/lvm/lvm.conf is set to the value '3', that all the necessary<br>
>>> > LVM<br>
>>> > cluster packages are installed, and the necessary daemons are started<br>
>>> > (like<br>
>>> > 'clvmd' and the cluster mirror log daemon - if necessary).<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > 2. Create the logical volume and filesystem using standard LVM2 and<br>
>>> > file<br>
>>> > system commands. For example:<br>
>>> ><br>
>>> > # pvcreate /dev/sd[cde]1<br>
>>> ><br>
>>> >  # vgcreate <volume group name> /dev/sd[cde]1<br>
>>> ><br>
>>> >  # lvcreate -L 10G -n <logical volume name> <volume group name><br>
>>> ><br>
>>> >  # mkfs.ext3 /dev/<volume group name>/<logical volume name><br>
>>> ><br>
>>> >  # lvchange -an <volume group name>/<logical volume name><br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > 3. Edit /etc/cluster/cluster.conf to include the newly created logical<br>
>>> > volume as a resource in one of your services. Alternatively,<br>
>>> > configuration<br>
>>> > tools such as Conga or system-config-cluster may be used to create<br>
>>> > these<br>
>>> > entries.  Below is a sample resource manager section<br>
>>> > from /etc/cluster/cluster.conf:<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > <rm>      <failoverdomains>        <failoverdomain name="FD"<br>
>>> > ordered="1"<br>
>>> > restricted="0">           <failoverdomainnode name="neo-01"<br>
>>> > priority="1"/><br>
>>> >           <failoverdomainnode name="neo-02" priority="2"/><br>
>>> > </failoverdomain>    </failoverdomains>    <resources>        <lvm<br>
>>> > name="lvm" vg_name="shared_vg" lv_name="ha-lv"/>        <fs name="FS"<br>
>>> > device="/dev/shared_vg/ha-lv" force_fsck="0" force_unmount="1"<br>
>>> > fsid="64050"<br>
>>> > fstype="ext3" mountpoint="/mnt" options="" self_fence="0"/><br>
>>> > </resources><br>
>>> >    <service autostart="1" domain="FD" name="serv" recovery="relocate"><br>
>>> >        <lvm ref="lvm"/>        <fs ref="FS"/>    </service> </rm><br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > Regards<br>
>>> ><br>
>>> > Shalom.<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > --<br>
>>> > Linux-cluster mailing list<br>
>>> > <a href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>
>>> > <a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
>>> ><br>
>>><br>
>>> --<br>
>>> Linux-cluster mailing list<br>
>>> <a href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>
>>> <a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
><br>
><br>
> --<br>
> Linux-cluster mailing list<br>
> <a href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
><br>
<br>
--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a></div></div></blockquote></div><br>
</div></div><br>--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br></blockquote></div><br></div></div></div>
<br>--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br></blockquote></div><br>
</div></div><br>--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div></div>
<br>--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br></blockquote></div><br>
</div></div><br>--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br></blockquote></div><br></div>