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

fc lists fclists at pr-z.info
Mon May 7 01:12:01 PDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120507/96a4aebe/attachment.htm>


More information about the Users mailing list