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

    Best way to determine whether files in the backups are still relevant

    Scheduled Pinned Locked Moved Backup
    11 Posts 3 Posters 795 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.
    • olivierlambertO Offline
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      Question for @florent I suppose 😛

      1 Reply Last reply Reply Quote 0
      • olivierlambertO olivierlambert moved this topic from Xen Orchestra on
      • florentF Offline
        florent Vates 🪐 XO Team @mauzilla
        last edited by

        @mauzilla Are you using full backup ( one xva file per backup) or delta differential ?
        delta can really reduce the space requirerement

        there can be some older cache.json.gz files, but they shouldn't take much space. If the backup aren't showing in the health panel as orphaned, either there is a bug (always possible, but we didn't change too much recently there) or you have some backup job with a long retention

        the main space usage should be in *.xva and *.vhd files. Can you make a query like
        # find / -type f -size +20G -name "*.xva" (adjust the size if necessary) , and then the same one with vhd ?

        Also, a remote can be mounted on multiple XO at once. Can you add the remote to the new XOA and open a ticket ?

        mauzillaM 2 Replies Last reply Reply Quote 0
        • mauzillaM Offline
          mauzilla @florent
          last edited by

          @florent Good morning @florent

          I once again have to thank you guys for your amazing support (even in a case like this). I have added the 2 remotes to our paid enterprise version (it's added verbatim as per our community version).

          Other info:

          • Backups are setup as incremental
          • Backups run either daily or weekly (2 backup jobs) but both configured the same
          • 1 concurrent backup
          • 2 Backup retention

          I will open a ticket now, thank you!

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

            @mauzilla the problem was with stales cache.json.gz file
            we clean everything up with @Bastien-Nollet , and now you can see the old backups in the UI. 5 of your vm take the most room, it should be easy to clean them

            Then we'll add a an additional cache cleaning task as a last line of defense against the dark arts broken cache

            1 Reply Last reply Reply Quote 1
            • mauzillaM Offline
              mauzilla
              last edited by

              @florent you guys are absolute geniuses, there isn't a company in the world that matches your quality support.

              I have a question though, say I have my backup set with 2 retentions on delta, and we do a full backup say each 20 backups. Am I right to assume that when the full backup occurs (so after 20 backups), in theory, there will be 2 full sets on the backup storage?

              Example

              Day 19:
              Full.vhd
              delta.vhd
              
              On day 20:
              oldfull.vhd (which is a merge of the day 19 full + delta)
              newfull.vhd (which is the new VM)
              
              Day 21:
              full.vhd (which is now the old newfull.vhd)
              delta.vhd (delta for day 21)
              

              If so, that means that if we have large VM's (some are 2.5TB in size), there will come a time that that VM will use up double it's size on the backup storage.

              Lastly, as we will be moving to XCP Pro + support in January, we want to move our backups from the now historical / community edition to the new one. I know at some point I saw you had moved to NBD backups and there is also an option to "test" the backups. Would this then make periodical full backups irrelevant as there would be no need to worry about backup corruption over time?

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

                @mauzilla thanks
                that was also the first ticket of @Bastien-Nollet

                Yes, when you make a key backup (full) it will take the double the space till we can delete the older key one.

                Maybe you could use an advanced feature of healthcheck : https://xen-orchestra.com/docs/backups.html#backup-health-check
                It means you will need more space on a host ( can be a spare/low performance), but it will restore the VM and launch a script to check integrity. That way you could be confident in not enforcing a key backup

                When you move your backups job, you should use a export and import config, that way the uuid will stay the same, and it won't force full backups

                NBD backup have some advantages (performance, CPU usage during backup), but it's not safer, since we are already confident on the legacy export, but sometimes, network, disk or even memory are lying.

                1 Reply Last reply Reply Quote 0
                • mauzillaM Offline
                  mauzilla @florent
                  last edited by

                  I'm back on this one, we've setup a test bench with a similar card, and can confirm we dont even see the interface anymore upon booting, and during boot we get the following:

                  7feb9002-f2bc-4211-b4c2-a814ca2d1bd4-image.png

                  As there is a flag we can set, I am following this guide but not sure if this is applicable to the filesystem of XCP (for one there is no /etc/default/grub file)

                  https://www.serveradminz.com/blog/unsupported-sfp-linux/

                  Anyone able to assist in which file I would need to set the "Fix the issue permanently" part?

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

                    @mauzilla Is this message intended for this topic ?

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

                      Sounds off-topic indeed 🙂

                      mauzillaM 1 Reply Last reply Reply Quote 0
                      • mauzillaM Offline
                        mauzilla @olivierlambert
                        last edited by

                        @olivierlambert whoops! Well spotted 🙂 Will post in the real one 🙂

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