Remove a host from a pool
-
Is it possible to remove a host from a pool and set it back to be managed by it's own?
-
Sure. In XO:
- Host view
- Advanced tab
- Detach
Double check you don't have any VM running on a local SR for this host before doing this operation.
-
And from the CLI:
- xe host-list (to get the UUID of the host)
- xe pool-eject host-uuid=<host_UUID>
-
@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?
-
Because it will create a fresh XAPI database. It doesn't know how to "extract" records that are specific to a host.
-
How long does it takes for the host to be remove from the pool?
-
Something like between 10 and 30 seconds in average.
-
@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. -
There's no need to reinstall to do this
Just remove the LVM SR, recreate it in ext and that's it.
-
@olivierlambert
Thanks Oliver!
Is there a document for this? -
To destroy the SR and recreate it?
-
@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 -
In XO, it's pretty straightforward: Home/SR, delete the SR. Then, New/SR and recreate it