hyper-v - windows 2012 r2 - overview - · pdf fileblock storage file based storage vhdx vhdx...

43
Alessandro Cardoso Insight Practice Manager Microsoft MVP Twitter: @edvaldocardoso Blog: htpp://cloudtidings.com

Upload: truongngoc

Post on 06-Mar-2018

227 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

Alessandro CardosoInsight Practice ManagerMicrosoft MVP

Twitter: @edvaldocardosoBlog: htpp://cloudtidings.com

Page 2: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

Technology passionate and evangelist; Subject matter expert in cloud, virtualization and management.

He has experience managing, solutioning, planning, organizing, and leading complex global projects acquired in 20+ years of experience in IT, working in segments spanning from government, health, education and IT sectors.

MVP VM since 2009 and a well-known speaker at IT-related for more than 10 years. Recently wrote the book System Center VMM 2012 http://wp.me/p15Fu3-mK and reviewed the following books:Windows 2012 Hyper-V Cookbook, Windows 2012 Cluster , VMware vSphere 5.1 Cookbook

Blog : http://cloudtidings.com/Twitter : @edvaldocardoso

Page 3: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared
Page 4: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared
Page 5: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

Design for Hyper-V on SMB 3.0 storage with RDMA (SMB Direct)

Page 6: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

New-VMSwitch -Name “External” -NetAdapterName “VM-TEAM” -AllowManagementOS $false

New-VMSwitch -Name “MGMT-LM-CSV-SWITCH” -NetAdapterName “MGMT-LM-CSV-TEAM” -AllowManagementOS 0 -MinimumBandwidthMode Weight

Set-VMSwitch “MGMT-LM-CSV-SWITCH” -DefaultFlowMinimumBandwidthWeight 100Add-VMNetworkAdapter -ManagementOS -Name Management –SwitchName MGMT-LM-CSV-SWITCHAdd-VMNetworkAdapter -ManagementOS -Name LM -SwitchName MGMT-LM-CSV-SWITCHAdd-VMNetworkAdapter -ManagementOS -Name CSV -SwitchName MGMT-LM-CSV-SWITCHSet-VMNetworkAdapter -ManagementOS -Name LM -MinimumBandwidthWeight 40Set-VMNetworkAdapter -ManagementOS -Name CSV -MinimumBandwidthWeight 5Set-VMNetworkAdapter –ManagementOS –Name Management –MinimumBandwidthWeight 5

Page 7: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

Legacy Devices Removed Replacement Devices EnhancementsIDE Controller Virtual SCSI Controller Boot from VHDx (64TB max size, online resize)

IDE CD-ROM Virtual SCSI CD-ROM Hot add/remove

Legacy BIOS UEFI firmware Secure Boot

Legacy NIC Synthetic NIC Network boot with IPv4 & IPv6

Floppy & DMA Controller No floppy support

UART (COM Ports) Optional UART for debugging Faster and more reliable

i8042 keyboard controller Software based input No emulation – reduced resources

PS/2 keyboard Software based keyboard No emulation – reduced resources

PS/2 mouse Software based mouse No emulation – reduced resources

S3 video Software based video No emulation – reduced resources

PCI Bus VMBus

Programmable Interrupt Controller (PIC) No longer required

Programmable Interrupt Timer (PIT) No longer required

Super I/O device No longer required

Page 8: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared
Page 9: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared
Page 10: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared
Page 11: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared
Page 12: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared
Page 13: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared
Page 14: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

PING is a poor tool to evaluate a live migrationICMP works at the IP layer and TCP is what makes a live migration seamless

Page 15: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

Live Migrate VM and Storage to Clusters

Live Migrate VM and Storage Between

Clusters

Live Migrate VM and Storage to Stand-Alone Server

You can move a VM anywhere in your datacenter with zero downtime!

Page 16: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

• Ability to do multiple live migrations in parallel• Unlimited number of live migrations can be

performed in parallel• Default configuration of 2 simultaneous LM’s per host

• Wield this power wisely• Excessive number of simultaneous migrations may actually result in overall longer

times than serially• Lets discuss on the next slide…

Page 17: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

0

2

4

6

8

10

12

14

16

18

20

1 3 32

Time to Drain 32 VMs

Disclaimer Results will vary based on hardware

Network

Migrate VM

Migrate VM

Migrate VM

Page 18: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared
Page 19: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared
Page 20: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

• Streamlines ‘Patch Tuesday’• Zero downtime patching!

• Coordinates with Windows Update Agent (WUA)• Updates in a rolling fashion, 1 node at a time

• Serially steps through all nodes

• Coordinator can be made clustered, for Self-Updating mode

UpdateCoordinator

Admin

Initiate Cluster-Aware Updating

Page 21: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

• Move a VHD or VHDX from one host to another with zero downtime

• Storage Migration between hosts without shared storage is done over SMB protocol

• Storage Migration accelerated by arrays that support Offloaded Data Transfer (ODX)

• Enables draining a storage array for planned maintenance

Page 22: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

Storage Migrate this VHDX to another disk

Client accessing VM

VM stays running servicing clients

VHDX

Page 23: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

• New VHDX created on destination storage

New VHDX created on new storage

VHDXVHDX

Page 24: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

• Reads are from Source VHDX• Writes are done to Source VHDX and also synchronously to the

Destination VHDX

Writes mirrored to new Destination VHDX

Reads are from Source VHDX

VHDX VHDX

Page 25: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

• Source VHDX data is copied over to Destination VHDX

• Only unchanged blocks are copied over

VHDX data copied from Source to Destination

VHDXVHDX

Page 26: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

• Once all data is synchronized VM is switched to new VHDX• Source VHDX is only removed once verified to be running on

Destination VHDX• Enables roll-back

Reads and Writes transitioned to new VHDX

VHDX

Page 27: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared
Page 28: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

• Protects from unplanned downtime:• Hardware• Host OS• VM• Guest OS • Apps in VMs

• Session state lost

Page 29: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

NetFT

Node 1

ClusSvc

VMMS

User Mode

Kernel Mode

RHS

Guest OS

VDev

NetFT

Node 2

ClusSvc

VMMS

RHS

Guest OS

VDev

vmclusres.dllvmclusres.dll

Page 30: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

• VMs restarted on another node

• VM OS restarted on same node

• VM OS restarted on same node

• Live migrate VMs to other hosts

• Live migrate VMs to different servers to load balance

Page 31: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

FC SAS RBOD

iSCSI FCoE

SAS JBOD

Shared Storage

RAID HBA Software Replication

Hardware Replication

SMB

Data Replication

Application Replication

Spaces

Page 32: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared
Page 33: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

• Enables all servers in a Failover Cluster to access a common NTFS volume• Provides a layer of abstraction above NTFS

• No dismounting and remounting of volumes• Faster failover times (aka. less downtime)

Page 34: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

VM running on Node 2 is unaffected

Coordination Node

SAN Connectivity Failure

I/O Redirected via network

VM’s can then be live migrated to another node with zero client downtime

VHDX

Page 35: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

• Application within VM crashes, application automatically restarts or fails over

• Guest OS needs patching or VM needs maintenance, application moved to other node

Cluster

Page 36: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

File Based StorageBlock Storage

VHDX VHDX

Guest Clustering

Guest Clustering with commodity storage

Sharing VHDX files provides shared storage for Hyper-V Failover Clustering

Maintains separation between infrastructure and tenants

Virtual SAS

VM presented a shared virtual SAS disk

Appears as shared SAS disk to VM

Cluster Shared Volumes (CSV) on block storage

Scale-Out File Server for file based storage

Page 37: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

• VM high-availability & mobility between physical nodes• Application & service high-availability & mobility between VMs

• Must pass Validate

CLUSTER CLUSTERiSCSI or FC

Guest Cluster

SAN SAN

Page 38: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared
Page 39: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

VHDX VHDX

Page 40: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

• Automatic and manual failover for DR• Supports 3rd party hardware and software based

replication

Page 41: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

Hyper-V Replica• RPO = 5 minutes• RTO = Manual (longer)• Cost = In-box in Windows Server• Complexity = Low

Multi-Site Clustering• RPO = 0 minutes*• RTO = Automatic (fast)• Cost = High• Complexity = High

*depending on 3rd party replication solution

Page 42: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared

Planned Downtime

Unplanned Downtime Disaster Recovery

Page 43: Hyper-V - Windows 2012 R2 - Overview - · PDF fileBlock Storage File Based Storage VHDX VHDX Guest Clustering Guest Clustering with commodity storage Sharing VHDX files provides shared