Hi Stuart,

Yes it should be possible. Note that the mvds script it is doing
basically " qemu-img convert" so committing the changes to the
original image. As you said that the original image is a link, I am
wondering if the host (where the qemu-img convert command is executed)
have access to the base image when the VM was shutdown? It seems that
only the deltas are being transferred back to the repo...

Note that the qcow drivers are an specialized version of the shared
drivers, so the same restrictions apply.

Cheers

Ruben

On Fri, Aug 31, 2012 at 5:05 PM, Stuart Kenny <[email protected]> wrote:
> Hi, I have an image in a qcow datastore that I want to make persistent. The
> datastore configuration is below:
>
> DATASTORE 102 INFORMATION
> ID             : 102
> NAME           : ops-gw-qcow
> USER           : oneadmin
> GROUP          : ops
> CLUSTER        : -
> DS_MAD         : fs
> TM_MAD         : qcow2
> BASE PATH      : /var/lib/one/datastores/102
>
> The image configuration is:
>
> IMAGE 10 INFORMATION
> ID             : 10
> NAME           : SL 5.8
> USER           : oneadmin
> GROUP          : ops
> DATASTORE      : ops-gw-qcow
> TYPE           : OS
> REGISTER TIME  : 08/02 15:25:50
> PERSISTENT     : Yes
> SOURCE         :
> /var/lib/one/datastores/102/35b27eaab7c131bef8a2a3bd635cfc5d
> FSTYPE         : save_as
> SIZE           : 3775
> STATE          : rdy
> RUNNING_VMS    : 0
>
> When I shutdown the VM I get the following log messages, which say that the
> image is being copied from the system datastore. The image in the system
> datastore is just a link however.
>
> Fri Aug 31 15:33:30 2012 [LCM][I]: New VM state is EPILOG
> Fri Aug 31 15:33:54 2012 [TM][I]: mvds: Moving
> /var/lib/one/datastores/0/25/disk.0 to datastore as
> /var/lib/one/datastores/102/35b27eaab7c131bef8a2a3bd635cfc5d
> Fri Aug 31 15:33:54 2012 [TM][I]: ExitCode: 0
> Fri Aug 31 15:33:54 2012 [TM][I]: delete: Deleting
> /var/lib/one/datastores/0/25
> Fri Aug 31 15:33:54 2012 [TM][I]: ExitCode: 0
> Fri Aug 31 15:33:54 2012 [DiM][I]: New VM state is DONE
>
> The original image is now overwritten with some small file, and I have lost
> my image:
>
> ls -alh /var/lib/one/datastores/102/35b27eaab7c131bef8a2a3bd635cfc5d
> -rw-r----- 1 oneadmin oneadmin 256K Aug 31 15:33
> /var/lib/one/datastores/102/35b27eaab7c131bef8a2a3bd635cfc5d
>
> Is it possible to have a persistent qcow image?
>
> Thanks,
> Stuart.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | [email protected] | @OpenNebula
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to