[one-users] LVM Question

sebastien goasguen sebgoa at clemson.edu
Thu Nov 5 16:46:15 PST 2009

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.


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

More information about the Users mailing list