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

    Misleading messages during restore from backup

    Scheduled Pinned Locked Moved Backup
    11 Posts 3 Posters 47 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
      peo
      last edited by

      Hi,

      I have seen this before, but not reported it. During a restore of a backup of a VM, to another host, the message during restore is a bit misleading.
      I'm restoring from the remote named "xcp-ng-appservers" to (as indicated by the ongoing status) "Local h2 SSD new". The misleading part is "(on xcp-ng-1)", as I restore it to a SR on "xcp-ng-2" (and will run it from there).

      Maybe a simple fix would be to just make the meaning of the "on" a bit clearer, or just remove it (the backed up machine runs on 'xcp-ng-1', and I will have my duplicate from the latest backup started on 'xcp-ng-2')

      xo-misleading-restore-message.png

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

        Hi,

        What do you mean, like it's a local SR? (so it should be on the host with the local SR?)

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

          @olivierlambert The source machine for the backup is on local SR on 'xcp-ng-1'. I'm restoring it to a local SR on 'xcp-ng-2' (the backup is read from a remote SR)

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

            I'm not sure to get it. If it's a restore, the source is not a SR but a BR. The question is the destination SR, so you do confirm it's a local SR to h2?

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

              @olivierlambert I can make it even more confusing 🙂

              But first, you're correct about me misnaming the BR as "Remote SR".

              Just found out that the machine I backed up is NOT running on xcp-ng-1, but on xcp-ng-3 (I assumed it was xcp-ng-1 because of the message):

              xo-misleading-restore-source-machine.png

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

                XO doesn't care where the previous/existing VM is running, restore creates an entirely new VM, so I'm not sure to get it either 🤔

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

                  @olivierlambert but the "importing content" message is incorrect:
                  "on SR Local h2 SSD new (on xcp-ng-1)"

                  That's the problem (not to where it's restored to, and has to be run from because it's a local SR)..

                  In the message, what do "xcp-ng-1" have to do with this operation ? It's not involved at all..

                  xo-local-SRs.png

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

                    It's where the task is hosted. XO does not invent it, just fetch it from XAPI. It's using exactly the "resident on" field from there: https://xapi-project.github.io/xen-api/classes/task.html

                    So it's not an XO "problem". I don't know the mechanism behind the "resident on" logic, so pinging @Team-XAPI-Network

                    P gthvn1G 2 Replies Last reply Reply Quote 0
                    • P Offline
                      peo @olivierlambert
                      last edited by

                      @olivierlambert Thanks, that explains the "on .." part of the message, and as you mention, it's not a "problem", but just confusing in the context of that full message.
                      The optimal would of course be that the task was launched on the host that is "closest" to the SR, in this case a local SR on xcp-ng-2.

                      This one (unrelated list of previous tasks) makes the message more clear what the "on.." part is about:

                      xo-tasks.png

                      1 Reply Last reply Reply Quote 0
                      • gthvn1G Offline
                        gthvn1 Vates 🪐 XCP-ng Team @olivierlambert
                        last edited by

                        @olivierlambert as you said the resident-on field of a task is set by the helper which creates the task. So the value should be the name of the host where the task has been created.

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

                          And I assume the task is created on the master regardless the restore place is?

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