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

    Remove a host from a pool

    Xen Orchestra
    4
    13
    1234
    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.
    • mauzillaM
      mauzilla
      last edited by

      Is it possible to remove a host from a pool and set it back to be managed by it's own?

      1 Reply Last reply Reply Quote 0
      • olivierlambertO
        olivierlambert Vates 🪐 Co-Founder🦸 CEO 🧑‍💼
        last edited by

        Sure. In XO:

        1. Host view
        2. Advanced tab
        3. Detach

        Double check you don't have any VM running on a local SR for this host before doing this operation.

        tjkreidlT mauzillaM 2 Replies Last reply Reply Quote 1
        • tjkreidlT
          tjkreidl Ambassador 📣 @olivierlambert
          last edited by

          And from the CLI:

          1. xe host-list (to get the UUID of the host)
          2. xe pool-eject host-uuid=<host_UUID>
          1 Reply Last reply Reply Quote 1
          • mauzillaM
            mauzilla @olivierlambert
            last edited by

            @olivierlambert I noted now when removing the host that is says it removes all VM's from the local storage and reboots. When you add the host to a pool, you can simply shutdown all VM's on the host, why does it remove vm's if you want to remove the host from a pool?

            1 Reply Last reply Reply Quote 0
            • olivierlambertO
              olivierlambert Vates 🪐 Co-Founder🦸 CEO 🧑‍💼
              last edited by

              Because it will create a fresh XAPI database. It doesn't know how to "extract" records that are specific to a host.

              1 Reply Last reply Reply Quote 0
              • D
                dalat9181
                last edited by

                How long does it takes for the host to be remove from the pool?

                1 Reply Last reply Reply Quote 0
                • olivierlambertO
                  olivierlambert Vates 🪐 Co-Founder🦸 CEO 🧑‍💼
                  last edited by

                  Something like between 10 and 30 seconds in average.

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    dalat9181 @olivierlambert
                    last edited by

                    @olivierlambert
                    I migrate all the vm of the host server.
                    put it in maintained mode
                    and detach it. But it have spinning for about an hour or now.
                    The reason I want to detach it so I can re-install xcp-ng with ext storage instead of LVM.

                    1 Reply Last reply Reply Quote 0
                    • olivierlambertO
                      olivierlambert Vates 🪐 Co-Founder🦸 CEO 🧑‍💼
                      last edited by

                      There's no need to reinstall to do this 🤔

                      Just remove the LVM SR, recreate it in ext and that's it.

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        dalat9181 @olivierlambert
                        last edited by

                        @olivierlambert
                        Thanks Oliver!
                        Is there a document for this?

                        1 Reply Last reply Reply Quote 0
                        • olivierlambertO
                          olivierlambert Vates 🪐 Co-Founder🦸 CEO 🧑‍💼
                          last edited by

                          To destroy the SR and recreate it?

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            dalat9181 @olivierlambert
                            last edited by

                            @olivierlambert
                            Hi Oliver,
                            yes. I was just wondering if you have an official doc for it. But I did google on how to do this and will try it out.
                            Thanks

                            1 Reply Last reply Reply Quote 0
                            • olivierlambertO
                              olivierlambert Vates 🪐 Co-Founder🦸 CEO 🧑‍💼
                              last edited by

                              In XO, it's pretty straightforward: Home/SR, delete the SR. Then, New/SR and recreate it 🙂

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