<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Ok, good to see something is planned for 4.6 :)<br>
<br>
I did it successfully, thanks to you !<br>
<br>
worked like a charm !<br>
<br>
Thank you<br>
<br>
Nicolas.<br>
<br>
<div class="moz-cite-prefix">Le 11/02/2014 19:59, Ruben S. Montero a
écrit :<br>
</div>
<blockquote
cite="mid:CAGi56teQzHuLP4J77pFiK0-stM05f6K8SSCYjqCpURoM1ny8_A@mail.gmail.com"
type="cite">
<div dir="ltr">No, you cannot yet :( see [1,2].
<div><br>
</div>
<div>However you can do the procedure manually. Let's assume
that:</div>
<div><br>
</div>
<div>a. You already have a new datastore, ready and available
under /var/lib/one/datastores/<ID></div>
<div>b. There are no VMs running using the images to be moved</div>
<div><br>
</div>
<div>Then:</div>
<div><br>
</div>
<div>1.- Move the image file to the new place, you can keep the
hashed name </div>
<div><br>
</div>
<div>mv /var/lib/one/datastores/106/fc0b14ee* /var/lib/one/datastores/<ID>/</div>
<div><br>
</div>
<div>2.- Register a new image.You can keep the previous
attributes if any (e.g. DRIVER or CACHE) **but be sure** to
include:</div>
<div> * SOURCE set to point to the new location</div>
<div> * SIZE set to the original value</div>
<div>
<div><br>
</div>
<div>This procedure can be easily script'ed if there are too
many images. </div>
<div><br>
</div>
<div>Cheers</div>
<div><br>
</div>
<div>Ruben</div>
<div><br>
</div>
<div>[1] <a moz-do-not-send="true"
href="http://dev.opennebula.org/issues/2417">http://dev.opennebula.org/issues/2417</a></div>
<div>[2] <a moz-do-not-send="true"
href="http://dev.opennebula.org/issues/1696">http://dev.opennebula.org/issues/1696</a></div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Feb 11, 2014 at 7:40 PM,
Nicolas Bélan <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:nicolas.belan@gmail.com" target="_blank">nicolas.belan@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello the
list,<br>
<br>
I just want to know if it is possible to "move" a disk image
between<br>
datastore.<br>
<br>
The use case is:<br>
<br>
I have a brand new JBOD, and I want to move 5TB of data
from existing<br>
DS to the new one.<br>
<br>
I do not talk about System DS, but image DS.<br>
<br>
[oneadmin] ll -h<br>
/var/lib/one/datastores/106/fc0b14ee770a71c5db4ecd4947d13a10<br>
-rw-r--r-- 1 oneadmin oneadmin 2,8T 6 feb. 10:40<br>
/var/lib/one/datastores/106/fc0b14ee770a71c5db4ecd4947d13a10<br>
<br>
I can move/rsync/anything the disk, but I would like to
re-register it<br>
like that (without any qemu-img convert) because, I do not
want to clone<br>
it, just store it somewhere else.<br>
<br>
Thank you for any web pointer, I did not find any :-/<br>
<br>
Best regards,<br>
Nicolas<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a moz-do-not-send="true"
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>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div>
<div>-- <br>
</div>
</div>
Ruben S. Montero, PhD<br>
Project co-Lead and Chief Architect
<div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a moz-do-not-send="true" href="http://www.OpenNebula.org"
target="_blank">www.OpenNebula.org</a> | <a
moz-do-not-send="true"
href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a>
| @OpenNebula</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>