Hi,<br><br><br>The Image repository can only work with one directory, but the following workaround could work:<br><br>Lets say /var/lib/one/images is your current image repository, and /var/lib/one/new_images is the mount point for your new image repository.<br>

<br>Stop OpenNebula, change the Image repository path to the new one, and then create links for all files in the repo. E.g. <br><br>/var/lib/one/new_images/abc -> /var/lib/one/images/abc<br><br>Start OpenNebula. Now it should work with the new repository path, but using the old files.<br>

<br>Now you can copy the image files to /var/lib/one/new_images, for instance .../abc_tmp. Once the copy is complete, delete the link (.../abc) and rename the copied file.<br><br><br>Please keep in mind that this is a workaround. This steps won't work for persistent Images If you are using tm_shared drivers; the VMs with persistent Images are using directly the files from the repository.<br>

You will also face problems if a VM saves the changes to the image repository while its file is being copied form the old to the new storage.<br><br><br>Regards.<br clear="all"><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial,sans-serif;font-size:13px">--<br>

Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank"></a></span><br>


<br><br><div class="gmail_quote">2011/11/10 Carlos Fernández Iglesias <span dir="ltr"><<a href="mailto:ciglesias@cesga.es">ciglesias@cesga.es</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello,<br>
<br>
I would like to know if threre's a way to declare two different directories to be part of the same image repository.<br>
<br>
We need to migrate all the images to the new repository but it means to stop all the machines and copy them.<br>
This would take too much time and we can't afford it, so the answer would be to move one image at a time, so we would need to have two different directories active in the repository. This two directories are nfs.<br>


<br>
Thank you.<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</blockquote></div><br>