[one-users] How to move an existing image from one datastore to another one?

Carlos Martín Sánchez cmartin at opennebula.org
Tue Jun 24 01:53:09 PDT 2014


Hi,

If the source DS is file-based, you can use the original image's SOURCE as
the new image's PATH. OpenNebula will do the copy in this case.

Regards.

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula
<http://twitter.com/opennebula> <cmartin at opennebula.org>


On Mon, Jun 23, 2014 at 5:47 PM, Valerio Schiavoni <
valerio.schiavoni at gmail.com> wrote:

> Hello Ruben,
> The image is not used by any VM, that's the case.
> I guess I can do it manually somehow..but the question is how.
>
> I did found this issue http://dev.opennebula.org/issues/1696 I hope it
> doesn't get rescheduled (as it was already pushed from 4.0 to 4.8).
>
> best,
> valerio
>
>
> On Mon, Jun 23, 2014 at 5:41 PM, Ruben S. Montero <
> rsmontero at opennebula.org> wrote:
>
>> Images should not be in used by any VM. In that case, it should not
>> matter if the image is persistent or not. Note also that moving images
>> between DS is in our roadmap...
>>
>>
>> On Mon, Jun 23, 2014 at 3:53 PM, Valerio Schiavoni <
>> valerio.schiavoni at gmail.com> wrote:
>>
>>> Hello,
>>> we configured a new image datastore based on a shared filesystem.
>>> We'd like to migrate few of our images (currently hosted on a different,
>>> ssh-based datastore )  to this new datastore.
>>>
>>> What would it be the less painful way to do this ?
>>> I found this old message on the ML:
>>>
>>> http://lists.opennebula.org/pipermail/users-opennebula.org/2013-May/023011.html
>>>
>>> In there, Ruben says:
>>>
>>> You can also re-gister the images again using a dummy path and then just
>>>> mv
>>>> the original SOURCE to the new one....
>>>
>>>
>>> But, what if the image we want to move is a persistent image? Can you
>>> provide an example?
>>> Assume the previous datastore has id 100, the new one has id 106 and the
>>> image we need to move has id 360, what is the sequence of commands you had
>>> in mind ?
>>>
>>>
>>> Best,
>>> Valerio
>>>
>>
>>
>>
>> --
>> --
>> Ruben S. Montero, PhD
>> Project co-Lead and Chief Architect
>> OpenNebula - Flexible Enterprise Cloud Made Simple
>> www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140624/f26f9da9/attachment-0001.htm>


More information about the Users mailing list