hyper-v high availability and live migration

55
Microsoft Virtual Academy Hyper-V High Availability and Live Migration Symon Perriman Jeff Woolsey Technical Evangelist Principal Program Manager

Upload: tirza

Post on 25-Feb-2016

79 views

Category:

Documents


2 download

DESCRIPTION

Hyper-V High Availability and Live Migration. Symon PerrimanJeff Woolsey Technical EvangelistPrincipal Program Manager. Introduction to Hyper-V Jump Start. Agenda. High Availability Planning Cluster Deployment Hyper-V Optimization on a Cluster Cluster Shared Volumes & Live Migration - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Hyper-V High Availability and Live Migration

MicrosoftVirtual Academy

Hyper-V High Availability and Live MigrationSymon Perriman Jeff WoolseyTechnical Evangelist Principal Program Manager

Page 2: Hyper-V High Availability and Live Migration

Introduction to Hyper-V Jump StartFirst Half Second Half

(01) Introduction to Microsoft Virtualization (05) Hyper-V Management

(02) Hyper-V Infrastructure (06) Hyper-V High Availability and Live Migration

(03) Hyper-V Networking (07) Integration with System Center 2012 Virtual Machine Manager

(04) Hyper-V Storage (08) Integration with Other System Center 2012 Components

** MEAL BREAK **

Page 3: Hyper-V High Availability and Live Migration

MicrosoftVirtual Academy

• High Availability Planning• Cluster Deployment• Hyper-V Optimization on a Cluster• Cluster Shared Volumes & Live Migration• Hyper-V Replica

Agenda

Page 4: Hyper-V High Availability and Live Migration

High AvailabilityPlanning

Page 5: Hyper-V High Availability and Live Migration

Why is HA Important?• Server downtime is inevitable• Servers will go offline due to• Maintenance• Upgrade • Software or Hardware

• Update• Hotfix, Security Patch

• Disaster• Power Outage• Accident

Page 6: Hyper-V High Availability and Live Migration

Complete Redundancy In the BoxDisaster Recovery

• Hyper-V Replica for Asynchronous Replication• CSV 2.0 Integration with Storage Arrays for Synchronous

Replication

Application/Service Failover

• Non-Cluster Aware Apps: Hyper-V App Monitoring• VM Guest Cluster: iSCSI, Fiber Channel• VM Guest Teaming of SR-IOV NICs

I/O Redundancy• Network Load Balancing & Failover via Windows NIC Teaming• Storage Multi-Path IO (MPIO)• Multi-Channel SMB

Physical Node Redundancy

• Live Migration for Planned Downtime• Failover Cluster for Unplanned Downtime

Hardware Fault • Windows Hardware Error Architecture (WHEA)• Reliability, Availability, Serviceability (RAS)

Page 7: Hyper-V High Availability and Live Migration

Overview of Failover ClusteringPublic

Shared Storage

VMs & Workloads

VMs & Workloads

Page 8: Hyper-V High Availability and Live Migration

Host ClusteringAvoids a single point of failure when consolidatingVMs survive host crashes

VMs restarted on another node

Restart VM crashesVM OS restarted on same node

Recover VM hangsVM OS restarted on same node

Zero downtime maintenance & patchingLive migrate VMs to other hosts

Mobility & load distributionLive migrate VMs to different servers to load balance

SAN

Cluster

Page 9: Hyper-V High Availability and Live Migration

Guest ClusteringApplication Health MonitoringApp or service within VM crashes or hangs and moves to another VM

Application MobilityApps or services moves to another VM for maintenance or patching of guest OS

Virtualized HBAsiSCSI (2008 R2 & 2012)Fibre Channel (2012)

Combine physical &virtual servers

iSCSI or FC

Cluster

Page 10: Hyper-V High Availability and Live Migration

Combining Host & Guest Clustering Best of both worlds for flexibility and protection

VM high availability & mobility between physical nodesApplication & service high availability & mobility between VMs

Increases complexity

CLUSTER CLUSTERiSCSI or FC

Guest Cluster

SAN SAN

Page 11: Hyper-V High Availability and Live Migration

Increased Scalability8,000 VMs across 64 nodes1,024 VMs per node

320 logical processors per host64 virtual processors per VM

4 TB of RAM per host1 TB of RAM per VM

64 TB per virtual disk (.vhdx)More storage choicesHyper-V over SMBVirtual Fibre Channel HBA (guest clustering)

. . .

Scal

e up

Scale out

..

.

Page 12: Hyper-V High Availability and Live Migration

Failover Cluster Deployment

Page 13: Hyper-V High Availability and Live Migration

Hyper-V Validation TestsFaster storage validationSelect a specific LUNReplicated storage for multi-siteNew Hyper-V Configuration Tests

Run when Hyper-V role is installedIntegration ComponentsMemory CompatibilityVirtual Switch CompatibilityHyper-V Role EnabledNetwork ConfigurationStorage Configuration

Page 14: Hyper-V High Availability and Live Migration

Upgrading Clusters to Windows Server 2012Cluster Migration WizardAutomated export / import of VMsMigrate to CSV disksStorage mappingVirtual network mappingUse the same storage or different storage

Page 15: Hyper-V High Availability and Live Migration

Hyper-V Optimization on a Cluster

Page 16: Hyper-V High Availability and Live Migration

• Start Order• Node Maintenance• Running Priority

• Pre-emption shuts down lower priority VMs

• No Auto Start• Must be restarted manually

Virtual Machine Priority

High Medium Low

Page 17: Hyper-V High Availability and Live Migration

Disable Starting Low Priority VMs• ‘Auto Start’ setting configures if a

VM should be automatically started on failover• Group property• Disabling mark groups as lower priority• Enabled by default• Disabled VMs needs manual

restart to recover after a crash

Also in Windows Server 2008 R2

Page 18: Hyper-V High Availability and Live Migration

Keep VMs on Preferred Hosts• ‘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

Page 19: Hyper-V High Availability and Live Migration

Start VMs on Preferred Hosts• ‘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 up• Prevents overloading the first nodes that startup with

large numbers of VMs• Better VM distribution after cold

start• Enabled by default for VM groups• Option is hidden from GUI in 2012

Page 20: Hyper-V High Availability and Live Migration

Keep VMs off the Same Host• AntiAffinityClassNames • Groups with same AACN try to avoid residing on the same node

• Configured by PowerShell directly on the cluster • System Center 2012 VMM has a GUI “Availability Groups”• Enables VM distribution across host nodes for best resource utilization• Scenarios• Separate similar VMs• Guest cluster nodes• DCs or infrastructure servers

• Separate tenets• For affinity, use preferred owners

Page 21: Hyper-V High Availability and Live Migration

CLUSTER

• Enable VM heartbeat setting• Requires Integration Components (ICs)

installed in VM• Health check for VM OS from host• User-Mode Hangs• System Crashes

VM Health Monitoring

SAN

Page 22: Hyper-V High Availability and Live Migration

VM Guest Service MonitoringThe host monitors the guest VMAny application with a serviceUses Service Control Manager

Configurable recovery actionsRestart serviceReboot VMMove VM

Page 23: Hyper-V High Availability and Live Migration

Node Drain (Node Maintenance) ModeDrain all VMs off a nodeSupports all cluster roles Role-specific featuresLive migration or quick migration for VMs Uses VM Priority

Suspend-ClusterNodeResume-ClusterNode

Page 24: Hyper-V High Availability and Live Migration

Windows Update• Automated cluster updating

• Coordinator serially updates all nodes • Windows Update Agent (WUA)• Windows Server Update Services (WSUS)• Windows Update

• Workflow1. Scan nodes to find which patches are needed2. Identify node with fewest workloads3. Move workloads or live migration VMs to other nodes4. Call to WUA to patch 5. Verify patch is successful6. Repeat steps 2 – 5 on next node7. Repeat on remaining nodes

Cluster-Aware Updating UpdateCoordinator

Page 25: Hyper-V High Availability and Live Migration

So You’re a Building a Cloud…

I have good processes in place, but what other

safeguards can I use to protect my data?

Page 26: Hyper-V High Availability and Live Migration

Server Hard Disks Appear on eBayReal Case : A US Power Company

• The Company had processes in place to either physically destroy drives or scrub them to U.S. DOD standards• Degaussing• Overwriting the data with a minimum of three specified patterns

• Data on drives used in servers, contained:• Proprietary company information such as memos, correspondence• Customers data (460,000+) & Confidential employee information

According to Gartner about 1/3 companies use outside firms to dispose of PCs & Servers

Page 27: Hyper-V High Availability and Live Migration

HIPAA Breach: Stolen Hard Drives• March 2012: Large Medical Provider in Tennessee paying

$1.5 million to the US Dept. Health & Human Services• Theft of 57 hard drives that contained protected health information (ePHI) for over 1

million individuals

• Secured by:• Security Patrols• Biometric scanner• Keycard scanner• Magnetic locks• Keyed locks

“71% of health care organizations have suffered at least one data breach within the last year” -Study by Veriphyr

Page 28: Hyper-V High Availability and Live Migration

Critical Safeguard for the CloudEncrypted cluster volumes

• BitLocker encrypted cluster disks• Support for traditional failover disks• Support for Cluster Shared Volumes

• Cluster Name Object (CNO) identity used to lock and unlock Clustered volumes

• Enables physical security for deployments outside of secure datacenters• Branch office deployments

• Volume level encryption for compliance requirements

• Negligible (<1%) performance impact

Page 29: Hyper-V High Availability and Live Migration

Cluster Shared Volumes & Live Migration

Page 30: Hyper-V High Availability and Live Migration

Cluster Shared Volumes (CSV)All cluster nodes can read/write to the CSV volumeLUN ownership by node abstracted from applicationApplications failover without drive ownership changesNo dismounting and remounting of volumesFaster failover times (less downtime)

Page 31: Hyper-V High Availability and Live Migration

New CSV Architecture in Windows Server 2012What it delivers Improved interoperability with file system mini-filter drivers

Anti-virus softwareBackup software (No more redirected mode for backups!)

Infrastructure for application consistent distributed backupsIntegrate with new file system features

Support for Offloaded Data Transfer (ODX)Spot-fixing integrated to do online correction

Significant performance improvementsSupports BitLocker encrypted volumesMemory mapped files now supportedNo longer Active Directory dependencies for improved performance and resiliency

Page 32: Hyper-V High Availability and Live Migration

Your Thoughts on VM Mobility• Don’t provide new

features that preclude Live Migration.

• I want to be able to securely move any part of a VM anywhere at anytime. No Limits.

• No Downtime Servicing• SAN Upgrades/Migrations

• When VMs migrate, move the historical data with the VM

• Fully Leverage hardware to speed migrations

Page 33: Hyper-V High Availability and Live Migration

Improved Live Migration• Live Migration Queuing• Concurrent Live Migrations

Concurrent Live Migrations:

Multiple simultaneous LMs for a given source or target

Live Migration Queuing:In-box tools queue & manage

large numbers of VMs

Page 34: Hyper-V High Availability and Live Migration

Entire VM memory copiedLive Migration

May be additional incremental data copies until data on both nodes is essentially identical

Memory content is copied to new

serverLive Migrate

VHD

SAN

Enable-VMMigration, Move-VM

Page 35: Hyper-V High Availability and Live Migration

Live MigrationSession state is maintainedNo reconnections necessaryClients stay connected to VM

ARP redirects clients to new nodeOld VM deleted after success VHD

SAN

Client directed to new host

Multiple live migrations can be performed either concurrently or as a queued request

Page 36: Hyper-V High Availability and Live Migration

Live Migration with SMBFile Based Storage SolutionStorage is not moved, just the running virtual machineLike live migration in a cluster, without high availability

Requires SMB 3.0

Page 37: Hyper-V High Availability and Live Migration

Shared Nothing Live Migration Ability to live migrate a virtual machine with only an Ethernet cableThe VM is mirrored to the destination first over the network and then the VM is migratedLive Migrate in/out clusterLive Migrate between clusters

Page 38: Hyper-V High Availability and Live Migration

Storage MigrationMove any part of a running virtual machine with no need to turn it offVHDsConfig filesSnapshots

Perform storage upgrades with no downtimeRespond to I/O bottlenecks with no downtime

Move-VMStorage

Page 39: Hyper-V High Availability and Live Migration

Storage Migration ArchitectureHyper-V

VHD Software

Virtual Machine

Source Device Destination DeviceVHD

Page 40: Hyper-V High Availability and Live Migration

Storage Migration ArchitectureHyper-V

VHD Software

Virtual Machine

Source Device Destination DeviceVHD VHD

Page 41: Hyper-V High Availability and Live Migration

Storage Migration ArchitectureHyper-V

VHD Software

Virtual Machine

Source Device Destination DeviceVHD VHD

Page 42: Hyper-V High Availability and Live Migration

Storage Migration ArchitectureHyper-V

VHD Software

Virtual Machine

Source Device Destination DeviceVHD VHD

Page 43: Hyper-V High Availability and Live Migration

Storage Migration ArchitectureHyper-V

VHD Software

Virtual Machine

Source Device Destination DeviceVHD

Move-VMStorage "File Server 3" –DestinationStoragePath "K:\File Server 3"

Page 44: Hyper-V High Availability and Live Migration

Hyper-V Replica

Page 45: Hyper-V High Availability and Live Migration

45

Page 46: Hyper-V High Availability and Live Migration

Disaster Recovery Challenges• Cost• Complexity• Inflexibility• Initial Replication• Distance Requirements

46

Page 47: Hyper-V High Availability and Live Migration

Hyper-V ReplicaDisaster recovery scenarios Planned, unplanned, and test failoverPre-configuration for IP settings for primary/remote location

Key featuresRecovery point objective and recovery time objective in minutesSeamless integration with Hyper-V and clusteringAutomatically handles all VM mobility scenarios (e.g. live migration)Supports heterogonous storage between primary and recoveryIntegrates with Volume Shadow Services (VSS) Enable-VMReplication

Set-VMReplicationServer

Page 48: Hyper-V High Availability and Live Migration

NASA Image: Hurricane Sandy

Page 49: Hyper-V High Availability and Live Migration

Hurricane Sandy: Email from 10/30/12

Good morning;The Hurricane hit our area badly; many downed trees, even on my wife’s car. Flooding and total power cuts were everywhere. We are very grateful that everyone is well.I now want to thank the Microsoft 2012 server team for giving businesses the new replica feature. Two of our clients (both whom cannot be without their IT infrastructure) were flooded entirely, and might take 2 weeks to get back into their businesses. At 7pm last night we failed over their entire domains to the Replica site, and they have been able to continue their daily business with ZERO interruption. “Windows Server 2012 saved their business”.

Page 50: Hyper-V High Availability and Live Migration

Hyper-V ReplicaComplements Array Based Replication

Replication Provider

Cost Management Performance

Hyper-VReplica

Microsoft • Flexible Storage Options Available

• Unlimited VM Replication included

• VM Granularity• Open APIs

provide extensibility, interoperability and prevent vendor lock-in

• 5 minutes RPOs• Application Level

Consistency• File Level

Consistency

Storage Based

Replication

NetApp, HP, Fujitsu,IBM, Hitachi,

FalconStor, 3Par, EMC, LSI, Compellent, EqualLogic and

more…

• High end replicating storage

• Additional replication software

• LUN-VM Layout• Coordination

with storage team

• Synchronous Replication

• High Data Volumes

Page 51: Hyper-V High Availability and Live Migration

Key Hyper-V Replica TakeawaysEasy to SetupVia wizardOr, via PowerShell

Works with your current hardwareAll you need is two connected servers running Windows Server 2012No Guest Dependencies

Page 52: Hyper-V High Availability and Live Migration
Page 53: Hyper-V High Availability and Live Migration

©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics 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.

Page 54: Hyper-V High Availability and Live Migration

New Live MigrationsStorage live migrationNetwork live migration“Shared nothing” live migrationHyper-V Replica

Page 55: Hyper-V High Availability and Live Migration

New Live Migrations

Branch Office

VHDStorage Live Migration:

Moves VHDs from one disk to another, supports concurrent LMs

Hyper-V Replica:Point-in-time

replication of VHDs for disaster recovery

SAN

VHD

Network Live Migration: Moves VMs across the

network, supports concurrent LMs Network

“Shared Nothing” Live Migration:

Moves VMs & VHDs across the network & SAN, supports concurrent

LMs Network