<br><br><div class="gmail_quote">On Thu, Feb 3, 2011 at 12:35 PM, שלום קלמר <span dir="ltr"><<a href="mailto:sklemer@gmail.com">sklemer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<p class="MsoNormal" dir="RTL"><span dir="LTR" style="color:#1F497D"> </span></p>

<span dir="RTL" style="font-size:11.0pt;color:#1F497D"><a href="https://access.redhat.com/kb/docs/DOC-3068" target="_blank"><span dir="LTR">https://access.redhat.com/kb/docs/DOC-3068</span></a></span><div><div></div><div class="h5">
<br><br><div class="gmail_quote">On Thu, Feb 3, 2011 at 11:13 AM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
<div><div></div><div><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 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) =~ .....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 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 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 LVM<br>
> cluster packages are installed, and the necessary daemons are started (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 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, configuration<br>
> tools such as Conga or system-config-cluster may be used to create 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" ordered="1"<br>
> restricted="0">           <failoverdomainnode name="neo-01" 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" fsid="64050"<br>
> fstype="ext3" mountpoint="/mnt" options="" self_fence="0"/>    </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>
</div></div>> --<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>
<font color="#888888"><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></font></blockquote></div><br>
</div></div></blockquote></div><br>