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

    Timestamp lost in Continuous Replication

    Scheduled Pinned Locked Moved Backup
    25 Posts 6 Posters 561 Views 5 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 @kratos
      last edited by

      @kratos @florent shouldn't he have one VM with 4 snapshots ? and delta replicas between each snap ?

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

        @Pilow
        actually it looks like this:

        bf9a378e-300e-4301-8ddd-126551c258ce-image.jpeg

        edit:

        Log of last run:
        d5453e94-ec34-44d6-8bd3-97f68aa242b6-image.jpeg

        {
          "data": {
            "mode": "delta",
            "reportWhen": "failure"
          },
          "id": "1773822934377",
          "jobId": "a95ac100-0e20-49c5-9270-c0306ee2852f",
          "jobName": "replicate_to_srv002",
          "message": "backup",
          "scheduleId": "1014584a-228c-4049-8912-51ab1b24925a",
          "start": 1773822934377,
          "status": "success",
          "infos": [
            {
              "data": {
                "vms": [
                  "224a73db-9bc6-13d6-cc8e-0bf22dbede73"
                ]
              },
              "message": "vms"
            }
          ],
          "tasks": [
            {
              "data": {
                "type": "VM",
                "id": "224a73db-9bc6-13d6-cc8e-0bf22dbede73",
                "name_label": "privat"
              },
              "id": "1773822936247",
              "message": "backup VM",
              "start": 1773822936247,
              "status": "success",
              "tasks": [
                {
                  "id": "1773822937378",
                  "message": "snapshot",
                  "start": 1773822937378,
                  "status": "success",
                  "end": 1773822940361,
                  "result": "d0ba1483-f5ae-ce72-fb4f-dbd9eafbf272"
                },
                {
                  "data": {
                    "id": "8205e6c4-4d8f-69d9-6315-9ee89af8e307",
                    "isFull": true,
                    "name_label": "Local storage",
                    "type": "SR"
                  },
                  "id": "1773822940361:0",
                  "message": "export",
                  "start": 1773822940361,
                  "status": "success",
                  "tasks": [
                    {
                      "id": "1773822942354",
                      "message": "transfer",
                      "start": 1773822942354,
                      "status": "success",
                      "tasks": [
                        {
                          "id": "1773823497635",
                          "message": "target snapshot",
                          "start": 1773823497635,
                          "status": "success",
                          "end": 1773823500290,
                          "result": "OpaqueRef:53bceb07-a69c-504d-e824-28f5384cb763"
                        }
                      ],
                      "end": 1773823500290,
                      "result": {
                        "size": 61941481472
                      }
                    },
                    {
                      "id": "1773823501512",
                      "message": "health check",
                      "start": 1773823501512,
                      "status": "success",
                      "tasks": [
                        {
                          "id": "1773823501515",
                          "message": "cloning-vm",
                          "start": 1773823501515,
                          "status": "success",
                          "end": 1773823504720,
                          "result": "OpaqueRef:43e9644f-fc99-963a-4a54-da3b845e823b"
                        },
                        {
                          "id": "1773823504722",
                          "message": "vmstart",
                          "start": 1773823504722,
                          "status": "success",
                          "end": 1773823545662
                        }
                      ],
                      "end": 1773823549312
                    }
                  ],
                  "end": 1773823549312
                }
              ],
              "end": 1773823549319
            }
          ],
          "end": 1773823549319
        }
        
        1 Reply Last reply Reply Quote 0
        • florentF Online
          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 2 Replies Last reply Reply Quote 0
            • florentF Online
              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 Online
                  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 Online
                        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

                        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