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

    Error mirroring full backups to backblaze b2

    Scheduled Pinned Locked Moved Backup
    7 Posts 3 Posters 166 Views 3 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.
    • P Offline
      pedro_udifar
      last edited by

      Hello forum!

      I recently begun mirroring my full backups to backblaze and I've been getting the error "maximum size allowed is (your minPartSize for the chunk)"

      e9df4605-45a6-494e-912c-6e48f50615ab-image.jpeg

      This error was supposed to be fixed, earlier this year, but I'm still getting it.
      Actually PR #9396 might only fix direct backups and not mirror backups...
      I'm running xo built last week. Object lock is set to 0 at backblaze for the time being, but I plan to turn it whenr this problem is over.

      This may be caused because I'm mirroring from a local nfs remote (not encripted) to backcblaze remote (encripted) ? Maybe this scenario wasn't tested.

      Anyway, everytime I run the mirror job the larger VMs would fail and all VMs would show warnings about issues checking XVA:

      97d973ab-83b9-4981-917e-efb374c879c2-image.jpeg

      I've just bumped minPartSize to 100 000 000 (following the recomendation from Backblaze and hope that the maximum size allowed error goes away, though the warnings will still be there.

      Thank you,
      Pedro

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

        Thanks for the detailed write-up, Pedro.
        I'm not a backup expert, far from it. but you might be right that https://github.com/vatesfr/xen-orchestra/pull/9396 only fixed the size estimation for direct full backups, not the mirror path. 🤔
        Your error is the same as the maximum size allowed one, just twelve bytes over 209715200000. Before this turns into a GitHub issue, it would help to know whether it reproduces on a fresh mirror job and whether bumping minPartSize actually cleared it, so we can be sure it's the mirror code and not the B2 remote settings.
        The object storage docs list Backblaze B2 as supported (https://docs.xen-orchestra.com/xo5/object-storage-support#supported-storage-providers) but don't say much about part-size tuning.
        If it's awkward to test in isolation, a mention to @Team-XO-Backend is probably the quickest route, since they own the backup job code.
        The XVA checksum warnings in your second screenshot look like a separate non-blocking clean VM directory step rather than the cause.
        I hope that points somewhere useful! 🤞

        fbeauchamp opened this pull request in vatesfr/xen-orchestra

        closed fix(backups): size estimation of full backups #9396

        florentF 1 Reply Last reply Reply Quote 2
        • florentF Online
          florent Vates 🪐 XO Team @poddingue
          last edited by

          @poddingue said:

          Thanks for the detailed write-up, Pedro.
          I'm not a backup expert, far from it. but you might be right that https://github.com/vatesfr/xen-orchestra/pull/9396 only fixed the size estimation for direct full backups, not the mirror path. 🤔
          Your error is the same as the maximum size allowed one, just twelve bytes over 209715200000. Before this turns into a GitHub issue, it would help to know whether it reproduces on a fresh mirror job and whether bumping minPartSize actually cleared it, so we can be sure it's the mirror code and not the B2 remote settings.
          The object storage docs list Backblaze B2 as supported (https://docs.xen-orchestra.com/xo5/object-storage-support#supported-storage-providers) but don't say much about part-size tuning.
          If it's awkward to test in isolation, a mention to @Team-XO-Backend is probably the quickest route, since they own the backup job code.
          The XVA checksum warnings in your second screenshot look like a separate non-blocking clean VM directory step rather than the cause.
          I hope that points somewhere useful! 🤞

          nice catch
          and the mirror path is easier to fix . Thaks @pedro_udifar and @poddingue we will fix it asap

          will it be possible to test a potential fix @pedro_udifar , since it's often specific to a provider ( and need huge VM to work )?

          florentF 1 Reply Last reply Reply Quote 2
          • florentF Online
            florent Vates 🪐 XO Team @florent
            last edited by

            now that I am in front of the source code , it is already getting the real size, so it should compute the right size

            are the source or destination encrypted ?

            florentF 1 Reply Last reply Reply Quote 0
            • florentF Online
              florent Vates 🪐 XO Team @florent
              last edited by

              @pedro_udifar we have found a clue , if the destination is encrypted and the source is not

              can you test this branch ? https://github.com/vatesfr/xen-orchestra/pull/10061
              if you are using a xoa, we can deploy the fix if you open a support tunnel

              fbeauchamp opened this pull request in vatesfr/xen-orchestra

              open fix(fs): compute the output stream precisely when encrypted #10061

              1 Reply Last reply Reply Quote 2
              • P Offline
                pedro_udifar
                last edited by

                Hello Poddingue and Florent,

                I started duplicating "default" minPartSize but the larger VMs we're still failing to mirror. After that, I found that Bacblaze has a recommended chunk size of minPartSize=100000000 and, with this setting, all my VMs completed without that specific error.
                (My largest VM compressed backup is about 450 GB)

                31fe31fc-9b8e-4b7d-b960-1b1f711a4901-image.jpeg
                https://www.backblaze.com/docs/cloud-storage-large-files
                In my case, the recommendPartSize returned was 100000000.

                Since I was also getting the other warnings "Issue checking XVA" and "XVA might be broken", most o f the times I would wipe de backblaze bucket and start with a new job no XO (so that I could be sure it was not about the retention settings of this mirror job).

                Replication source is on a local NFS Ztsd compressed, not encripted.
                Replication destinations is Backblaze with encription. Object lock is turned off (XO can delete and change the files without restrictions)

                I'm still getting the XVA warnings and my next step was to run a test turning encription on, on the local 1st tier nfs remote.

                The sizes reported locally and on backblaze have very different sizes, which I guess is to be expected on this scenario.

                Local:
                839a2c6d-3f6c-44fe-8319-d0a54ed9188d-image.jpeg

                Backblaze:
                11eecec4-7d90-4216-b891-7f881c8421c8-image.jpeg

                In my planned backup pipeline, I am planning to turn on object lock on backblaze, making sure it's aligned with mirror retention settings on XO thoug I'm not sure this will work nice with metadata json files. What do you guys think?

                I'll gladly test the fix when it's ready. Is already commited?

                Thank you for your help,
                Pedro

                florentF 1 Reply Last reply Reply Quote 0
                • florentF Online
                  florent Vates 🪐 XO Team @pedro_udifar
                  last edited by

                  @pedro_udifar object lock works quite well with xo
                  it is automatically detected if the s3 user has enough privilege to see if object lock is enabled

                  the main point is that it won't create "cache.json.gz" files since theses files must be updated, so the backup listing is a little slower

                  note that XO retention should be at least 1 more than object lock . At worst you will have error , saying that XO coudn't delete an old backup

                  The fix is on a separated branch : fix_s3_nonencrypted_to_encrypted_xva ( PR : https://github.com/vatesfr/xen-orchestra/pull/10061 )

                  fbeauchamp opened this pull request in vatesfr/xen-orchestra

                  open fix(fs): compute the output stream precisely when encrypted #10061

                  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