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

    Backup size larger than it should be

    Scheduled Pinned Locked Moved Backup
    14 Posts 4 Posters 949 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.
    • K Offline
      kamil-v4 @tjkreidl
      last edited by

      @tjkreidl I can't see any hidden snapshots, only a single snapshot created by the delta backup.
      I will try moving the VM to another host, thanks for the advice.

      tjkreidlT 1 Reply Last reply Reply Quote 0
      • tjkreidlT Offline
        tjkreidl Ambassador @kamil-v4
        last edited by

        @kamil-v4 Not to another host, to another SR! The VM has to be moved to a different storage device. The host is irrelevant if within the same pool.

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kamil-v4 @tjkreidl
          last edited by

          @tjkreidl I had no other storage repository connected to that host, so I had to attempt to move it to another host, which has its own storage repository. Unfortunately, the VM/Backup size is still nearly 190GB.

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

            @kamil-v4 hi kami,

            the backup size is the size of the data block that have been used at least once, even if you remove the data, the blocks stays allocated, thus are saved when doing a key backup.

            I am not sure of what would be the best strategy to deflate this VHD on XCP-ng side, as I am working more on the backup side of the XCP-ng.XO stack

            tjkreidlT 1 Reply Last reply Reply Quote 0
            • tjkreidlT Offline
              tjkreidl Ambassador @florent
              last edited by tjkreidl

              @florent I am perplexed because thin provisioning should allow for coalescing. I would still try moving the VM to another SR and back again would again be my suggestion.

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

                @tjkreidl thin mode doesn't allocate space that is not needed. But once allocated, they stays there.
                I am curious if migration from on Sr to another works. If not I will look into this

                On the backup side, you can use a block based repository, each block are individually compressed. It should reduce a lot , especially if the blocks are full of zeros

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

                  Yes, don't mix coalesce and trim. SMAPIv1 doesn't support trim, so only regenerating the VHD (eg by moving it or copy it) will get rid of those empty blocks.

                  tjkreidlT 1 Reply Last reply Reply Quote 0
                  • tjkreidlT Offline
                    tjkreidl Ambassador @olivierlambert
                    last edited by

                    @olivierlambert Ah, for SSD drives, yes, trimming is a whole separate thing.

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

                      I'm talking about VHD trimming, which is unrelated on how it's stored behind 🙂 Obviously, to do this, the Dom0 needs to know from the VM which blocks are unused, which is given by trim commands.

                      Surprisingly, trim is available in the blkif protocol (used to communicate between the VM and the Dom0 & Xen). But it's not used in SMAPIv1, probably because of shared LVM on HBA or iSCSI (suspecting it cause some corruptions). It should work locally but was never implemented.

                      K 1 Reply Last reply Reply Quote 1
                      • K Offline
                        kamil-v4 @olivierlambert
                        last edited by

                        @olivierlambert @florent thank you for the suggestions.
                        So far I have attempted to do the following:

                        1. Remote backup to NFS
                        2. Remote backup to NFS target which is connected to another storage server using iSCSI
                        3. Move the VM from one SR to another (on a completely different pool)
                        4. Copy the VM to another pool

                        Unfortunately, my VM size is not reducing.

                        @florent said in Backup size larger than it should be:

                        thin mode doesn't allocate space that is not needed. But once allocated, they stays there.

                        This looks like an answer to me.
                        In the worst-case scenario, I will have to recreate the VM and copy the data onto it

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post