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

    Allowing replicated server to start

    Scheduled Pinned Locked Moved Xen Orchestra
    4 Posts 2 Posters 306 Views 1 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.
    • mauzillaM Offline
      mauzilla
      last edited by mauzilla

      We've converted one of our hypervisors to XCPNG this weekend with new storage. I then setup CR to replicate one of our primary VM's across to the new server. The VM is about 2TB in size. I then followed the following steps:

      • I shutdown the virtual server on the origin host
      • I renamed the VM on the new server
      • I removed the tag that said "continuous replication" - I believe this is added by default when CR is setup
      • I started the VM on the new server. I got a warning saying that the VM cannot be started but I opted to force start as the CR is now "complete" and the server was already shutdown on the origin server

      What I failed to do however was to delete the backup job, and simply be luck noted this morning the storage is 95% full and it was now busy replicating the shutdown VM accross to the storage 🙂 I restarted the toolstack on both servers and thankfully the backup jobs stopped and on the new server the "pending" vhd files was deleted and storage is resolved.

      If anyone ever uses CR as a method to migrate large VM's from 1 server to another, once migrated, DO NOT FORGET TO DELETE THE BACKUP JOB.

      Over to the question, now that I removed the tag, renamed the VM and deleted the backup job, will the warning that that VM cannot start go away automatically or is there another setting that I need to set to tell XO that this is now the active VM?

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

        This is exactly what we did for our own migration from Intel to AMD EPYC servers. That's often the best option to minimize downtime when live migration isn't possible. We call it "warm migration" here 😆

        Anyway, back to your question: as soon you force started the VM in Xen Orchestra, this will remove the warning on start for ever.

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

          @olivierlambert you guys rock, thank you for all your hard work! Noted regarding the warning.

          What was strange this time around was we've actually warm migrated another VM to new storage a month or so ago, and after the migration I shutdown the origin VM and attempted to do a last CR to ensure I get all of the data across. I however recalled that the backup did not want to run and I assumed it was probably because a shutdown VM cannot be CR. The backup job however of yesterday did indeed copy across the shutdown VM (or attempted to). Is there such a restriction that does not allow CR on a shutdown VM? We're doing another warm migrate in 2 weeks time and would obviously prefer to ensure all data is copied across as appose to a window period of data loss.

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

            There's no issue nor restriction to replicate a shutdown VM.

            CR will work as long as the destination VM never booted (otherwise destination blocks will be modified, so you understand now why we should block boot except if you really know what you do 😉 )

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