[one-users] Problem with persistent image
Ruben S. Montero
rsmontero at opennebula.org
Sun Dec 4 13:16:15 PST 2011
Hi
This is the expected behavior for persistent images.
Delete executes (at the TM level) a delete operation that just removes the
VM home in the target host, but it does not copy back any file. So the
image manger fails to move the image back to the repo. In this case you
should wait for the shutdown operation.
If shutdown fails (e.g. no ACPI in the VM) and you have to delete the VM,
you need to enable the image (oneimage enable) once you are sure that there
are no problems with the image. (Note that in a shared FS, you have
destoyed the OS and the image in the repo may need a fsck, where the next
boot will stuck...)
Regarding the operations in a shared repository + VM_DIR, you are right.
There are not actual move of images, only symbolic links. For a save_as
there is a copy from the original image to the new one.
Cheers
Ruben
On Tue, Nov 29, 2011 at 9:01 PM, Humberto N. Castejon Martinez <
humcasma at gmail.com> wrote:
> Hi,
>
> Given a VM created from a persistent image, if I execute Cancel on the VM
> everything works fine. I can see in the logs that, first, TM shared´s mv is
> executed, which moves /var/lib/one/<vid>/images/disk.0 to
> /var/lib/one/<vid>/disk.0. Then, IM´s mv is executed, which moves
> /var/lib/one/<vid>/disk.0 to the repository (well, it does not really do
> it, since the file in the repo is the one linked by disk.0).
> When I execute Shutdown and then Delete on the VM, the persistent image
> enters into Error state. In the logs I can see that only IM´s mv is
> executed, which tries to move /var/lib/one/<vid>/disk.0 to the
> repository. However, /var/lib/one/<vid>/disk.0 does not exist, and
> therefore the move command exts with error.
>
> Any clue about what is wrong?
>
> Also, in the case of persistent images and shared repository + VM_DIR, the
> move commands are executed but they always do nothing, right? That is, they
> are not really needed, since the VM uses directly the image in the repo,
> right? Move commands are then only needed in case of non persistent images
> in combination with Save As, right?
>
> Cheers,
> Humberto
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
> --
> Ruben S. Montero, PhD
> Project co-Lead and Chief Architect
> OpenNebula - The Open Source Toolkit for Data Center Virtualization
> <http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
> www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111204/ba974424/attachment-0002.htm>
More information about the Users
mailing list