<div dir="ltr">Hi Christopher,<div><br></div><div>no, that's not supported out of the box. To register a new LVM based image, the source has to be a regular file located in the frontend (or an url).</div><div><br>However, you can patch a couple of files to make this work. It's not difficult, but it may take a bit of time. This is how I would go about it:</div>


<div><br></div><div>* remotes/datastore/lvm/stat:</div><div>If $SRC can be split into two fields, separated by ':' , and the second field starts with "/dev/" => then we can assume it's a LVM volumen located in the host determined by the first field. Use lvs to return the size.</div>


<div><br></div><div>* remotes/datastore/lvm/cp:</div><div>Perform the same check to find out if $SRC is a block device. In that case, add a new section where you dump the block device to the target LVM:</div>
<div><div>ssh_exec_and_log "$DST_HOST" "$SUDO $DD if=$SRC of=$DEV bs=64k" \</div><div>    "Error dumping $SRC to $DST_HOST:$DEV"</div></div><div><br></div><div>I haven't tested this, so there will be typos and maybe I've missed out on something, but in principle it's easily achievable.</div>


<div><br></div><div>cheers,<br>Jaime</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 14, 2013 at 11:03 PM, christopher barry <span dir="ltr"><<a href="mailto:cbarry@rjmetrics.com" target="_blank">cbarry@rjmetrics.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">All,<br>
<br>
I've been looking around, and I can't find out how to do this. Is this<br>
not possible?<br>
<br>
Thanks,<br>
-C<br>
<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>
</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>