Category: XenServer
Add a second disk as Local Disk Storage to an existing XenServer
Add a second disk as Local Disk Storage to an existing XenServer
On each of the XenServers in the pool I created, I have at least 2 partitions that I wanted to be available to my VMs.
For a little while I was just running individual commands to figure it out each time and finally I decided to come up with a single command that I could copy and paste
I have it below so I can always come to this blog post and find it
First I find out which partition I want to add
#cat /proc/partitions
I just have to replace the /dev/sdb in the command below with the actual partition I want to add, And I might need to change the “name-label” in the case that I already have a Local storage 2, but otherwise, the system figures out what the current hostname is and gets the uuid and names the storage appropriately. This works in a pool where host-list returns more than one..
CAUTION: when cutting and pasting from below, be careful to make sure that the quotes match exactly, I have run into situations where the Double Quotes(“) around the name-label parameter and the single quotes (‘) around the awk parameter, show as question marks (?) when pasted into the XenCenter console.
#xe sr-create content-type=user device-config:device=/dev/sdb host-uuid=`grep -B1 -f /etc/hostname <(xe host-list)|head -n1|awk ‘{print $NF}’` name-label=”Local storage 2 on `cat /etc/hostname`” shared=false type=lvm
Adding a new XenServer to my XenServer Pool – Homogenity required
Adding a new XenServer to my XenServer Pool – Homogenity required
In order to add an additional XenServer to an existing XenServer Pool – the servers must be homogenous, meaning that all of the same updates must be applied.
#blogpostinnoteform #couldbecleanedup
I have not had any luck applying updates using the XenCenter software ‘Apply pending updates’.
Although, XenCenter does a good job of showing which servers have updates to apply
Below are my notes on how to find any apply patches so that XenServers can have the same updates / patches applied as the pool and then added
on any server in the pool
xe patch-list
This will list out several patches, The confusing thing for me was knowing which patches are included in a Service Pack, since service packs seem to roll up all of the patches in to them it seems that patches which are applied as part of the services pack show a size of 1.
search for the downloads from support.citrix.com
on the server to add
wget http://downloadns.citrix.com.edgesuite.net/8707/XS62ESP1.zip # to get the patch unzip XS62ESP1.zip # to open the patch xe patch-upload file-name=XS62ESP1.xsupdate
this will out put the uuid of the patch, you need this (you can also get it from running #xe patch-list
you also need the host-uuid which you can get from #xe host-list, but since the host is not in a pool yet, you should be able to just do command line tab completion (xe is smart like that)
xe patch-apply uuid=0850b186-4d47-11e3-a720-001b2151a503 host-uuid=93c98aa5-935b-41a4-9b79-789fa68db354
(A technique that has worked for me is to copy this text paste it all at once and the press ‘TAB’ which auto completes the host-uuid, so I can past it all at once rpess tab and enter and leave the system to its work)
wget http://downloadns.citrix.com.edgesuite.net/8707/XS62ESP1.zip unzip XS62ESP1.zip # to open the patch xe patch-upload file-name=XS62ESP1.xsupdate xe patch-apply uuid=0850b186-4d47-11e3-a720-001b2151a503 host-uuid=