xenserver ha improvements

17

Click here to load reader

Upload: shapeblue

Post on 15-Jul-2015

483 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: XenServer HA Improvements

XenServer HA Improvements

Geoff HigginbottomCTO ShapeBlue

[email protected]: @CloudStackGuru

Page 2: XenServer HA Improvements

Cloud Architect & ShapeBlue CTO

Specialise in….

Designing & Building Clouds based on Apache CloudStack / Citrix CloudPlatform

Developing CloudStack training

Blogging and sharing CloudStack knowledge

Involved with CloudStack before donation to Apache

Designed Clouds for Cloudera, Everyware, SunGard, Ascenty, BskyB, Trader Media, M5 Hosting, Team Cymru, Interoute, University of Pennsylvania.…

CloudStack Committer

Who Am I?

Page 3: XenServer HA Improvements

How does VM HA work in CloudStack?

VMware – vCenter handles it

XenServer, KVM – CloudStack handles it

Hyper-V – Not currently supported

CloudStack VM HA

Page 4: XenServer HA Improvements

Hotfix XS62ESP1004 (and XenServer 6.5.0)

Improved mechanism for detecting a failed Host and electing a new Pool Master

Requires Pool HA to be enabled

Prior to XS62ESP1004, correct procedure was to not enable HA on the XenServer Pool when using with CloudStack

So What's the Problem?

Page 5: XenServer HA Improvements

If you dot not setup Pool HA a new Pool Master will NOT be elected in the event of a Pool Master failure

All Hosts in the Cluster will go offline

CloudStack will not trigger VM HA, and will report all VMs as still running

No control of VMs in the affected Cluster

So What's the Problem?

Page 6: XenServer HA Improvements

Configure Pool HA but only for the Pool Master and not for VMs

How? Create and mount new SR – must not be used for VMs

Enable Pool HA via UI

XE Commands

Script it

Resolution

Page 7: XenServer HA Improvements

Use the UI…

Page 8: XenServer HA Improvements

Use the UI…

Page 9: XenServer HA Improvements

Use the UI…

Page 10: XenServer HA Improvements

Use the UI…

Set ‘Failures tolerated’ to Zero

Page 11: XenServer HA Improvements

Use the UI…

Page 12: XenServer HA Improvements

Use the UI…

Note: It may take two minutes to enable

Page 13: XenServer HA Improvements

HA Enabled

Page 14: XenServer HA Improvements

Run following two commands to enable Pool HA

xe sr-list name-label=<SR NAME> --minimal (to get the SR ID)

xe pool-ha-enable heartbeat-sr-uuids=<SR ID>

XE Commands

Page 15: XenServer HA Improvements

You will need to disable and re-enable Pool HA as some point in the future, so in true DevOps tradition, if you do it more than once, script it

Create a script called enable-ha.sh on any XenServer and populate with the following :

#!/bin/bash

MGMTHAUUID=`xe sr-list name-label=MGMT-HA --minimal`

xe pool-ha-enable heartbeat-sr-uuids=$MGMTHAUUID

echo "Pool HA is now enabled"

Note the script assumes the SR is called ‘MGMT-HA’

Script it…

Page 16: XenServer HA Improvements

To perform a controlled restart of a Pool Master Host: Place into Maintenance Mode within CloudStack

Disable Pool HA

Place the Host into Maintenance Mode with XenCenter to force the promotion of a Slave to Pool Master

Restart the Host

Once Host has fully booted and is online in XenCenter re-enable Pool HA

Exit Maintenance Mode in XenCenter

Exit Maintenance Mode in CloudStack

Managing HA Enabled Pools

Page 17: XenServer HA Improvements