Hello Yves,<div><br></div><div>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].</div>

<div><br></div><div>However, those new drivers will not work for as-is OpenNebula 3.4, you will need to apply the following patch:</div><div><br></div><div><div><font face="'courier new', monospace">--- a/src/tm_mad/lvm/clone</font></div>

<div><font face="'courier new', monospace">+++ b/src/tm_mad/lvm/clone</font></div><div><span style="font-family:'courier new',monospace">-VM_ID=$3</span></div><div><font face="'courier new', monospace">+VM_DIR=$(basename `dirname $DST`)</font></div>

</div><div><br></div><div>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.</div><div><br></div><div>[1] <a href="http://opennebula.org/documentation:rel3.6:lvm_ds">http://opennebula.org/documentation:rel3.6:lvm_ds</a></div>

<div>[2] <a href="https://github.com/OpenNebula/one/tree/master/src/datastore_mad/remotes/lvm">https://github.com/OpenNebula/one/tree/master/src/datastore_mad/remotes/lvm</a></div><div>[3] <a href="https://github.com/OpenNebula/one/tree/master/src/tm_mad/lvm">https://github.com/OpenNebula/one/tree/master/src/tm_mad/lvm</a></div>

<div><br></div><div>Cheers,</div><div>Jaime<br><br><div class="gmail_quote">On Thu, May 10, 2012 at 7:06 PM, Vogl, Yves <span dir="ltr"><<a href="mailto:vogl@adesso-mobile.de" target="_blank">vogl@adesso-mobile.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi,
<div><br>
</div>
<div>I've setup OpenNebula 3.4 together with 5 KVM hosts.</div>
<div>Those 6 hosts are member of a clustered LVM. </div>
<div><br>
</div>
<div>The OpenNebula host holds the „Master“ image in form of a logical volume "/dev/vg1/master".</div>
<div>Every KVM host synchronizes with this image and therefore has a local copy of this image represented by its own "/dev/vg1/master" volume.</div>
<div><br>
</div>
<div>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:</div>
<div><br>
</div>
<div># lvcreate -n vm01 -L40G -s /dev/vg1/master </div>
<div><br>
</div>
<div>When the virtual machine is removed, I just need a:</div>
<div><br>
</div>
<div># lvremove -f /dev/vg1/vm01 </div>
<div><br>
</div>
<div><br>
</div>
<div>I've read in the change logs of OpenNebula 3.2 that the tm_lvm driver was removed and superseded by the iSCSI driver.</div>
<div>I'm clueless… iSCSI simply is not LVM…</div>
<div><br>
</div>
<div><br>
</div>
<div>My next step would be to create a custom transfer manage to realize the steps I need.</div>
<div>But… do I really need to do this? </div>
<div><br>
</div>
<div><br>
</div>
<div>Help from someone who's running the same setup is greatly appreciated :-)</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks so far,</div>
<div><br>
</div>
<div>Yves</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>

<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></blockquote></div><br></div><br clear="all"><div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>