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

    Timestamp lost in Continuous Replication

    Scheduled Pinned Locked Moved Backup
    27 Posts 7 Posters 760 Views 6 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.
    • florentF Offline
      florent Vates 🪐 XO Team
      last edited by

      @kratos @pilow is it possible that your replications are in the same pool ?

      K 1 Reply Last reply Reply Quote 0
      • K Offline
        kratos @florent
        last edited by

        @florent
        Yes, that is absolutely correct. I have a pool with two members without shared storage. Some VMs run on the master, and some on the second pool member. I replicate between the pool members so that, if necessary, I can start the VMs on the other member. This may not be best practice.

        florentF P J 3 Replies Last reply Reply Quote 0
        • florentF Offline
          florent Vates 🪐 XO Team @kratos
          last edited by

          @kratos you probably heard the sound of my head hitting my desk when I found the cause
          the fix is in review, you will be able to use it in a few hours

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            kratos @florent
            last edited by

            @florent
            I’m a developer myself, so I can totally relate—just when you think everything is working perfectly, someone like me comes along 🙂
            I’m really glad I could help contribute to finding a solution, and I’ll report back once I’ve tested the new commit. Thanks a lot for your work.

            However, this does raise the question for me: is my use case for continuous replication really that unusual?

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

              @kratos no, it's not that rare. I even saw in the wild replication on the same storage (wouldn't recommend it , though )

              the cross pool replication is a little harder since the objects are each split on their own xen api, so the calls must be routed to the right one
              We tested the harder part, not the mono xapi case

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

                @kratos said:

                This may not be best practice.

                in a two hosts pool, if your replicated VMs live on the Master, and it's gone, you won't be able to start the replicated VMs

                you will first need to transition slave to master

                indeed CR is better to another pool 😃

                1 Reply Last reply Reply Quote 1
                • P Offline
                  ph7
                  last edited by ph7

                  updated to f5468 and it seems to work fine in my home lab lab
                  I will update my homelab "production" later

                  I have retention of 2
                  In XO I only see 1 VM and I think this is intended
                  I get 2 snaps and I can restore 2 different VMs from them

                  I think You nailed it 🙂

                  edit: And delta is back

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

                    @ph7 that is a good news
                    thank you for your patience and help

                    1 Reply Last reply Reply Quote 2
                    • P ph7 referenced this topic
                    • J Offline
                      joeymorin @kratos
                      last edited by joeymorin

                      I observed similar behaviour.

                      Two pools. Pool A composed of two hosts. Pool B is single-host. B runs a VM with XO from source. Two VMs on host A1 (on local SR), one VM on host B1 A2 (on local SR).

                      Host A2 has a second local SR (separate physical disc) used as the target for a CR job.

                      CR job would back up all four VMs to the second local SR on host A2.

                      The behaviour observed was that, although the VM on B would be backed up (as expected) as a single VM with multiple snapshots (up to the 'replication retention'), the three other VMs on the same pool as the target SR would see a new full VM created for each run of the CR job. That rather quickly filled up the target SR.

                      I noticed the situation was corrected by a commit on or about the same date reported by @ph7.

                      Incidentally, whatever broke this, and subsequently corrected it, appears to have corrected another issue I reported here. I never got a satisfactory answer regarding that question. Questions were raised about the stability of my test environment, even though I could easily reproduce it with a completely fresh install.

                      Thanks for the work!

                      edit: Correction B1 A2

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

                        @joeymorin said:

                        I observed similar behaviour.

                        Two pools. Pool A composed of two hosts. Pool B is single-host. B runs a VM with XO from source. Two VMs on host A1 (on local SR), one VM on host B1 A2 (on local SR).

                        Host A2 has a second local SR (separate physical disc) used as the target for a CR job.

                        CR job would back up all four VMs to the second local SR on host A2.

                        The behaviour observed was that, although the VM on B would be backed up (as expected) as a single VM with multiple snapshots (up to the 'replication retention'), the three other VMs on the same pool as the target SR would see a new full VM created for each run of the CR job. That rather quickly filled up the target SR.

                        I noticed the situation was corrected by a commit on or about the same date reported by @ph7.

                        Incidentally, whatever broke this, and subsequently corrected it, appears to have corrected another issue I reported here. I never got a satisfactory answer regarding that question. Questions were raised about the stability of my test environment, even though I could easily reproduce it with a completely fresh install.

                        Thanks for the work!

                        edit: Correction B1 A2

                        sometimes it's hard to find a n complete explanation without connecting to the hosts and xo, and going through a lot of logs , which is out of the scope of community support

                        I am glad the continuous improvement of the code base fixed the issue . We will release today a new patch, because migrating from 6.2.2 to 6.3 for a full replication ( source user that updated to the intermediate version are not affected )

                        1 Reply Last reply Reply Quote 0
                        • P ph7 referenced this topic

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post