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

    XO changed master pool after host down

    Scheduled Pinned Locked Moved Management
    6 Posts 3 Posters 926 Views 2 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.
    • O Offline
      OskarNTT
      last edited by OskarNTT

      Hi I have a problem
      I have pool with 2 hosts with enable HA and shared storage
      when i shut down master host for test.
      HA work properly and restart vm on another host also master change from host 1 to 2 , but XO dont see anythink. its empty, not detect new master.
      When i power on host 1 the XO detected pool and both host and i see the master are change and vm works properly.
      Why XO cant connect to the new master when first host is down?

      lawrencesystemsL 1 Reply Last reply Reply Quote 0
      • lawrencesystemsL Offline
        lawrencesystems Ambassador @OskarNTT
        last edited by

        @OskarNTT

        For HA to work properly you need 3 hosts.

        https://xcp-ng.org/docs/ha.html#introduction

        O 1 Reply Last reply Reply Quote 0
        • DanpD Offline
          Danp Pro Support Team
          last edited by

          To bring back the XO functionality, you need to modify the settings under Settings > Servers so that it points to the new master host.

          O 1 Reply Last reply Reply Quote 0
          • O Offline
            OskarNTT @lawrencesystems
            last edited by

            @lawrencesystems said in XO changed master pool after host down:

            @OskarNTT

            For HA to work properly you need 3 hosts.

            https://xcp-ng.org/docs/ha.html#introduction

            Only what i see is a strongly recommended, not required

            1 Reply Last reply Reply Quote 0
            • O Offline
              OskarNTT @Danp
              last edited by OskarNTT

              @Danp Ok if i have more then 2 hosts in pool how can easy check who is the master to set ip in the settings?
              And another question, now i have master host number 2 but setting server have host number 1 and it works now

              1 Reply Last reply Reply Quote 0
              • DanpD Offline
                Danp Pro Support Team
                last edited by Danp

                xe pool-list will give you the UUID of the master host. xe host-list will give you the host name. You can use a combination of xe commands to get the name of the master host --

                xe host-param-get param-name=name-label uuid=`xe pool-list | grep master | awk '{print $4}'`
                

                Once you bring back up the old server, XO is smart enough to detect that it is no longer the master and will determine the correct host within the pool.

                1 Reply Last reply Reply Quote 0

                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