Symon Perriman Senior Technical Evangelist Microsoft SymonPerriman CDPB335 HyperV Cluster Planning HyperV Cluster Optimization Windows Server 2012 R2 Clustering and HyperV System Center 2012 R2 Clustering and HyperV ID: 388899
Download Presentation The PPT/PDF document "Hyper-V Best Practices for High-Availabi..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1Slide2
Hyper-V Best Practices for High-Availability with Failover Clustering
Symon PerrimanSenior Technical EvangelistMicrosoft | @SymonPerriman
CDP-B335Slide3
Hyper-V Cluster Planning
Hyper-V Cluster OptimizationWindows Server 2012 R2 Clustering and Hyper-VSystem Center 2012 R2 Clustering and Hyper-V
AgendaSlide4
Hyper-V Cluster PlanningSlide5
Hardware High Availability
Servers, storage, networking, etc.Workload High AvailabilityHost Failover Clustering for VMs & RolesGuest Application High Availability
Guest Failover Clustering for apps within VMs
VM Storage High Availability
Scale Out File Server Failover Clustering
Management High Availability
System CenterSite High AvailabilityHyper-V Replica & Multi-Site Clustering
High Availability throughout the Datacenter
Guest Failover Cluster
Host Failover Cluster
File Server Failover Cluster
Hardware
System Center & Clustering
Multiple DatacentersSlide6
Redundancy everywhere
ServerRedundant server roles (AD, DHCP, DNS, etc.), System: Hot swapping, BMC sensors, Power protection Processor: Instruction error detection, instruction retry, lock-step processors, machine check architecture, extended precision
Memory: Windows Hardware Error Architecture (WHEA), parity bits, error correcting code, memory scrubbing, bad page offloading
Storage
Multi-Path IO (MPIO), RAID, checksums, background scrubbing, resilient file systems
Networking
Multiple networks, NIC Teaming, Load Balancing (NLB), Multi-Channel SMB
Hardware High Availability
Guest Failover Cluster
Host Failover Cluster
File Server Failover Cluster
Hardware
System Center
Multiple DatacentersSlide7
Physical servers create a failover cluster
Survive Host CrashesVMs restarted on another nodeRestart VM CrashesVM OS restarted on same nodeRecover VM Hangs
VM OS restarted on same node
Zero Downtime Maintenance & Patching
Live migrate VMs to other hosts
Mobility & Load Distribution
Live migrate VMs to different servers to load balance
Workload High Availability
Guest Failover Cluster
Host Failover Cluster
File Server Failover Cluster
Hardware
System Center
Multiple DatacentersSlide8
VMs create a (virtualized) failover cluster
Guest Application Health MonitoringApplication restarts or fails overDetect blue screens & user mode hangsVM network availability
Application Mobility
Guest OS needs patching or VM needs
maintenance, application moved to
the other node
Guest Application High Availability
Guest Failover Cluster
Host Failover Cluster
File Server Failover Cluster
Hardware
System Center
Multiple DatacentersSlide9
Cluster
File Servers create a failover Cluster
Scale Out
File Server
Multiple client access points (\\SOSF)
Resilient during failover and crash
File coping can continue with automatic retries
VM Storage High Availability
Guest Failover Cluster
Host Failover Cluster
File Server Failover Cluster
Hardware
System Center
Multiple Datacenters
Node 2
Node 1
Share2
Share1
Share2
SMB Client
\\SOFS
\\SOFS
Share1Slide10
Server
Redundant server deploymentsRun server inside a clustered VMBackup using DPM or Replicate using Hyper-V ReplicaMonitor with a SCOM Management Pack
Database
SQL Server 2012 SP1
AlwaysOn
Clustering
Replication / Mirroring / Backup to a secondary siteRun SQL inside a clustered VMBackup using DPM or Replicate using Hyper-V ReplicaMonitor with a SCOM Management Pack
Management High Availability
Guest Failover Cluster
Host Failover Cluster
File Server Failover Cluster
Hardware
System Center
Multiple Datacenters
Advisor Cloud Service
Redundant & distributed services on Azure
App Controller, Orchestrator Web Console, Service Manager Service Catalog
Load-balance network traffic
Operations Manager Server
Highly-Available Management Group
Orchestrator Runbook Server
Primary and redundant runbooks server failover
VMM Library Server
Run a file server on a failover cluster
VMM Management Server
Run directly on a failover cluster
R2Slide11
Nodes or clusters in different physical locations
Survive the loss of an entire datacenterStretch sites over a large distanceStorage at both sites with replicationAutomatic (recommended) or manual
recovery
Synchronizes cluster, role & VM changes
Technologies
Multi-Site Clustering
Hyper-V ReplicaWindows Azure Hyper-V Recovery Manager
Site High Availability
Guest Failover Cluster
Host Failover Cluster
File Server Failover Cluster
Hardware
System Center
Multiple DatacentersSlide12
Also in Windows Server 2008 R2
Best of both worlds for flexibility and protection
VM high-availability & mobility between physical nodes
Application & service high-availability & mobility between VMs
Cluster-on-a-cluster does increase complexity
Mixing physical and virtual nodes is supported
Must pass Validate
Combining Host & Guest Clustering
CLUSTER
CLUSTER
Shared Storage
Guest Cluster
Shared Storage
Shared StorageSlide13
Consistent improvement map to Windows Server 2012 R2
Free Server SKU: aka.ms/HyperVserver (RTM)Enterprise-class Microsoft hypervisorCLI, remote GUI management or 3rd party add-ons
Does not include guest
OS licenses
Contains all Hyper-V &
Clustering features
8,000 VMs/clusterCluster Shared Volumes (CSV) 2All types of live migration
Microsoft Hyper-V Server 2012 R2Slide14
Choosing a Host OS SKU
Host OS is free
Licensed per
Proc
Licensed per
Proc
No guest OS licenses
2 guest OS licenses
Unlimited guest licenses
CLI & Remote Management only
Full installation
or Server Core
Full installation
or Server CoreSlide15
Cluster Validation tests (pre and post deployment)
Supports shared VHDXHeartbeat settings reconfiguredCluster database update requirementsOnly a majority of nodes must acknowledge GUM updates
Hyper-V Clusters are Different
Cluster Property
Default
Hyper-V Default
SameSubnetThreshold
5
10
CrossSubnetThreshold
520Slide16
Hyper-V Cluster OptimizationSlide17
CLUSTER
Enable VM heartbeat setting
Requires Integration Components (ICs)
installed in VM
Health check for VM OS from host
User-Mode Hangs
System Crashes
Enable VM Health Monitoring
Shared Storage
Also in Windows Server 2008 R2Slide18
‘Auto Start’ setting configures if a
VM should be automatically started on failoverGroup propertyDisabling mark groups as lower priorityEnabled by defaultDisabled VMs needs manual
restart to recover after a crash
Disable Starting Low Priority VMs
Also in Windows Server 2008 R2Slide19
‘Preferred Owners’
VMs will start on preferred host
‘Possible Owners’
VMs will start on a possible owner, only if a
preferred owner is not available
If neither a preferred or possible owner
is available, the VM will move to an
active node, but not start
Keep VMs on Preferred HostsAlso in Windows Server 2008 R2Slide20
‘Persistent Mode’ will attempt to place VMs back on the last node they were hosted on during start
Only takes affect when complete cluster is started upPrevents overloading the first nodes that startup with large numbers of VMsBetter VM distribution after
cold start
Enabled by default for VM groups
Option is hidden from GUI in 2012+
Start VMs on Preferred Hosts
Also in Windows Server 2008 R2Slide21
Also in Windows Server 2008 R2
AntiAffinityClassNames
Groups with same AACN try to avoid moving to same node
Configured by PowerShell directly on the cluster
System Center 2012 VMM has a GUI “Availability Groups”
Enables VM distribution across host nodes
Better utilization of host OS resources
ScenariosSeparate similar VMsGuest cluster nodesDCs or infrastructure serversSeparate tenetsFor affinity, use preferred ownersKeep VMs off the Same HostSlide22
Configure VM Settings
DemoSlide23
Windows Server 2012 R2 Clustering and Hyper-VSlide24
Increased scale out and scale up
4x scale over Windows Server 2008 R264-nodes in a cluster8,000 VMs in a cluster1,024 VMs per node
Cluster Scale
. . .
Scale up
Scale out
...Slide25
Cluster Validation
Faster storage validationSelect a specific LUNReplicated storage
for multi-site clusters
New Hyper-V Tests
Run when Hyper-V role is installed
Integration Components
Memory CompatibilityVirtual Switch CompatibilityHyper-V Role Enabled
Network ConfigurationStorage ConfigurationSlide26
Drain all VMs off a nodeSupports all cluster roles
Role-specific featuresLive migration or quick migration for VMs Uses VM Priority
Node Maintenance ModeSlide27
Windows
Update
Automated cluster updating
Coordinator serially updates all nodes
Windows Update Agent (WUA)
Windows Server Update Services (WSUS)
Windows Update
Workflow
Scan nodes to find which patches are needed
Identify node with fewest workloadsMove workloads or live migrate VMsCall to WUA to patch Verify patch is successfulRepeat steps 2 – 5 on next nodeRepeat on remaining nodesCluster-Aware Updating
UpdateCoordinatorSlide28
VMs live migrated to another node during shutdown
VMs moved to “Best Available Node” (most free memory)Honors VM prioritizationEnsures reboot / shutdown does not incur downtime to VMs for unknowing adminEnabled/Disabled via the
DrainOnShutdown
cluster common property
VM Drain on ShutdownSlide29
Cluster Upgrades
VMs can live migrate from 2012 to 2012 R2Need to upgrade ICs in VMsMay want to upgrade other clusters
in the stack, such as
Scale Out File Server
Other roles & VMs running on
2008 R2 use the
Copy Cluster Roles WizardMigrate to CSV disks
Storage mappingVirtual network mappingUse the same storage or
different storageSlide30
Cluster Shared Volumes (CSV) 2
Distributed access file systemNew rolesFile Server - Scale out File ServerHyper-V over SMBImproved backup, performance and resiliency
Direct I/O for more scenarios
Better VM creation and copy performance
Multi-subnet support for live migrationSlide31
Guest Cluster
Fibre Channel
Shared VHDX
SMB
iSCSI
FCoE
Host Cluster
Fibre Channel
SAS
SMB
iSCSI
FCoE
Abstract the storage infrastructure
from tenantsVM sees a shared Virtual SAS diskVMs could be on the same or different nodesShared VHDX can be stored on:Cluster Shared Volumes (CSV) on block storage
Separate Scale-Out File Server ClusterShared VHDX for Guest Clusters
WS 2012
WS 2012 R2
Fibre
Channel
P
P
iSCSI
P
P
SMB
P
P
Shared VHDX
P
VHDX
VHDXSlide32
Virtual Machine Priority
Start Order
Node Maintenance
Running Priority
Pre-emption shuts down lower priority VMs
No Auto Start
Must be restarted manually
High
Medium
Low
No
AutostartSlide33
Improved Live Migration
Concurrent Live MigrationsLive Migration Queuing (waiting)Live Migration CompressionLive Migration over RDMABest Available Node
Moves to node with most free memorySlide34
New Live Migrations
Storage Live Migration
Live Migration over SMB
“Shared Nothing” Live Migration
Hyper-V Replica
Branch Office
VHD
SAN
VHD
Network
NetworkSlide35
SiteC
SiteB
30s, 5m, or 15m replication frequencies
Variable Recovery Point Objective (RPO) for metro vs. geographically dispersed
Hyper-V Replica Enhancements
SiteA
Configurable Replication Frequencies
Near site and offsite Replication
Second hop can be equal to or greater replication frequencies than first hop
Multiple Replicas
Coordinate orchestrated replica failover across sites via System Center VMM
Windows Azure Hyper-V Recovery ManagerSlide36
Hyper-V Replica on a Cluster
Hyper-V Replica BrokerReplication agent is highly-availableReplicationStandalone to standaloneCluster to cluster
Standalone to cluster
Cluster to standalone
There is no replication within a single cluster
Multi-site clusters now use a cluster at each siteSlide37
Hyper-V Replica Broker
DemoSlide38
System Center 2012 R2 Clustering & Hyper-VSlide39
Scale management for hosts and VMs
Bare metal cluster provisioningNVGRE Gateway failover supportDeploy & patch Scale Out File Server clusters (SOFS)Windows Azure Hyper-V Recovery ManagerManage VMware and Citrix clustersSQL Clustering for databases (all System Center components)
Managing ClustersSlide40
Automates placement logic on hosts
Capacity planning improves resource utilizationSpreads VMs across nodes‘Star-Rated’ results for easy decision makingCustomizable algorithm
Intelligent PlacementSlide41
Automated cluster updating
Uses Intelligent Placement & live migrationWindows PowerShell SupportMost hosts can be patchedHosts, Host Groups, Host ClustersVMM Server, Library Server, PXE Server, Update Server
Does not patch VMs or VHDs
Virtual Machine Servicing Tool (VMST)a
Automated Update ManagementSlide42
Dynamic Optimization
No SCOM dependencyRebalances VMs across hostsLive migration
Keeps cluster balanced
Avoids VM downtime
Supports heterogeneous clusters
Managed resources
Considers CPU, memory, disk IO, network IOOptimize when above resource thresholdConsiders entire cluster
OptionsManual or automaticUser controlled frequencyConfigurable aggressivenessSlide43
Highly available VMM server
Cluster-aware VMM serverProtects against OS and VMM failuresAdmin console with reconnection logicHyper-V cluster creation & validationCreate non-HAVMs on clustered hostsAdd/remove Hyper-V clusters in
untrusted domains
VMM Server High AvailabilitySlide44
Performance & Resource Optimization (PRO)Slide45
App Controller
Deploy VMs to a clusterConfiguration ManagerMake a cluster & VMs secure and compliantData Protection ManagerBackup / restore VMs on a CSV disk
Backup during live migration
Endpoint Protection
Protect the cluster & roles from viruses & malware
System Center 2012 R2 IntegrationSlide46
Operations Manager
Monitor clusters & VMsOrchestratorAutomate actions with clusters & VMs (via VMM)Service ManagerReport cluster & VM problems
System Center Advisor
Analyze clusters and VMs for best practices
System Center 2012 R2 IntegrationSlide47
ConclusionSlide48
Hardware High AvailabilityWorkload High Availability
Guest Application High AvailabilityVM Storage High AvailabilityManagement High AvailabilitySite High Availability
High Availability throughout the Datacenter
Guest Failover Cluster
Host Failover Cluster
File Server Failover Cluster
Hardware
System Center & Clustering
Multiple DatacentersSlide49
Start with the Cloud OS today!
Microsoft Virtual Academy
aka.ms/MVA
Evaluation Edition
aka.ms/
EvalCenter
Microsoft Certifications
aka.ms/
MSCerts
TechNet Virtual Labsaka.ms/V-LabsCustomer Evidenceaka.ms/EvidenceFree eBooks
aka.ms/MVAebookSlide50
Resources
Learning
Microsoft Certification & Training Resources
www.microsoft.com/learning
Developer Network
http
://developer.microsoft.com
TechNet
Resources for IT Professionals
http://microsoft.com/technet
Sessions on Demand
http://channel9.msdn.com/Events/TechEdSlide51
Come
visit us
in the Microsoft Solutions Experience (MSE)!
Look for the
Cloud and Datacenter Platform
area
TechExpo
Hall 7For more information
Windows Server Technical Previewhttp://technet.microsoft.com/library/dn765472.aspx
Windows Server
Microsoft Azure
Microsoft Azure
http://azure.microsoft.com/en-us/
System Center
System Center Technical Preview
http://
technet.microsoft.com/en-us/library/hh546785.aspx
Azure Pack
Azure Pack
http://
www.microsoft.com/en-us/server-cloud/products/
windows-azure-packSlide52
Azure
Implementing
Microsoft Azure Infrastructure Solutions
Classroom
training
Exams
+
(Coming soon)
Microsoft Azure Fundamentals
Developing Microsoft Azure Solutions
MOC
10979
Implementing
Microsoft Azure Infrastructure Solutions
Online
training
(Coming soon)
Architecting Microsoft Azure Solutions
(Coming soon)
Architecting Microsoft Azure Solutions
Developing Microsoft Azure Solutions
(Coming soon)
Microsoft Azure Fundamentals
http://bit.ly
/
Azure-Cert
http://bit.ly
/
Azure-MVA
http://bit.ly
/
Azure-Train
Get
certified for
1/2 the price at TechEd Europe 2014!
http://bit.ly
/
TechEd-
CertDeal
2
5
5
MOC
20532
MOC
20533
EXAM
532
EXAM
533
EXAM
534
MVA
MVASlide53
TechEd Mobile app
for session evaluations
is
currently offline
SUBMIT YOUR TECHED EVALUATIONS
Fill out an evaluation via
CommNet Station/PC:
Schedule Builder
LogIn
:
europe.msteched.com/catalog
We value your feedback!Slide54
© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.