Hi Guys,

I've taken a look at the article written by Geoff, it's actually referring to 
XenServer upgrading from 6.02 to 6.2 and from the date of the article 
CloudStack 4.3

Much has changed in that time. WRT to the manage.xenserver.pool.master=false 
setting... CloudStack's behaviour used to be that putting a host that was the 
pool master into maintenance would cause CloudStack to force an election for 
another host to become pool master - stopping you from then upgrading the 
active pool master first. There wasn't an 'unmanage' button at the time.

I hope that explains Geoff's article.



[ShapeBlue]<http://www.shapeblue.com>
Paul Angus
VP Technology   ,       ShapeBlue


d:      +44 203 617 0528 | s: +44 203 603 
0540<tel:+44%20203%20617%200528%20|%20s:%20+44%20203%20603%200540>     |      
m:      +44 7711 418784<tel:+44%207711%20418784>

e:      paul.an...@shapeblue.com | t: 
@cloudyangus<mailto:paul.an...@shapeblue.com%20|%20t:%20@cloudyangus>      |    
  w:      www.shapeblue.com<http://www.shapeblue.com>

a:      53 Chandos Place, Covent Garden London WC2N 4HS UK


[cid:imagea2d437.png@07b65bdb.429ef2f9]


Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services 
India LLP is a company incorporated in India and is operated under license from 
Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in 
Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd 
is a company registered by The Republic of South Africa and is traded under 
license from Shape Blue Ltd. ShapeBlue is a registered trademark.
This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error.




-----Original Message-----
From: Alessandro Caviglione [mailto:c.alessan...@gmail.com]
Sent: Tuesday, January 12, 2016 11:55 AM
To: users@cloudstack.apache.org
Subject: Re: R: A Story of a Failed XenServer Upgrade

Hi guys,
I think that there are a little bit of confusion around this topic....
Pierre-Luc Dion posted an official documentation (
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.6/hypervisor/xenserver.html#upgrading-xenserver-versions)
that differs in many steps from that published by Geoff Higginbottom of 
Shapeblue and mentioned by Yiping Zhang... that is the same I've followed for 
my failed upgrade.

In the Cloudstack document, the host do NOT GOES into Maintenance Mode and I've 
to run the following scripts:
/opt/xensource/bin/cloud-clean-vlan.sh
/opt/xensource/bin/cloud-prepare-upgrade.sh

Since in the Cloudstack doc the host do not goes in MM, they says that I've to 
migrate all the VMs manually: "Live migrate all VMs on this host to other 
hosts. See the instructions for live migration in the Administrator’s Guide."

Cloudstack doc says also that I've to copy the scripts from Pierre
mentioned:

/opt/xensource/sm/NFSSR.py
/opt/xensource/bin/setupxenserver.sh
/opt/xensource/bin/make_migratable.sh
/opt/xensource/bin/cloud-clean-vlan.sh

Point 6 and 7 are strange.... I've to upgrade the entire cluster and clear the 
host tag BEFORE connect again to Cloudstack:
6)Repeat these steps to upgrade every host in the cluster to the same version 
of XenServer.
7)Run the following command on one host in the XenServer cluster to clean up 
the host tag...

Shapeblue says that I've to manage again the Cluster after the upgrade the Pool 
Master and I can upgrade the other hosts later...

Another thing that is worring me is the script:
/opt/xensource/bin/cloud-clean-vlan.sh

So, what it does??
What means "clean-vlan"?? :o





On Fri, Jan 8, 2016 at 10:52 PM, Yiping Zhang <yzh...@marketo.com> wrote:

> Since I can’t use attachment, I just include the doc in the message.
> Hopefully, the indentations and formats will go through properly.
>
> Yiping
>
> ----------
> XenServer pool manual upgrade from 6.2 to 6.5 using ISO Reference
> article for upgrading XenServer pool used for Cloudstack
>
>
> http://www.shapeblue.com/how-to-upgrade-an-apache-cloudstack-citrix-xe
> nserver-cluster
>
>
> Manual upgrade to XenServer from 6.2 to 6.5 using ISO
>
>
> On CloudStack Management server
>
> * Edit the file /etc/cloudstack/managment/environment.properties to
> include the following line at the end:
> * manage.xenserver.pool.master=false
> * Restart cloudstack-management service
> * service cloudstack-management restart
>
> Pre-upgrade steps
>
> * Disable XenServer pool HA from XenCenter or CLI
> * Backup XenServer resource pool configurations
> * Take screen shot for pool network settings in XenCenter
> * Take notes of Storage Repo mount points and NFS volumes.
>
> Inside CloudStack Web UI
>
> * Put pool master host into Maintenance (CLOUDSTACK ONLY!). This
> should migrate all VM instances currently running on the pool master
> onto other hosts
> * Unmanage the cluster. This should make the hypervisors show as
> disconnected in the UI. PLEASE MAKE SURE THAT YOU CLICK "Unmanage
> Cluster", NOT "Disable Cluster"!!!
>
> On Pool Master
>
> * Connect to physical console using DRAC/iLO/equivalent
> * Attach XenServer 6.5 ISO as virtual DVD
> * Verify that this host uses Legacy BIOS rather than UEFI, as UEFI is
> NOT supported by XenServer. (May not be needed, as XS 6.2 also
> requires Legacy BIOS)
> * Reboot physical server
> * Once the server boots up off DVD image:
> Note: we used an answer file to allow automated upgrade. You can just
> manually do the upgrade
> * At the first prompt, hit F2 to get the advanced menu, which won't
> time out quickly
> * Type:
> * menu.c32
> * Hit Enter, then hit the Tab key.
> * You will be presented with a boot line that looks similar to the
> following:
> * mboot.c32 /boot/xen.gz dom0_max_vcpus=2 dom0_mem=752M
> com1=115200,8n1 console=com1,vga — /boot/vmlinuz xencons=hvc
> console=hvc0
> console=tty0 — /install.img
> * You will need to edit this line to include the bold parts.
> Nothing else in this line needs to be changed:
> * mboot.c32 /boot/xen.gz dom0_max_vcpus=2 dom0_mem=752M
> com1=115200,8n1 console=com1,vga — /boot/vmlinuz xencons=hvc
> console=hvc0
> console=tty0 answerfile=http://server_ip/path/to/answer-file.xml —
> /install.img
> * Hit Enter and watch the system upgrade itself.
> * Once complete, eject the DVD image and reboot the host.
>
> Verify network and storage settings of upgraded host (in XenCenter):
>
> * Configure networks if necessary, just in case any additional NIC's
> need to be configured
> * Repair the HA SR, if necessary
>
> Inside CloudStack Web UI
>
> * Re-manage the cluster
> * Wait for all hosts to be in the Up state (except the pool master,
> which will stay as "disconnected")
> * Wait for all SR are connected and online
> * Take the pool master out of Maintenance mode
>
> On the CloudStack management server in a terminal window
>
> * Undo the change in /etc/cloudstack/management/environment.properties
> file
> * Restart cloudstack-management service and wait for the dust to
> settle on all servers/storage being visible. All hosts should be in Up
> state, including the pool master.
>
> Now for each slave hosts:
>
> In CloudStack web UI
>
> * Put slave host into Maintenance mode (CLOUDSTACK ONLY!), in order to
> evacuate all instances running on this host
> * On physical console, follow the same steps to attach DVD image and
> do upgrade as for pool master node
> * Perform the eject, reboot, and and host verification as listed above
> * Verify the networks and that it has properly rejoined the Xenserver
> Pool (in XenCenter)
> * Take the host out of Maintenance mode in the CloudStack UI
>
> Post-operation steps for each hosts:
>
> * Confirm XenCenter Licensing
> * You may need to remove the license from the cluster before
> applying a new one
> * Enable HA
>
> You are done !
>
Find out more about ShapeBlue and our range of CloudStack related services:
IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//> | 
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/> | 
CloudStack Software 
Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure 
Support<http://shapeblue.com/cloudstack-infrastructure-support/> | CloudStack 
Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

Reply via email to