[one-users] bug in qcow2 TM driver on ONE 3.4.X ? persistent images get corrupted on shutdown

Jaime Melis jmelis at opennebula.org
Fri May 11 09:58:16 PDT 2012


Hello Francesco,

you're absolutely right. It's a bug. Thanks *a lot* for reporting it.

We have added it to the know issues list:
http://opennebula.org/documentation:rel3.4:known_issues

And fixed it in master: http://dev.opennebula.org/issues/1273

thanks!

Jaime

On Mon, May 7, 2012 at 10:12 AM, fc lists <fclists at pr-z.info> wrote:

> Hi All,
>
> I have been having issue while using an NFS backed datastore with QCOW2 TM
> Driver.
>
> my persistent images would be properly created with a link to datastores/0
> but would get corrupted on shutdown where the "link" was not identified and
> so "qemu-img convert" was run on them
>
> I diffed the mvds for qcow2 and shared TM drivers (that are supposed to be
> very similar afaik) and found a difference in the link check
>
> i changed this
>
> [oneadmin at chlorine qcow2]$ pwd
> /var/lib/one/remotes/tm/qcow2
> [oneadmin at chlorine qcow2]$ diff -u mvds.bkp mvds
> --- mvds.bkp    2012-05-07 07:53:49.058916305 +0000
> +++ mvds        2012-05-07 07:54:04.011624371 +0000
> @@ -53,7 +53,7 @@
>  SRC_READLN=\$($READLINK -f $SRC_PATH)
>  DST_READLN=\$($READLINK -f $DST_PATH)
>
> -if [ \( -L $SRC \) -a \( "\$SRC_READLN" = "\$DST_READLN" \) ] ; then
> +if [ \( -L $SRC_PATH \) -a \( "\$SRC_READLN" = "\$DST_READLN" \) ] ; then
>         echo "Not moving files to image repo, they are the same"
>  else
>      qemu-img convert $SRC_PATH -O qcow2 $DST_PATH
>
>
>
> Now it seems to be working fine.
>
> I am exteremely new to OpenNebula ... maybe i was doing something wrong?
>
> Thanks
> Francesco
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Jaime Melis
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120511/21472396/attachment-0002.htm>


More information about the Users mailing list