[one-users] LVM Question
Jaime Melis
j.melis at fdi.ucm.es
Tue Nov 10 05:49:33 PST 2009
Hi Gavin,
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:
-
http://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/LVM_Cluster_Overview.html
- http://tldp.org/HOWTO/LVM-HOWTO/sharinglvm1.html
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:
http://dev.opennebula.org/issues/32#note-13
regards,
Jaime
On Fri, Nov 6, 2009 at 1:46 AM, sebastien goasguen <sebgoa at clemson.edu>wrote:
> Hi Gavin,
>
> If I may, here is my experience with LVM on opennebula:
>
> 1-it works
> 2-you need lvm on the hypervisors and a volume group defined on all nodes
> 3-you need a logical volume, either preexisting (that you will
> snaphsot) or ready to receive the file system of your VMs
> 4-you need to enable the tm_lvm in your configuration, see oned.conf file
> 5-you need to setup your VM template to use LVM and point to the right
> device to use.
>
> In my case the disk in the template defintion looks like:
> DISK = [
> type = "block",
> source = "/dev/xen_vg/vm64slc5",
> target = "xvda",
> readonly = "no" ]
>
> where vm64slc5 is a logical volume in the xen_vg volume group
>
> so far I am just doing LVM snapshots, but I am pretty sure it will
> also work if you create a volume on the fly.
>
> -sebastien
>
> On Thu, Nov 5, 2009 at 2:36 PM, Gavin <netmatters at gmail.com> wrote:
> > 2009/11/5 Gavin <netmatters at gmail.com>:
> >> Hi there,
> >>
> >> I'm very happy to see that LVM has been included in 1.4, however I
> >> just have one question at the moment regarding implementation.
> >>
> >> Based on the following in the documentation:-
> >>
> >> "/dev/default/ttylinux must exist in the node where the VM will be
> >> deployed. This can be achieved either by creating the device by hand
> >> or by using more complicated techniques like exporting a LVM to a
> >> cluster. "
> >>
> >> I have configured my controller for LVM but my nodes are not, how do I
> >> create an LVM device on the nodes so that they can see the LVM
> >> partitons on the controller ???
> >>
> >
> > Hello again,
> >
> > Please excuse my ignorance, I am just busy with a deployment and want
> > to set this up so that I do not have to mess around with it again once
> > it is live.
> >
> > I've successfully used OpenNebula using NFS with the main storage
> > attached to the controller and the nodes just sharing storage space
> > from there.
> >
> > With the LVM setup does this mean that I need LVM (VG's) on all nodes
> > as well ???
> >
> > Can someone please provide me with a little more of an explanation on
> > their 'working' LVM setup.
> >
> > Thanks and Regards,
> > Gavin
> > _______________________________________________
> > Users mailing list
> > Users at lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
>
>
>
> --
> ---
> Sebastien Goasguen
> School of Computing
> Clemson University
> 864-553-4734
> http://runseb.googlepages.com
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20091110/a29012f4/attachment.htm>
More information about the Users
mailing list