[one-users] OpenNebula 3.4 with Clustered LVM
Jaime Melis
jmelis at opennebula.org
Thu May 10 11:01:06 PDT 2012
Hello Yves,
there was a big change from OpenNebula 3.2 to 3.4, and we pulled out the
LVM drivers temporarily. The new LVM drivers are already in place for the
next OpenNebula release 3.6 [1][2][3].
However, those new drivers will not work for as-is OpenNebula 3.4, you will
need to apply the following patch:
--- a/src/tm_mad/lvm/clone
+++ b/src/tm_mad/lvm/clone
-VM_ID=$3
+VM_DIR=$(basename `dirname $DST`)
Note that I haven't tested it with OpenNebula 3.4, but they should work
like that. If it doesn't, please let me know and I'll be glad to help.
[1] http://opennebula.org/documentation:rel3.6:lvm_ds
[2]
https://github.com/OpenNebula/one/tree/master/src/datastore_mad/remotes/lvm
[3] https://github.com/OpenNebula/one/tree/master/src/tm_mad/lvm
Cheers,
Jaime
On Thu, May 10, 2012 at 7:06 PM, Vogl, Yves <vogl at adesso-mobile.de> wrote:
> Hi,
>
> I've setup OpenNebula 3.4 together with 5 KVM hosts.
> Those 6 hosts are member of a clustered LVM.
>
> The OpenNebula host holds the „Master“ image in form of a logical volume
> "/dev/vg1/master".
> Every KVM host synchronizes with this image and therefore has a local copy
> of this image represented by its own "/dev/vg1/master" volume.
>
> Now I'd like OpenNebula to deploy a virtual machine by creating a new
> logical volume as LVM snapshot from /dev/vg1/master - manually it'll look
> like this on the KVM host:
>
> # lvcreate -n vm01 -L40G -s /dev/vg1/master
>
> When the virtual machine is removed, I just need a:
>
> # lvremove -f /dev/vg1/vm01
>
>
> I've read in the change logs of OpenNebula 3.2 that the tm_lvm driver
> was removed and superseded by the iSCSI driver.
> I'm clueless… iSCSI simply is not LVM…
>
>
> My next step would be to create a custom transfer manage to realize the
> steps I need.
> But… do I really need to do this?
>
>
> Help from someone who's running the same setup is greatly appreciated :-)
>
>
> Thanks so far,
>
> Yves
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
--
Jaime Melis
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120510/4f75cf88/attachment-0003.htm>
More information about the Users
mailing list