Welcome back to another XenServer adventure. Today we are going to review the process of removing an orphaned XenServer host from XenCenter via the command line.
A few days ago one of my Xen hosts died due to an issue with the raid controller. In order to revive it I had to rebuild it, and add it back into the pool. However there was a problem; the original entry for this host in XenCenter appeared in red, which indicated that it was disconnected, and another entry for the same exact host with the same exact hostname appeared next to it in the host list for this particular cluster. I was unable to remove the orphaned host via XenCenter as there was no remove option.
I was in a pickle.
However I was able to find a solution.
First and formost it appears that there are actually two ways to do this; the first one being from the Windows command line where you are running Xencenter, or on the master node in the cluster.
This example is from the Windows CLI. Note that the UUID that is output to the command line is the UUID of the Host that is unreachable — the orphaned host.
C:\Program Files\Citrix\XenCenter>xe -s <Hostname_of_master> -u root -pw <root_password> pool-sync-database You attempted an operation which involves a host which could not be contacted. host: 560e233b-0e8b-4c2f-a641-cf1876630a6b (virt04.atlc1)
C:\Program Files\Citrix\XenCenter>xe -s <Hostname_of_master> -u root -pw <root_password> host-foget uuid=560e233b-0e8b-4c2f-a641-cf1876630a6b WARNING: A host should only be forgotten if it is physically unrecoverable; WARNING: if possible, Hosts should be 'ejected' from the Pool instead. WARNING: Once a host has been forgotten it will have to be re-installed. WARNING: This operation is irreversible. Type 'yes' to continue yes
Returning to XenCenter I found that the orphaned host entry had been removed.
Its not unheard of that an HP ILO (Integrated Lights Out) can become sick and slow down to a crawl. When this occurs, a restart of the ILO is in order, which is easily accomplished via the ILO cli interface. Note that you need to make sure that that you have enabled ssh access in ilo.
The steps to reset an ilo via ssh are below.
</>hpiLO-> cd /map1 status=0 status_tag=COMMAND COMPLETED
I've seen a lot of blog posts as of late regarding the death of the Service Console (COS). The rumors are that ESX is going to be replace completely with ESXi. While most Widows/Vmware Admins probably don't care, us Linux/Vmware admins are less than happy as we want nothing to do with the Windows PowerShell.
So I did some poking around and ran into the Vmware Management Assistant, which is a tiny VM. Here is the official spiel from Vmware
"The vSphere Management Assistant (vMA) allows administrators and
developers to run scripts and agents to manage
ESX/ESXi and vCenter Server systems. vMA is a virtual machine that
includes prepackaged software, a logging
component, and an authentication component that supports non-interactive