Tag: xenserver xencenter pools ip address
manually removing a pool slave from a pool in XenCenter
manually removing a pool slave from a pool in XenCenter
Problem: The pool master was lost or the ip address was changed. Upon bootup of one of the pool’s slaves, it came up with no management network, and no network interfaces to configure.
Resolution:
MAKE SURE YOUR VMs ARE BACKED UP!!!! LOCAL STORAGE WILL GO AWAY AFTER THIS AND WILL HAVE TO BE RE-CREATED.
Remove the slave server from XenCenter.
At the slave console’s main menu, go to “Network and Management Interface”, “Emergency Network Reset”
Login, and walk through he steps of re-assigning your address. Go ahead and enter an address for the master when prompted.
The server will reboot.
Go to “Local Command Shell” on the main menu.
Check the state of the server:
xe host-is-in-emergency-mode
answer: true
because the server is still in emergency mode, we need to edit the pool.conf.
nano /etc/xensource/pool.conf
It will probably reference “slave” and whatever address you defined as your master.
Remove all entries and add : master
save the conf file with Ctrl + o, exit with Ctrl + x
Rename the state.db with this command.
mv /var/xapi/state.db /var/xapi/state.db-old
Exit to the main console with xsconsole.
reboot it, and you should be able to re-add it to XenCenter and your pool.
More on changing ip addresses here:
http://support.citrix.com/article/CTX123477
Adding your local storage back to the xenserver:
Once you’ve re-added your server back to XenCenter, you’ll notice that your storage devices are gone. to re-add:
On the console tab of the server you just added, You can list your devices with:
cat /proc/partitions
get your device id’s with:
ll /dev/disk/by-id
Execute the following command:
xe sr-create content-type=user device-config:device=/dev/disk/by-id/<device ID from the list from the previous command> host-uuid=<ID can be copied and pasted from the “general” tab> name-label=”Give It a Name” shared=false type=lvm
If you’re trying to add the disk with the system on it, you’ll have to select the partition to restore:
xe sr-create content-type=user device-config:device=/dev/disk/by-id/<device ID for the partition from the list from the previous command> host-uuid=<ID can be copied and pasted from the “general” tab> name-label=”Give It a Name” shared=false type=lvm
This might at least allow you to get and files on that storage off to a more stable place. With a server in this condition, I would recommend reloading XenServer once you’ve taken everything that you need off of it.
Matt Long
02/24/2015