FS#64150 - [qemu] Massive corruption of qcow2 images with qemu 4.1.0
Attached to Project:
Arch Linux
Opened by Milos Buncic (psyhomb) - Wednesday, 16 October 2019, 17:42 GMT
Last edited by Anatol Pomozov (anatolik) - Monday, 11 November 2019, 19:25 GMT
Opened by Milos Buncic (psyhomb) - Wednesday, 16 October 2019, 17:42 GMT
Last edited by Anatol Pomozov (anatolik) - Monday, 11 November 2019, 19:25 GMT
|
Details
Description:
I'm seeing massive corruption of qcow2 images with qemu 4.1.0 after a few savevm/quit/loadvm cycles. After downgrading from 4.1.0 => 4.0.0 everything is running normal again, no corruption detected and all qcow2 images stays healthy. Additional info: - https://bugs.launchpad.net/qemu/+bug/1847793 - https://bugs.launchpad.net/qemu/+bug/1846427 |
This task depends upon
Closed by Anatol Pomozov (anatolik)
Monday, 11 November 2019, 19:25 GMT
Reason for closing: Fixed
Additional comments about closing: qemu-4.1.0-5
Monday, 11 November 2019, 19:25 GMT
Reason for closing: Fixed
Additional comments about closing: qemu-4.1.0-5
The PKGBUILD has been build tested only.
I haven't tried reverting just that commit, instead I decided to play safe and downgrade to 4.0.0.
I could luckily restore my VM from a backup image.
https://bugzilla.redhat.com/show_bug.cgi?id=1764721
And the patchset that suppose to fix the issue is posted here https://lists.gnu.org/archive/html/qemu-block/2019-10/msg01414.html
Once the fix is merged upstream I'll pull it to [testing] repo.
I personally wasn't hit by these corruptions (lucky I guess) but I added these patches to my own test build and all seems fine still.
https://git.qemu.org/?p=qemu.git;a=commit;h=944f3d5dd216fcd8cb007eddd4f82dced0a15b3d
https://git.qemu.org/?p=qemu.git;a=commit;h=5e9785505210e2477e590e61b1ab100d0ec22b01
Other corruptions are still being talked about upstream but AFAICT it mainly applies when a qcow2 image is backed by XFS.
I just applied two patches mentioned above and pushed qemu-4.1.0-3 to [testing]. Please give it a try and let me know if you see any issues with this build.
For me the -3 package does not fix this problem.
https://bugs.launchpad.net/qemu/+bug/1850000
https://git.qemu.org/?p=qemu.git;a=commit;h=24552feb6ae2f615b76c2b95394af43901f75046
> qcow2_free_clusters failed: Invalid argument
in my log.
Reading the discussion on the bugs and commits, this seems relevant.
Haven't had any corruption though with qemu-4.1.0-5, so that's looking better.