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

    restore metadata for pool -> incompatible version

    Scheduled Pinned Locked Moved Backup
    12 Posts 4 Posters 164 Views 4 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.
    • DanpD Offline
      Danp Pro Support Team @payback007
      last edited by

      @payback007 Have you tried restoring the metadata prior to installing patches on the host?

      1 Reply Last reply Reply Quote 0
      • P Offline
        payback007
        last edited by

        @danp Restoring with installation from latest .iso the error was different. Don't remember the exact failures, but there was a statement about "missing columns". Searching the forum brought me to your post in 06/2024 to apply all the available patches. Patched then with "yum" and 155 packages were updated. Then the new failure with "restore incompatible version" came up. Due to missing XO capability that moment, I did the update using command line, maybe that's the failure?

        1 Reply Last reply Reply Quote 0
        • DanpD Offline
          Danp Pro Support Team
          last edited by

          My understanding is that you can only restore metadata to the exact same version of xapi. Does your old pool still exist?

          ForzaF 1 Reply Last reply Reply Quote 0
          • P Offline
            payback007
            last edited by

            No the old pool is fully gone. There was a risk for compromised network incl. hypervisor password. So the pool is destroyed. VMs are still available or available by backup. Need to access some of them without network to backup so data and to re-install win11-VMs without new activation. For the win11-VMs I need all the settings/data not only the VHD disk file.

            And possibility to upgrade to different xcp-ng-versions for restore? At the moment the hypervisor is at latest 8.3 .iso -> so at least I think I Need to update to the latest version before 09/12/2025.

            1 Reply Last reply Reply Quote 0
            • ForzaF Offline
              Forza @Danp
              last edited by

              @Danp said in restore metadata for pool -> incompatible version:

              My understanding is that you can only restore metadata to the exact same version of xapi. Does your old pool still exist?

              This is quite the limitation. Is it documented?

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

                Let me ping @team-xapi-network

                1 Reply Last reply Reply Quote 0
                • P Offline
                  payback007
                  last edited by

                  So just for my understanding. For restoring a metadata backup or maybe also other backups I need the correct XAPI version, but a XCP-ng user is not able to select/control the needed version? Sounds lika a chicken-egg-problem…

                  Is it not possible to have a new .iso-Image, whenever such updates are provided? It would be an easy way on case of new Installation.

                  1 Reply Last reply Reply Quote 0
                  • DanpD Offline
                    Danp Pro Support Team
                    last edited by

                    If you look at the metadata files on the backup remote, you should see two files: data and metadata.json.

                    Search either of these for the term "xapi_build", and that should let you know the version of xapi that was active when the backup was made. With this additional information, it should be possible to calculate which updates to apply to your host.

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      payback007
                      last edited by

                      Ok, found the value, „xapi_build: 25.27.0“

                      How can I upgrade to this special version?

                      DanpD 1 Reply Last reply Reply Quote 0
                      • DanpD Offline
                        Danp Pro Support Team @payback007
                        last edited by

                        *** Warning ***

                        This process and the attached file is only appropriate for restoring towards XAPI 25.27.0. Use this procedure at your own risk. 😉

                        We recently put together a solution for a customer that had this exact issue. Below are the basic instructions to update freshly installed 8.3 hosts to the set of updates that were available on October 24th, including XAPI 25.27.0 --

                        • Install XCP-ng 8.3.0 LTS
                        • scp the attached package_list_for_update.txt to the hosts /root. This file contains package versions from our update repository on October 24th.
                        • then, on the hosts, from /root: cat package_list_for_update.txt | xargs yum update-to -y
                          • This will output a lot of messages saying that this or that package is not found. That's expected. Then it will proceed to install the updates. In my tests, 73 of them.
                          • Once the update completes, reboot the host.
                        • Restore the XAPI metadata
                        • Restart XAPI
                        • Verify that XAPI is running.
                        • Install the remaining updates with yum update -y.
                        • Reboot

                        package_list_for_update.txt

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