Skip to contentSkip to conversation

qcow2 images going corrupt

Qemu-devel Csaba Henk 3 participants 4 messages May 8, 2007 – May 12, 2007

lore
Share & tools
lore

Csaba Henk

author
#0 lore raw

Hi,

I'm running qemu 0.9.0 on a Linux host.

I'm using a qcow2 image. I run qemu in daemon mode. When I'm to finish my session with the guest, I go to the monitor, do a "savevm whatever", "commit all", "q".

What I see that the image becomes corrupt very often (qemu-img sees it as a raw image). (I do the "commit all" only because I suffer and I don't have any better idea in mind -- I guess it shouldn't have an effect on the correctness of disk handling).

Any idea what's wrong? Or a fault-proof way of leaving qemu?

I can upload an example corrupt image if someone would like to analyze it. 1.6G gzipped.

Csaba

#1 lore raw
Quoted 8 lines · Csaba Henk

Hi,

I'm running qemu 0.9.0 on a Linux host.

I'm using a qcow2 image. I run qemu in daemon mode. When I'm to finish my session with the guest, I go to the monitor, do a "savevm whatever", "commit all", "q".

Quoted 6 lines

What I see that the image becomes corrupt very often (qemu-img sees it as a raw image). (I do the "commit all" only because I suffer and I don't have any better idea in mind -- I guess it shouldn't have an effect on the correctness of disk handling).

Any idea what's wrong? Or a fault-proof way of leaving qemu?

There was a bug in the qcow2 support which is fixed in CVS. You can use qcow instead, or upgrade to a recent-ish CVS version of qemu.

Thiemo

author
#2 lore raw
Quoted 2 lines · Thiemo Seufer

There was a bug in the qcow2 support which is fixed in CVS. You can use qcow instead, or upgrade to a recent-ish CVS version of qemu.

Oh yeah, thanks, I see. I really could as well have looked it up myself...

What I *don't* understand is that why has not the Qemu team made a bugfix release immediately? This is a _serious bug_. It can cause data loss. As it did for me.

Csaba

#3 lore raw

Maybe release Qemu 0.9.01 with only the qcow2 image fixed

Quoted 15 lines · Csaba Henk
Quoted 2 lines · Thiemo Seufer

There was a bug in the qcow2 support which is fixed in CVS. You can use qcow instead, or upgrade to a recent-ish CVS version of qemu.

Oh yeah, thanks, I see. I really could as well have looked it up myself...

What I *don't* understand is that why has not the Qemu team made a bugfix release immediately? This is a _serious bug_. It can cause data loss. As it did for me.

Csaba