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

    Adding Master Host to Existing Pool

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    11 Posts 3 Posters 2.7k 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.
    • RashidR Offline
      Rashid
      last edited by olivierlambert

      I currently own two Dell Servers, one being the R710 with dual CPUs and 16 GB of RAM, and the other being the R20 with a single CPU and 32 GB of RAM. Recently, I installed XCP-ng 8.2.1 on both servers. After the installation was complete, each server became a master by default, resulting in two separate pools. However, I would like to have only one pool with one master and have my R720 server act as a slave in that pool. I have attempted various methods to resolve this issue, but unfortunately, none have been successful. It is worth mentioning that both of my XCP-ng installations are up to date. Please find the attached error log and screenshot for further reference.
      Thank you in Advanced.
      1.png 2.png 3.png 4.png 5.png

      pool.mergeInto
      {
        "sources": [
          "b341a66a-6ec2-2c61-300a-2675b0edb575"
        ],
        "target": "5b11bc18-bb1f-93b5-62f9-1d45a2c69179",
        "force": true
      }
      {
        "code": "POOL_JOINING_HOST_MUST_HAVE_SAME_DB_SCHEMA",
        "params": [
          "5.603",
          "5.602"
        ],
        "call": {
          "method": "pool.join_force",
          "params": [
            "10.87.5.205",
            "root",
            "* obfuscated *"
          ]
        },
        "message": "POOL_JOINING_HOST_MUST_HAVE_SAME_DB_SCHEMA(5.603, 5.602)",
        "name": "XapiError",
        "stack": "XapiError: POOL_JOINING_HOST_MUST_HAVE_SAME_DB_SCHEMA(5.603, 5.602)
          at Function.wrap (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/_XapiError.mjs:16:12)
          at file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/transports/json-rpc.mjs:35:21
          at runNextTicks (node:internal/process/task_queues:60:5)
          at processImmediate (node:internal/timers:447:9)
          at process.callbackTrampoline (node:internal/async_hooks:130:17)"
      }
      
      BenjiReisB RashidR 2 Replies Last reply Reply Quote 0
      • RashidR Offline
        Rashid @Rashid
        last edited by

        @Rashid @BenjiReis @olivierlambert
        I appreciate your patience and guidance throughout the process. I am pleased to inform you that I have successfully completed the task at hand. However, I encountered two issues along the way. Firstly, one of my SMB Storage was corrupted and was not disconnecting properly. Secondly, the system was stuck in a restart loop. After resolving the SMB storage problem, I was able to restart the system and successfully add the new host to the existing pool.
        Thanks all.

        1 Reply Last reply Reply Quote 2
        • BenjiReisB Offline
          BenjiReis Vates 🪐 XCP-ng Team @Rashid
          last edited by

          @Rashid Hi!

          The error seems to indicate the version of your hosts are not at the same level. Can you check?

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

            Indeed:

            POOL_JOINING_HOST_MUST_HAVE_SAME_DB_SCHEMA(5.603, 5.602)

            There's a gap between XAPI versions. Please make sure all your hosts all fully up to date (source and destination), and then it will work 🙂

            RashidR 1 Reply Last reply Reply Quote 0
            • RashidR Offline
              Rashid @olivierlambert
              last edited by

              @olivierlambert Thanks for your response. I have run the yum update & yum upgrade in both servers. no package is available.
              And I think the problem is that both servers are Master, Am I correct?

              1 Reply Last reply Reply Quote 0
              • RashidR Offline
                Rashid @BenjiReis
                last edited by

                @BenjiReis @olivierlambert Thanks for your response. I have run the yum update & yum upgrade in both servers. no package is available.
                And I think the problem is that both servers are Master, Am I correct?

                BenjiReisB 1 Reply Last reply Reply Quote 0
                • BenjiReisB Offline
                  BenjiReis Vates 🪐 XCP-ng Team @Rashid
                  last edited by

                  @Rashid It is normal behavior when you install an host, it is the master of its own 1 host pool so that's not the issue.

                  Can you post here the results of cat /etc/xensource-inventory and check if there's more info in /var/log/xensource.log when attempting the join?

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

                    @Rashid have you simply reboot both hosts after doing your updates?

                    1 Reply Last reply Reply Quote 0
                    • RashidR Offline
                      Rashid @Rashid
                      last edited by

                      @Rashid @BenjiReis @olivierlambert
                      I appreciate your patience and guidance throughout the process. I am pleased to inform you that I have successfully completed the task at hand. However, I encountered two issues along the way. Firstly, one of my SMB Storage was corrupted and was not disconnecting properly. Secondly, the system was stuck in a restart loop. After resolving the SMB storage problem, I was able to restart the system and successfully add the new host to the existing pool.
                      Thanks all.

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

                        Great news @Rashid ! Happy to know it works! 🙂

                        RashidR 1 Reply Last reply Reply Quote 0
                        • olivierlambertO olivierlambert marked this topic as a question on
                        • olivierlambertO olivierlambert has marked this topic as solved on
                        • RashidR Offline
                          Rashid @olivierlambert
                          last edited by

                          @olivierlambert
                          Thank you very much for your assistance. Unfortunately, I have encountered another issue that I would like to address. I have forgotten the password for the XOA VM 😬 , but I do have the root password.

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

                            https://xen-orchestra.com/docs/troubleshooting.html#recover-web-login-password

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