<div dir="ltr">Heys,<div><br></div><div>I've built a Red Hat with KVM using HA-LVM. The real reason for doing so is the customer didn't want to purchase the resilient storage addon - which includes clvm, but only high availability. I would say the right way is with clvm. It seemed to work well for the most part - just can add some complexity by needing to have the right tags to mount if a person doesn't know that it is being used. Additionally clvm manages modifying lv's on both sides in a clustered fashion, i think there may be a risk with LVM-HA if doing so manually.</div>

<div><br></div><div>hth</div><div>Stefan</div></div><div class="gmail_extra"><br clear="all"><div>--<br>Stefan Lesicnik<br><br>Linux System Dynamics<br><br>mail: <a href="mailto:stefan@lsd.co.za">stefan@lsd.co.za</a><br>
tel : +27 (0)86 111 6094<br>
cell: +27 (0)84 951 9321<br>gpg : <a href="http://www.lsd.co.za/files/keys/stefan.gpg.pub">http://www.lsd.co.za/files/keys/stefan.gpg.pub</a><br></div>
<br><br><div class="gmail_quote">On Fri, Apr 19, 2013 at 4:15 PM, Devin A. Bougie <span dir="ltr"><<a href="mailto:devin.bougie@cornell.edu" target="_blank">devin.bougie@cornell.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Digimer,<br>
<div class="im"><br>
On Apr 18, 2013, at 5:54 PM, Digimer <<a href="mailto:lists@alteeve.ca">lists@alteeve.ca</a>> wrote:<br>
> I use live migration of KVM VMs backed by dedicated LVs per VM. I do this by using clustered LVM (clvmd) backed by DRBD, but backed by a SAN is just fine, too. Have you tried this? I've not use "HA LVM" and am not sure if that's a description or a name. :)<br>


<br>
</div>Sorry for the ambiguity!  By "HA-LVM," I meant an active-passive LVM configuration where the logical volume is only active on one cluster member at a time.  This has been setup and works well for services as documented here:<br>


<a href="https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Cluster_Administration/ap-ha-halvm-CA.html" target="_blank">https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Cluster_Administration/ap-ha-halvm-CA.html</a><br>


<br>
I haven't figured out yet how to do that with a vm instead of a service.  In other words, we want to make sure an LV used by an individual KVM VM is only active on one cluster member at a time.<br>
<br>
Thanks for your reply,<br>
Devin<br>
<div class="im HOEnZb"><br>
<br>
> On 04/18/2013 02:53 PM, Devin A. Bougie wrote:<br>
>> Is HA-LVM supported with KVM virtual machines using raw disks on logical volumes?<br>
>><br>
>> For example, we have a VM defined in our EL6 cluster that has /dev/vgift1/pc56 as the source for its raw virtio disk.  With the following line in cluster.conf, live migration works fine as long as the logical volume is active on every cluster member.<br>


>><br>
>> <vm autostart="0" domain="fd14" migrate="live" name="pc56" path="/gfs/cluster/vm_defs" recovery="relocate"/><br>
>><br>
>> If we move the vm within a service, we gain HA-LVM but lose live migration:<br>
>><br>
>> <service domain="fd14" name="pc56"><br>
>>      <lvm lv_name="pc56" name="lvm-pc56" vg_name="vgift1"/><br>
>>      <vm autostart="0" migrate="live" name="pc56" path="/gfs/cluster/vm_defs" recovery="relocate"/><br>
>> </service><br>
>><br>
>> And of course, the following fails:<br>
>><br>
>> <vm autostart="0" domain="fd14" migrate="live" name="pc56" path="/gfs/cluster/vm_defs" recovery="relocate"><br>
>>      <lvm lv_name="pc56" name="lvm-pc56" vg_name="vgift1"/><br>
>> </vm><br>
>><br>
>> Any suggestions for configuring HA-LVM with a KVM VM as described above would be greatly appreciated.  Please let me know if there is any more information I can provide.<br>
>><br>
>> Many thanks,<br>
>> Devin<br>
<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">--<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>
</div></div></blockquote></div><br></div>