Hi Gavin,<br><br>The LVM scripts provided with OpenNebula presume that the LVs preexist in the cluster nodes, just like Sebastien commented. In any case I would like to share a few resources on how to export an LVM to a cluster:<br>
<br>- <a href="http://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/LVM_Cluster_Overview.html">http://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/LVM_Cluster_Overview.html</a><br>- <a href="http://tldp.org/HOWTO/LVM-HOWTO/sharinglvm1.html">http://tldp.org/HOWTO/LVM-HOWTO/sharinglvm1.html</a><br>
<br>Sander Klous, an OpenNebula contributor, was kind enough to develop a set of scripts which support LVM exporting to a cluster using iSCSI, please take a look at them:<br><br><a href="http://dev.opennebula.org/issues/32#note-13">http://dev.opennebula.org/issues/32#note-13</a><br>
<br>regards,<br>Jaime<br><br><br><br><div class="gmail_quote">On Fri, Nov 6, 2009 at 1:46 AM, sebastien goasguen <span dir="ltr"><<a href="mailto:sebgoa@clemson.edu">sebgoa@clemson.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Gavin,<br>
<br>
If I may, here is my experience with LVM on opennebula:<br>
<br>
1-it works<br>
2-you need lvm on the hypervisors and a volume group defined on all nodes<br>
3-you need a logical volume, either preexisting (that you will<br>
snaphsot) or ready to receive the file system of your VMs<br>
4-you need to enable the tm_lvm in your configuration, see oned.conf file<br>
5-you need to setup your VM template to use LVM and point to the right<br>
device to use.<br>
<br>
In my case the disk in the template defintion looks like:<br>
DISK = [<br>
type = "block",<br>
source = "/dev/xen_vg/vm64slc5",<br>
target = "xvda",<br>
readonly = "no" ]<br>
<br>
where vm64slc5 is a logical volume in the xen_vg volume group<br>
<br>
so far I am just doing LVM snapshots, but I am pretty sure it will<br>
also work if you create a volume on the fly.<br>
<br>
-sebastien<br>
<div><div></div><div class="h5"><br>
On Thu, Nov 5, 2009 at 2:36 PM, Gavin <<a href="mailto:netmatters@gmail.com">netmatters@gmail.com</a>> wrote:<br>
> 2009/11/5 Gavin <<a href="mailto:netmatters@gmail.com">netmatters@gmail.com</a>>:<br>
>> Hi there,<br>
>><br>
>> I'm very happy to see that LVM has been included in 1.4, however I<br>
>> just have one question at the moment regarding implementation.<br>
>><br>
>> Based on the following in the documentation:-<br>
>><br>
>> "/dev/default/ttylinux must exist in the node where the VM will be<br>
>> deployed. This can be achieved either by creating the device by hand<br>
>> or by using more complicated techniques like exporting a LVM to a<br>
>> cluster. "<br>
>><br>
>> I have configured my controller for LVM but my nodes are not, how do I<br>
>> create an LVM device on the nodes so that they can see the LVM<br>
>> partitons on the controller ???<br>
>><br>
><br>
> Hello again,<br>
><br>
> Please excuse my ignorance, I am just busy with a deployment and want<br>
> to set this up so that I do not have to mess around with it again once<br>
> it is live.<br>
><br>
> I've successfully used OpenNebula using NFS with the main storage<br>
> attached to the controller and the nodes just sharing storage space<br>
> from there.<br>
><br>
> With the LVM setup does this mean that I need LVM (VG's) on all nodes<br>
> as well ???<br>
><br>
> Can someone please provide me with a little more of an explanation on<br>
> their 'working' LVM setup.<br>
><br>
> Thanks and Regards,<br>
> Gavin<br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
---<br>
Sebastien Goasguen<br>
School of Computing<br>
Clemson University<br>
864-553-4734<br>
<a href="http://runseb.googlepages.com" target="_blank">http://runseb.googlepages.com</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</div></div></blockquote></div><br>