OpenNebula LVM 3.4

Although OpenNebula 3.4 was released initially without LVM support, the LVM drivers for the next release: OpenNebula 3.6 are already in place and can be adapted to work with OpenNebula 3.4.

Installing and configuring

Download the tar from here

And the run: <xterm> $ tar xzf opennebula-3.4-lvm.tar.gz $ cp -r opennebula-3.4-lvm/datastore_mad/lvm /var/lib/one/remotes/datastore/ $ cp -r opennebula-3.4-lvm/tm_mad/lvm /var/lib/one/remotes/tm/ </xterm>

After that, add LVM to DATASTORE_MAD and TM_MAD in oned.conf:

DATASTORE_MAD = [
    executable = "one_datastore",
    arguments  = "-t 15 -d fs,vmware,iscsi,lvm"
]
[...]
TM_MAD = [
    executable = "one_tm",
    arguments  = "-t 15 -d dummy,shared,qcow2,ssh,vmware,iscsi,lvm" ]

The final step is to restart OpenNebula.

Documentation

Refer to OpenNebula 3.6 LVM documentation.

These modified drivers were discussed in this thread.