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

    NBD now causes excessive backup data size

    Scheduled Pinned Locked Moved Backup
    5 Posts 3 Posters 362 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.
    • A Offline
      Andrew Top contributor
      last edited by

      @olivierlambert @florent @julien-f Since the big XO update push (after bee0eb9), backup (Continuous Replication and Delta) using NBD now has huge minimum data sizes (now running on master b0e00).

      VMs that are 'off' normally have an update size of a few KBytes. Now (with NBD enabled) the update is 256MBytes for no reason. Turning off NBD returns backups to the normal size.

      It may not see like a lot, but it adds up in both storage and transfer time.

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

        Weird 🤔 Maybe @florent knows why.

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

          @olivierlambert I can reproduce it . I will look for the cause ( and a fix)

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

            @Andrew Once more, thanks Andrew for your observation skills.

            There was an error when skipping the batmap, which lead to misinterpreting part of the batmap as the BAT, and not reading the end of the BAT here https://github.com/vatesfr/xen-orchestra/commit/fc1357db937ecc458e1b7d780a434c09f5463ccc#diff-cbe0b4ffbcc4f57db4dbbb7b00a7e1f333faf8c098f4137f86c7f8a75be1fee1L50

            Can you try this branch, it revert the header table offset computation at the right step
            https://github.com/vatesfr/xen-orchestra/pull/7264 ?

            I will investigate more tomorrow to see the impacts on the transferred backups, as they may be broken due to not reading the right block addresses.

            fbeauchamp opened this pull request in vatesfr/xen-orchestra

            closed fix(vhd-lib/createStreamNbd): skip original table offset before overwriting #7264

            0 fbeauchamp committed to vatesfr/xen-orchestra
            refactor(nbd-client): remove unused method and default iterator
            A 1 Reply Last reply Reply Quote 1
            • A Offline
              Andrew Top contributor @florent
              last edited by

              @florent I see it has been merged into master. Yes, transfer size seems to be back to before. I have not checked for damage. At worst I can just force a full backup.

              1 Reply Last reply Reply Quote 0
              • A Andrew referenced this topic on
              • First post
                Last post