Backup failures after VHD to QCOW2 conversion
-
rpm -q sm blktap
Both hosts have the following versions installed:
sm-3.2.12-25.2.xcpng8.3.x86_64 blktap-3.55.5-12.3.xcpng8.3.x86_64 -
P poddingue marked this topic as a question
-
Thanks for the versions.

If I read the changelogs right,sm-3.2.12-25.2is one build after the 25.1 that @dthenot mentioned and still carries its QCOW2 patches, and the release note forblktap-3.55.5-12.3says it fixed a tapdisk crash during backups (https://xcp-ng.org/forum/post/109336).
So unless I missed one, you already have every fix I know about.
I think this might be a different bug. I can't tell from here whytap-ctl closetimes out on those snapshot disks, so that one is for @Team-Storage.
I'd guess theSMlogfrom both hosts around one failed run is the first thing they'll ask for. -
Thanks for your help! I have the SMlogs from both hosts ready, but they’re too large to upload here, even compressed
Whats the best way to share them with you or Team-Storage?

-
Thanks for your help! I have the SMlogs from both hosts ready, but they’re too large to upload here, even compressed
Whats the best way to share them with you or Team-Storage?

@seriouz Have you tried using zstd at a high or ultra compression level, to see if you can get it smaller?
You may need to use a Vates recommended or provided cloud temporary file storage service, outside of attaching to your forum post or PM!
-
Hi everyone
Here are the logs (anonymized) for one complete backup run.
Thanks for taking a look! -
Thanks for sharing those. I can't read SMlogs well enough to add anything useful myself, so this is really one for @Team-Storage.
One thing though: if I read the link right, it expires on 23 November, so it would be good if someone grabbed the files before then.
-
here is another link valid for 7 days @Team-Storage
I also created a new backup job. The initial full backup completed successfully, but the incremental backups after still fail with the same errors as before.
-
I noticed that a new SM update candidate sm-3.2.12-25.3 is available with QCOW2 activation and GC cleanup fixes. Both hosts currently run 25.2.
Could these fixes be relevant to the tap-ctl close timeouts and snapshot cleanup failures in our logs?
-
Ping @Team-Storage
-
Hi, I think I'm hitting the same issue, on the same versions (sm-3.2.12-25.2, blktap-3.55.5-12.3, XCP-ng 8.3, XOA stable fully updated). In my case it's incremental replication between two local EXT qcow2 SRs (source Xcpng-02, target Xcpng-03). It's consistent rather than intermittent, and only one VM's 425 GiB disk (~341 GiB used) is affected; 15 other VMs replicate incrementally fine. A fresh reseed doesn't help: the full succeeds, then the next incremental fails again. CBT on or off made no difference. My disks were never VHD. They were imported from VMware directly as qcow2.
I traced the timing on the target host, in case it helps narrow it down:
18:58:00 qcow2-to-stdout.py <replica disk> --diff <replica snapshot> (tapdisk 2181814)
19:04:57 tap-ctl close -p 2181814 -m 4 -t 120 failed ... Connection timed out, status=110
-> SR_BACKEND_FAILURE_1200 on VBD.unplug_force
(xo-server: BodyTimeoutError, "Couldn't disconnect ... from dom0", "can't compute delta ..., fall back to a full")
19:06:59 same tap-ctl close timeout on retry
19:08:14 qcow-tool failed, returning VDI_IO_ERROR ... BrokenPipeError: [Errno 32] Broken pipeThe smaller disk of the same VM (~93 GiB used) completes the same diff in about 3 minutes. qemu-img map on these files takes under 2 seconds, so the time seems to be inside the diff itself. From a quick read of qcow2-to-stdout.py, --diff appears to read and compare all allocated clusters, so for a large disk it can run more than 5 minutes without sending anything.
Here's what I think is happening, though I may be wrong:
- The diff runs for a long time without sending any data back to XO.
- After about 5 minutes of silence, xo-server gives up (BodyTimeoutError) and tries to unplug the disk.
- The unplug fails because the diff is still reading the disk through tapdisk, so tap-ctl close times out (SR_BACKEND_FAILURE_1200).
If that's right, the 1200 error and the stuck VBD are side effects. The real problem would be how long the diff takes on a large disk.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login