XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Backup failures after VHD to QCOW2 conversion

    Scheduled Pinned Locked Moved Unsolved Backup
    16 Posts 5 Posters 1.3k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      SeriouZ
      last edited by

      Hi everyone

      Here are the logs (anonymized) for one complete backup run.
      Thanks for taking a look!

      poddingueP 1 Reply Last reply
      Reply Quote 0
      • poddingueP
        poddingue Vates 🪐 @SeriouZ
        last edited by

        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.

        1 Reply Last reply
        Reply Quote 0
        • S
          SeriouZ
          last edited by

          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.

          1 Reply Last reply
          Reply Quote 0
          • S
            SeriouZ
            last edited by

            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?

            1 Reply Last reply
            Reply Quote 0
            • olivierlambertO
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              Ping @Team-Storage

              Z 1 Reply Last reply
              Reply Quote 0
              • Z
                zorro @olivierlambert
                last edited by

                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 pipe

                The 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.

                S 1 Reply Last reply
                Reply Quote 0
                • S
                  SeriouZ
                  last edited by

                  Hi everyone

                  Is there any update on this issue?
                  Have you had a chance to review the logs from both hosts @Team-Storage?

                  1 Reply Last reply
                  Reply Quote 0
                  • S
                    SeriouZ @zorro
                    last edited by

                    @zorro Thanks for sharing your findings

                    I increased the HTTP inactivity timeout following the XO troubleshooting guide, and the test appears to be working. After roughly 30 minutes, the export started without errors or full-backup fallbacks.

                    This supports your hypothesis that the QCOW2 delta calculation may take longer than the default five-minute timeout allows, although I havent yet confirmed where that time is spent

                    1 Reply Last reply
                    Reply Quote 0
                    • S
                      SeriouZ
                      last edited by

                      I’ve now correlated the XO and host logs, which helps narrow down where the time is spent.

                      The qemu-img info and qemu-img map calls complete within seconds, but the subsequent host-side QCOW2 diff-export process remains active much longer. For example:

                      09:47:13 Executing …/qcow2-to-stdout.py <snapshot> --diff <reference> …
                      10:08:57 ConnectionResetError: [Errno 104] Connection reset by peer
                      

                      At exactly 10:08:57, XO logs:

                      xo:fs:abstract INFO will output stream
                      

                      For another VM, the corresponding interval was approximately 18 minutes, again ending when XO opened the backup output streams.

                      This points to the preparation of the QCOW2 diff stream as the main delay. The connection resets may be caused by XO closing the preparatory HTTP stream before continuing through NBD, rather than an actual backup failure.

                      Z 1 Reply Last reply
                      Reply Quote 0
                      • Z
                        zorro @SeriouZ
                        last edited by

                        @SeriouZ
                        Thanks for sharing this fix. Increasing the HTTP inactivity timeout worked for me as well. I had two larger VMs, both around 500 GB, consistently falling back to full replication. This resolved the issue.

                        1 Reply Last reply
                        Reply Quote 0

                        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
                        • First post
                          Last post