Upload
ertan-gulen
View
944
Download
2
Embed Size (px)
DESCRIPTION
Citation preview
Hyper-V ile Yüksek Erişilebilirlik Senaryoları
Ertan [email protected]
Failover Clustering & Hyper-V
Guest vs. Host Cluster
Deployment & Validation
Optimizing for Hyper-V
Datacenter Management
CLUSTER
Host Clustering
Cluster service runs inside (physical) host and manages VMsVMs move between cluster nodes
Live Migration – No downtimeQuick Migration – Session state saved to disk
SAN
Why use Host Clustering?
Never rely on a single server for critical systems“Do not put all your eggs in 1 basket”
Survive Host CrashesVMs 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
CLUSTER
Guest Clustering
Cluster service runs inside a VMApps and services inside the VM are managed by the clusterApps move between clustered VMs
iSCSI
CLUSTERc
Why use Guest Clustering?
Application 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
iSCSI
Guest vs. Host: Health Detection
Fault Host Cluster Guest Cluster
Host Hardware Failure
Parent Partition Failure
VM Failure
Guest OS Failure
Application Failure
Guest vs. Host: Storage Options
Storage Host Cluster Guest Cluster
Fibre Chanel (FC)
Serial Attached SCSI (SAS)
iSCSI
Failover Clustering & Hyper-V
Guest vs. Host Cluster
Deployment & Validation
Optimizing for Hyper-V
Datacenter Management
SKUs & Hyper-V Server
Microsoft Hyper-V Server 2008 R2FREE Host OS – Download it today!Built on Server Core for even higher availabilityFailover Clustering, Hyper-V, CSV, Live Migration16-node SupportMore information: http://www.microsoft.com/hyper-v-server/en/us/default.aspx
All solutions still have 2 requirements for support:Every component must be logoed The entire solution must pass “Validate”
Specification Hyper-V Server Enterprise Datacenter
Failover Cluster Nodes 16 16 16
VM Guest Licenses 0 4 Unlimited
Validating a Cluster
• For Microsoft support, cluster must pass the built-in Validate a Cluster Configuration (“Validate”) test
• Run during configuration or after deployment• Best practices analyzed if run on configured cluster
• Series of end-to-end tests on all cluster components• Configuration info for support and documentation• Networking issues• Troubleshoot in-production clusters
• More information http://go.microsoft.com/fwlink/?LinkID=119949
PowerShell Support
Improved ManageabilityRun ValidateEasily Create Clusters & HA RolesGenerate Dependency ReportsBuilt-in Help (Get-Help Cluster)
Hyper-V IntegrationCreate VMs: Add-ClusterVirtualMachineRoleQuick migration: Move-ClusterGroupLive migration: Move-ClusterVirtualMachineRoleAdd a disk to CSV: Add-ClusterSharedVolumeMove CSV disk: Move-ClusterSharedVolumeUpdate VM Configuration: Update-ClusterVirtualMachineConfiguration
Server Core, Hyper-V Server 2008 R2 & RSAT Client
Replaces cluster.exe as the CLI tool
Failover Clustering & Hyper-V
Guest vs. Host Cluster
Deployment & Validation
Optimizing for Hyper-V
Datacenter Management
Cluster Shared VolumesData over any network
VHD VHD VHD
Coordinator Node
1 LUN : Many VMs
Hyper-V
Only
Every node can access storage
SAN
Live Migration
Memory content is copied to new server
Entire VM memory copied
Live Migrate
May be additional incremental data copies until data on both nodes is essentially identical
VHD
SAN
Live Migration
Session state is maintainedNo reconnections necessaryClients stay connected to a “live” VM
VHD
SANARP redirects clients to new nodeOld VM deleted after success
Client directed to new host
CLUSTER
Configuring VM Health Monitoring
Enable VM heartbeat settingRequires Integration Components (ICs) installed
Health check for VM OS from hostUser-Mode HangsSystem Crashes
SAN
NICs & Networks in a Cluster
Best SolutionInternal / Cluster / CSV / ‘Heartbeat’Public network for clustered Apps, Services & VMsStorage: iSCSIHyper-V: VM Guest ManagementHyper-V: Live Migration
Minimum is 2 networks:Internal & Live MigrationPublic & VM Guest Management
Use ‘Network Prioritization’ to configure your networks
Settings: Dynamic MemoryWS2008 R2 SP1 & Hyper-V Server 2008 R2 SP1
Upgrade the Guest Integration Components
Higher VM density across all nodesMemory allocated to VMs is dynamically adjusted in real time
“Ballooning” makes memory pages non-accessible to the VM, until they are neededDoes not impact Task Scheduler or other memory-monitoring utilities
Memory Priority Value is configurable per VMHigher priority for those with higher performance requirements
Ensure you have enough free memory on other nodes for failure recovery
Refreshing the VM Configuration
Make configuration changes through Failover Cluster Manager or SCVMM
Hyper-V Manager is not cluster aware, changes will be lost
“Refresh virtual machine configuration”Looks for any changes to VM or Cluster configurationPS > Update- ClusterVirtualMachineConfiguration
StorageMoves disks into correct group with new VMsEnsures VM on correct CSV disk with updated paths
NetworkApplies changes to cluster network propertiesChecks live migration compatibility
Several other checks performed
Failover Clustering & Hyper-V
Guest vs. Host Cluster
Deployment & Validation
Optimizing for Hyper-V
Datacenter Management
Virtual Machine Density1000 VMs per ClusterDeploy them all across any number of nodes384 VM/node limitPlanning Considerations:
Hardware LimitsHyper-V LimitsReserve CapacityStorage I/O & Latency
SCVMM: Live MigrationDetects if Live migration can be doneNode placed into ‘Maintenance Mode’
Live-migrate (default) all running HA VMs Serialized multiple live migrationsSave-State (optional)Ideal for host maintenance and patching
Automatically retries live migrations if a node is busy
SCVMM: Quick Storage Migration
Ability to migrate VM storage to new locationMinimizes downtime during transferHandled in a single seamless action
SCOM: Performance & Resource Optimization (PRO)
Alleviate the effects of host-level failure
Ensure efficient use of resources in the virtualized environment
Allow VMM Admins to react and manage resources independently
Integrated with SCVMM
SCOM sends alters to SCVMM to trigger live migration of VMs
Putting it Together