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

    Detached VM Snapshots after Warm Migration

    Scheduled Pinned Locked Moved Backup
    19 Posts 3 Posters 140 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
      Pilow @DustyArmstrong
      last edited by

      @DustyArmstrong mmmm what do you mean by pool master and pool slave ?

      You have one pool with 2 hosts ? one master and one slave ?
      could you screenshot the HOME/Hosts page ?
      and the SETTINGS/SERVERS page ?

      DustyArmstrongD 1 Reply Last reply Reply Quote 0
      • DustyArmstrongD Offline
        DustyArmstrong @Pilow
        last edited by

        @Pilow Yes one pool, 2 servers (a master and a secondary/slave).

        2e9ca12d-21b4-4bf9-a7ac-e256b6e15652-image.png

        c042186d-ecbb-476b-ad6d-3f83a265bfd4-image.png

        I think I've realised per my last post update, when I warm migrated I didn't select "delete source VM", which has probably broken something since I retired the old hosts afterwards.

        I mainly just want to know the best method to wipe XO and start over so it can rebuild the database.

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          Pilow @DustyArmstrong
          last edited by

          @DustyArmstrong said in Detached VM Snapshots after Warm Migration:

          I mainly just want to know the best method to wipe XO and start over so it can rebuild the database.

          ha, to wipe XO 😲 , check the troubleshooting section of documentation here :
          https://docs.xen-orchestra.com/troubleshooting#reset-configuration

          it is a destructive command for your XO database ! 
          
          DustyArmstrongD 1 Reply Last reply Reply Quote 0
          • DustyArmstrongD Offline
            DustyArmstrong @Pilow
            last edited by DustyArmstrong

            @Pilow Yeah I don't particularly want to, but in the absence of any alternatives! I'll give it a day in case anyone responds, otherwise I'll just wipe it - assuming it leaves the hosts untouched. I just need to do whatever needs to be done to re-associate the VM UUIDs and would hope a total rebuild of XO would do that.

            A 1 Reply Last reply Reply Quote 0
            • A Online
              acebmxer @DustyArmstrong
              last edited by acebmxer

              @DustyArmstrong

              Try to deploy XO from sources and connect host to that and see if problem persist.

              I use this script for install - https://github.com/ronivay/XenOrchestraInstallerUpdater

              Just dont do what i did and connect SR to seperate pools 🙂

              DustyArmstrongD 1 Reply Last reply Reply Quote 0
              • DustyArmstrongD Offline
                DustyArmstrong @acebmxer
                last edited by

                @acebmxer My container is built from the sources, only fairly recently. I may try rebuilding it with the latest commit and deploy completely new, if that would work. I'm just trying to avoid a situation where I end up with even more confusion in the database.

                In the end, my ultimate goal is just to re-associate the VMs with XO and the wider XAPI database. Whatever method will achieve that should work here as I'm starting from scratch anyway - for the most part. Whatever way achieves that cleanly really, I'm just a bit unsure how best to do it as moving XO clearly caused me issues, need to understand how to rebuild the VM associations.

                DustyArmstrongD 1 Reply Last reply Reply Quote 0
                • DustyArmstrongD Offline
                  DustyArmstrong @DustyArmstrong
                  last edited by DustyArmstrong

                  Looks like I unfortunately blew my chance to do this cleanly.

                  Decided to plug in my old hosts again, just to see if XO felt the VM - despite being on a new host - was still associated with or on the old host. Turns out that was the right assumption, as when I snapshotted a problem VM, it did not have the health warning. Took that to mean if I removed the old VMs, the references would go with it, but alas, I should've snapshotted all of them before doing that.

                  Back to square 1, but now the one VM I did snapshot no longer has the health warning. Completely wiped XO, still getting the same problem. Kind of at a loss now.

                  I would still really appreciate any assistance.

                  DustyArmstrongD P 2 Replies Last reply Reply Quote 0
                  • DustyArmstrongD Offline
                    DustyArmstrong @DustyArmstrong
                    last edited by

                    Well, scratch the help, I have fixed it.

                    Bad VM:

                    xe vm-param-list uuid={uuid} | grep "other-config"

                    other-config (MRW): xo:backup:schedule: one-time; xo:backup:vm: {uuid}; xo:backup:datetime: 20260214T18:13:03Z; xo:backup:job: 97665b6d-1aff-43ba-8afb-11c7455c16ff; xo:backup:sr: {uuid}; auto_poweron: true; base_template_name: Debian Buster 10; [...]

                    Clean VM:

                    other-config (MRW): auto_poweron: true; base_template_name: Debian Buster 10; [...]

                    Stale references to my old backup job causing the VM to disassociate with the VDI chain. Removing the extra config resolved it. Simple when you know where to look.

                    xe vm-param-remove uuid={uuid} param-name=other-config param-key=xo:backup:job
                    xe vm-param-remove uuid={uuid}  param-name=other-config param-key=xo:backup:sr
                    xe vm-param-remove uuid={uuid}  param-name=other-config param-key=xo:backup:vm
                    xe vm-param-remove uuid={uuid}  param-name=other-config param-key=xo:backup:schedule
                    xe vm-param-remove uuid={uuid}  param-name=other-config param-key=xo:backup:datetime
                    

                    VMs now snapshot clean.

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      Pilow @DustyArmstrong
                      last edited by

                      @DustyArmstrong I have hard times to understand how the VM is aware of the XOA it is/was attached to...

                      a VM resides on a host
                      a Host in in a pool
                      a Pool is attached to a (or many) XO/XOA

                      how the hell your VM is aware of its previous XO ? 😕

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

                        lol your previous post answered my questions. other-config.

                        DustyArmstrongD 1 Reply Last reply Reply Quote 0
                        • DustyArmstrongD Offline
                          DustyArmstrong @Pilow
                          last edited by

                          @Pilow Time for a drink, I think.

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