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

    Backup failures after VHD to QCOW2 conversion

    Scheduled Pinned Locked Moved Unsolved Backup
    12 Posts 5 Posters 655 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

      @poddingue said:

      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
      
      poddingueP 1 Reply Last reply
      Reply Quote 1
      • poddingueP poddingue marked this topic as a question
      • poddingueP
        poddingue Vates 🪐 @SeriouZ
        last edited by

        Thanks for the versions. 👍
        If I read the changelogs right, sm-3.2.12-25.2 is one build after the 25.1 that @dthenot mentioned and still carries its QCOW2 patches, and the release note for blktap-3.55.5-12.3 says 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 why tap-ctl close times out on those snapshot disks, so that one is for @Team-Storage.
        I'd guess the SMlog from both hosts around one failed run is the first thing they'll ask for.

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

          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? 😃

          J 1 Reply Last reply
          Reply Quote 0
          • J
            john.c @SeriouZ
            last edited by john.c

            @SeriouZ said:

            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!

            1 Reply Last reply
            Reply Quote 0
            • 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.

                        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