VIR365: Virtualization And High Availability

31
Virtualization And High Availability Howard Chow Microsoft MVP

Transcript of VIR365: Virtualization And High Availability

Page 1: VIR365: Virtualization And High Availability

Virtualization And High Availability

Howard Chow

Microsoft MVP

Page 2: VIR365: Virtualization And High Availability

Session Objectives And Agenda

• Virtualization and High Availability

• Types of high availability enabled

by virtualization

• Enabling a highly available cluster

with virtual machines

• Demo: Windows Server 2008 Cluster Creation

• Demo: Making a Virtual Machine

highly available

• High Availability Best Practices

Page 3: VIR365: Virtualization And High Availability

Session Prerequisites

• Knowledge of Windows Server 2008

• Knowledge of Microsoft Hyper-V

• Cluster Experience NOT REQUIRED!

Page 4: VIR365: Virtualization And High Availability

Windows Server 2008 With Hyper-V Technology

• A role of Windows Server 2008 (Std, EE, DC)

– Can be installed on both Windows Server 2008

Full and Core

– Production servers can be configured as a minimal footprint

Server Core role

• Hypervisor based architecture

• Flexible and dynamic virtualization solution

• Managed by the Microsoft System Center family of

products

Page 5: VIR365: Virtualization And High Availability

VIRTUALIZATION AND HIGH

AVAILABILITY

Page 6: VIR365: Virtualization And High Availability

Virtualization And High Availability

• Traditional Non-Virtualized

Environment

– Downtime is bad,

but affects only

one workload

Virtualized EnvironmentValue of the physical server goes up

Downtime is far worse because multiple workloads are affected

Virtualization and High-Availability Go Hand in Hand

Page 7: VIR365: Virtualization And High Availability

Microsoft Hyper-V Quick Migration

• Provides solutions for both planned

and unplanned downtime

• Planned downtime

– Quickly move virtualized workloads to service underlying hardware

– More common than unplanned

• Unplanned downtime

– Automatic failover to other nodes

(hardware or power failure)

– Not as common and more difficult

Page 8: VIR365: Virtualization And High Availability

Quick Migration Fundamentals – Planned

Downtime1. Save state

a) Save entire virtual

machine state

2. Move virtual machine

a) Move storage

connectivity from origin

to destination host

3. Restore state and Run

a) Restore virtual machine

and run

VHDs

Network Connectivity

Shared Storage

Page 9: VIR365: Virtualization And High Availability

Quick Migration:

Planned Downtime

• Active server requires servicing

• Move virtualized workloads to a standby server

Virtualization Servers(3 + 1 Servers)

System Center Virtual Machine Manager 2008

Windows Server 2008Failover Cluster Manager

VHDs onSAN

DomainController

Eth

ern

et

Storage Connectivity

Page 10: VIR365: Virtualization And High Availability

Quick Migration:

Unplanned Downtime

• Active server loses power

• Virtual machines automatically restart on the next cluster node

• If there is not enough memory, the failover automatically moves to the next node until done

Virtualization Servers(3 + 1 Servers)

System Center Virtual Machine Manager 2008

Windows Server 2008Failover Cluster Manager

VHDs onSAN

DomainController

Eth

ern

et

Storage Connectivity

Page 11: VIR365: Virtualization And High Availability

Quick Migration

Storage Considerations (1/2)• Pass-through Disks in a cluster

– Provides enhanced I/O performance

– Requires VM configuration file to be stored separate

from the virtual machine file

– Create file share on the cluster and store VM configuration files for

virtual machines that use pass-thru

• VHD Based

– One LUN per VM best practice

– Ability to provision more then one VM per LUN

but all failover as a unit

Page 12: VIR365: Virtualization And High Availability

Quick Migration

Storage Considerations (2/2)

• SAN/iSCSI

– Leverage MPIO solutions for path availability

and I/O throughput

– Leverage VM provisioning via GUID ID instead of drive

letter

• \\?\<GUID>\

• Use Mountvol.exe to find GUID of provisioned LUN

Page 13: VIR365: Virtualization And High Availability

Windows Server 2008 Hyper-V High

Availability: A Competitive Look

Windows Server

2008 Hyper-VVMware VI3

Starter

VMware VI3

Standard

VMware VI3

Enterprise

Volume Shadow

Service Support

for Host Backup?

Yes No No Proprietary

Backup Solution

Quick Migration? Yes, RTM No No N/A

Unplanned

downtime

failover?

Yes, RTM;

Parity with

VMware VI3 EE

No No Yes;

Parity with

Windows

Virtualization

Cost: Included with

Windows Server

2008 EE and DTC

Editions

$1,000 for

two sockets;

$2,000 for

four sockets

$3,750 for

two sockets;

$7,500 for

four sockets

$5,750 for

two sockets;

$11,500 for

four sockets

Additional

Comments:

High Availability

Built-In

No SAN support;

Limited to 8 GB of

physical memory

support

No migration or

server side

backup

capabilities

Page 14: VIR365: Virtualization And High Availability

Other Types Of High Availability

• Virtual Machine Clustering

– Suited for stateful applications

– Application clusters

• SQL

• Exchange

• Network Load Balancing

– Stateless HA approach

– Enabled with Hyper-V’s enhanced

networking support

Page 15: VIR365: Virtualization And High Availability

Comparing High Availability To

Fault Tolerance• Continuous replication of VM memory contents

• Fail through concept vs. failover

• Hardware or component failure undetected

by applications

• Requires redundant hardware configurations deployed in lock step

• Special interconnects

• Vendors with FT Hyper V solutions

– Marathon

– Stratus Technologies

Page 16: VIR365: Virtualization And High Availability

Configuring A VM To Be Highly

Available

VM Resource VM Config Resource

Disk Resource

1. Create

resource

group

2. Find available

disk resource

3. Move the disk

to resource

group

4. Create VM

Configuration

resource

5. Create VM

resource

6. Set resource

dependencies

Page 17: VIR365: Virtualization And High Availability

Can the cluster sustain 1 node failure?Cluster reserve = 1 node

Placement And Cluster Reserve

Clustered Host 1 Clustered Host 2 Clustered Host 3

YES

Page 18: VIR365: Virtualization And High Availability

STRETCH CLUSTER

Page 19: VIR365: Virtualization And High Availability

Geographically Diverse Clusters

But businesses are now demanding more!

Stretching Nodes across the river used to be good enough…

Page 20: VIR365: Virtualization And High Availability

Stretch Clusters (Long Distance)

• No More Single-Subnet Limitation

– Allow cluster nodes to communicate across network routers

– No more having to connect nodes with VLANs!

• Configurable Heartbeat Timeouts

– Increase to Extend Geographically Dispersed Clusters over greater

distances

– Decrease to detect failures faster and take recovery actions for quicker

failover

• Storage Vendor Based Solution

– Mirrored storage between stretched locations

– Hardware or Software based replication

Page 21: VIR365: Virtualization And High Availability

GUEST CLUSTERING

Page 22: VIR365: Virtualization And High Availability

Guest Clustering

• Is the workload being run in the virtual

machine cluster aware?

– File, Print, DNS, DHCP, SQL, etc

• Virtual machines are clustered using iSCSI

• Guest clustering can be used

with quick migration!

Page 23: VIR365: Virtualization And High Availability

Guest Clustering Example

Windows Server 2008

with Hyper-V

iSCSI

Target

Node

1

Node

2

Private

Virtual

Network

Page 24: VIR365: Virtualization And High Availability

Guest Clustering – Best Practices

• Multiple NICs in system

– Private virtual network for cluster

communication

– Virtual network dedicated for iSCSI traffic

• Workload running in VM must be cluster

aware

Page 25: VIR365: Virtualization And High Availability

HYPER-V & NLB

Page 26: VIR365: Virtualization And High Availability

Why Network Load Balancing?• Scalability

– Network Load Balancing can load balance requests

for individual TCP/IP request across the cluster

– Can load balance multiple server requests, from the

same client or from several clients across multiple hosts

in the cluster

• High Availability

– Can automatically detect and recover from a failed

or offline computer

– Can automatically rebalance the network load when servers are

added or removed

Page 27: VIR365: Virtualization And High Availability

Windows Server Virtualization And

Network

Load

Balancing

Virtualization ServersRunning Virtual

Web Servers with NLB

PublicWeb Store VHDs on

SAN

DomainController

Eth

ern

et

• June : Web Store working well

Storage Connectivity

Operations Manager•Monitoring system health and performance •Enforces business policy•Integrates with Virtual Machine Manager

Virtual Machine Manager•Virtual Machine Management•Rapid deployment•Centralized Virtual Machine Library

• Nov: Operations Manager notices seasonal demand and signals Virtual Machine Manager to deploy an additional Web Server

• Dec: Even more customer demand means that another Web Server will be rapidly deployed

Page 28: VIR365: Virtualization And High Availability

Microsoft Virtualization HA

Partners

• Clustered File Systems

– SanBolic

– PolyServe

• Replication

– Storage OEM synchronous

and asynchronous solutions

– Doubletake

Page 29: VIR365: Virtualization And High Availability

Resources

Hyper-V WMI Provider APIs –

http://msdn2.microsoft.com/en-

us/library/cc136992(VS.85).aspxHyper-V Hypercall Interface –

http://www.microsoft.com/downloads/details.aspx?FamilyId=9

1E2E518-C62C-4FF2-8E50-3A37EA4100F5&displaylang=en

Windows Server 2008 Home –

http://www.microsoft.com/windowsserver2008/

Microsoft Virtualization Home –

http://www.microsoft.com/virtualization

Page 30: VIR365: Virtualization And High Availability

Q&A

Page 31: VIR365: Virtualization And High Availability

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista 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.