53

SCU 2015 - Hyper-V Replica

Embed Size (px)

Citation preview

Page 1: SCU 2015 - Hyper-V Replica
Page 2: SCU 2015 - Hyper-V Replica

Hyper-V Replica: adding a new defense layer to your disaster recovery plan…Mike ResselerEvangelist Veeam Software@mikeresseler | @veeam

Page 3: SCU 2015 - Hyper-V Replica

Cost

Page 4: SCU 2015 - Hyper-V Replica

Overview

Relevance & Capabilities

Deployment Considerations

PowerShell

Tips

Agenda

Page 5: SCU 2015 - Hyper-V Replica

Overview

Inbox Replication DR Scenarios

Application Agnostic Storage Agnostic

Page 6: SCU 2015 - Hyper-V Replica

Relevance of Hyper-V Replica

Hyper-V Replica:Availability across datacenter

Site A Site B

Hyper-V & Failover Clustering:

Page 7: SCU 2015 - Hyper-V Replica

Flexible Deployment

Replication between two data centersReplication between SMB to hoster

Page 8: SCU 2015 - Hyper-V Replica

New in Hyper-V 2012 R2

Extended Replication!

Page 9: SCU 2015 - Hyper-V Replica

Asynchronous Replication

Page 10: SCU 2015 - Hyper-V Replica

Replication Resiliency

Resiliency from FailuresRetry and resume semanticsResynchronization

Seamless handling of VM MobilityNo admin intervention requiredLive Migration, Storage Migration and Quick MigrationWithin cluster and across cluster

Page 11: SCU 2015 - Hyper-V Replica

Linux Support!• File-System Consistent snapshots

• IP address injection

Page 12: SCU 2015 - Hyper-V Replica

Demo: Setting up Replica on a host

Page 13: SCU 2015 - Hyper-V Replica

Firewall Rule

Page 14: SCU 2015 - Hyper-V Replica

PowerShellSet-VMReplicationServer -ReplicationEnabled $true -AllowedAuthenticationType Integrated -IntegratedAuthenticationPort 80 -DefaultStorageLocation“D:\Example” -ReplicationAllowedFromAnyServer $true

Page 15: SCU 2015 - Hyper-V Replica

Demo: Replicating our first VM

Page 16: SCU 2015 - Hyper-V Replica

PowerShell$ReplicaServer = “HyperV02.md.local”

$RecoveryPort = 80

$PrimaryVM1 = “TestVM”

$PrimaryServer = “HyperV01.md.local”

Set-VMReplication -VMName $PrimaryVM1 -ReplicaServerName$ReplicaServer -ReplicaServerPort $RecoveryPort -AuthenticationType Integrated -CompressionEnabled $true -RecoveryHistory 0

Start-VMInitialReplication –VMName $PrimaryVM1

Page 17: SCU 2015 - Hyper-V Replica

VM Mobility

Site A Site B

Pre-requisites: Primary migration: All primary servers must be authorizedReplica migration: Requires Hyper-V Replica Broker

Page 18: SCU 2015 - Hyper-V Replica

DR Scenarios

Page 19: SCU 2015 - Hyper-V Replica

Planned Failover

1. Shutdown primary VM2. Send last log3. Failover Replica VM4. Reverse replicate

• Testing DR or site maintenance or impending disaster

• Zero data loss but some downtime

• Efficient reverse replication

Site A Site B

Page 20: SCU 2015 - Hyper-V Replica

Planned FailOver• Started on Primary VM, ended on Replica VM

• No duplicate VM is created

• Timeframe: depends on you

• Recommed frequency: 6 months

• Replication: Continues, reversed mode

• Data Loss: No

• Down Time: Yes (Planned)

Page 21: SCU 2015 - Hyper-V Replica

Demo: Planned Failover

Page 22: SCU 2015 - Hyper-V Replica

Test Failover

Non-disruptive testing of workload – zero downtimeTest any recovery pointPre-configure isolated network

Site A Site B

Page 23: SCU 2015 - Hyper-V Replica

Test Failover Demo Setup

Page 24: SCU 2015 - Hyper-V Replica

Test FailOver• Started Replica VM

• Duplicate VM is created

• Timeframe: Short

• Recommended frequency: once a month

• Replication: Continues

• Data Loss: No

• Down Time: No

Page 25: SCU 2015 - Hyper-V Replica

Demo: Test Failover

Page 26: SCU 2015 - Hyper-V Replica

Failover• When there is an issue

• Replica uses Remote WMI to test if primary is stillrunning (to prevent split-brain)

• Previous PIT if recovery history is used

• If failover is OK, do a complete to merge

Page 27: SCU 2015 - Hyper-V Replica

FailOver• Started Replica VM

• No duplicate VM is created

• Timeframe: depends

• Recommed frequency: never

• Replication: Stopped

• Data Loss: Possible

• Down Time: Yes

Page 28: SCU 2015 - Hyper-V Replica

Demo: Failover

Page 29: SCU 2015 - Hyper-V Replica

Network Configuration on Replica

Server Name IP Address

SQLVM 10.22.100.XX

Page 30: SCU 2015 - Hyper-V Replica

Deployment Considerations

Page 31: SCU 2015 - Hyper-V Replica

Network Capacity

0

5

10

15

0.5 GB 1 GB 3 GB 5 GB 7 GB 8 GB 10 GBAvg

. Re

plic

atio

n L

ate

ncy

(m

ins)

Uncompressed data transferred in 24 hrs

Page 32: SCU 2015 - Hyper-V Replica

Network Throttling• Use Windows Server 2012 QoS to throttle replication traffic

• Throttling based on the destination subnet

• Throttling based on the destination port

- Throttling based on Application Name

Page 33: SCU 2015 - Hyper-V Replica

Network Utilization• Replicating multiple VMs in parallel

• Higher concurrency leads to resource contention and latency

• Lower concurrency leads to underutilizing

• Manage initial replication through scheduling

• Manage delta replication

Network bandwidth Ideal number of parallel transfers

1.5 Mbps, 100ms, 1% packet loss 3 (Default)

300 Mbps, 10ms, 1% packet loss 10

Page 34: SCU 2015 - Hyper-V Replica

Backup Interoperability

• Backup copy to seed Initial Replication

• Back-up Primary VM• Concurrent backup and replication are handled seamlessly

• Restore of Primary VM requires resync

• Back-up Replica VM• Replica VM turned off

• Backup is on hold when VHD is modified by replication

• Restore of replica VM requires resync

Page 35: SCU 2015 - Hyper-V Replica

Server Impact• Impact on primary server

• Storage space: Proportional to writes in the VM

• Storage IOPS on ~ 1.5 times write IOPS• Impact on replica server

• Storage space: Proportional to the write-churn• Each additional recovery point ~10% of the base VHD size

• Storage IOPS:

• Memory ~50MB per replicating VHD

• CPU impact <3%

Page 36: SCU 2015 - Hyper-V Replica

PowerShell• Use PowerShell to manage and automate your replica’s

• Get-command –Module Hyper-V | where {$_.Name –like“*replication*”}

• Get-command –Module Hyper-V | where {$_.Name – like“*failover*”}

Page 37: SCU 2015 - Hyper-V Replica

Tips• Use bandwidth control!

• Firewall!

• Cluster: Replica Broker role

• Traffic encrypted or not?

• Which vhd(x)?

• Watch for resynchronization!

Page 38: SCU 2015 - Hyper-V Replica

Capacity Planner• http://www.microsoft.com/en-

us/download/details.aspx?id=39057

Page 39: SCU 2015 - Hyper-V Replica

Out-of-Band IR• Create Replica on Primary Site

• Choose “Send initial copy using external media”

• Move over data

• Import initial replica

Page 40: SCU 2015 - Hyper-V Replica

Out-of-Band IR - PowerShell• Enable-VMReplication –VMName TestVM –ReplicaServerName

HyperV02.md.local –ReplicaServerPort 80 –AuthenticationTypeKerberos

• Start-VMInitialReplication –VMName TestVM –DestinationPathF:\VirtualMachineData\

• Import-VMInitialReplication –VMName TestVM -Path D:\VirtualMachineData\ TestVM_A60B7520-724D-4708-8C09-56F6438930D9

Page 41: SCU 2015 - Hyper-V Replica

Out-of-Band Demo

Page 42: SCU 2015 - Hyper-V Replica

Saving Disk Space• Use Dynamic disks at the Replica Side

• Enable replication from the customer to the hosting provider using online IR or out-of-band IR.

• The hosting provider waits for the IR to complete.

• The hosting provider can then pause the replication at any time on the Replica server – this will prevent HRL log apply on the disk while it is being converted.

• The hosting provider can then convert the disk from fixed to dynamic using the Edit Disk and Convert option

• The hosting provider then replaces the fixed disk with the dynamic disk at the same path and with the same name.

• The hosting provider resumes replication on the Replica site.

• Convert-VHD –Path c:\FixedDisk.vhdx –DestinationPath f:\FixedDisk.vhdx –VHDTypeDynamic

Page 43: SCU 2015 - Hyper-V Replica

Online Resize supported?• No need for resync

• No need to delete and reenable

• But you need to do it on both sides manually

• However: Failover older recovery points…

Page 44: SCU 2015 - Hyper-V Replica

Upgrading to R2• First Upgrade Replica Servers

• Or migrate to new 2012 R2 server

• Then your primary server

Page 45: SCU 2015 - Hyper-V Replica

Deduplication on Replica server• Without recovery points… No problem

• With recovery points:

• Slower… 5 to 7 times…

• 15 seconds can be a problem… 5 minutes maybe…

• Solution:

• Defragment volume (once every 3 days at least)

• Increase the dedup policy to 1 day instead of 3

Page 46: SCU 2015 - Hyper-V Replica

Best Practices Analyzer

Page 47: SCU 2015 - Hyper-V Replica

Best Practices Analyzer37 A Replica server must be configured to accept replication requests 38 Replica servers should be configured to identify specific primary servers authorized to send replication traffic 39 Compression is recommended for replication traffic 40 Configure guest operating systems for VSS-based backups to enable application-consistent snapshots for Hyper-V Replica 41 Integration services must be installed before primary or Replica virtual machines can use an alternate IP address after a failover 42 Authorization entries should have distinct tags for primary servers with virtual machines that are not part of the same security group. 43 To participate in replication, servers in failover clusters must have a Hyper-V Replica Broker configured 44 Certificate-based authentication is recommended for replication. 45 Virtual hard disks with paging files should be excluded from replication 46 Configure a policy to throttle the replication traffic on the network 47 Configure the Failover TCP/IP settings that you want the Replica virtual machine to use in the event of a failover 48 Resynchronization of replication should be scheduled for off-peak hours 49 Certificate-based authentication is configured, but the specified certificate is not installed on the Replica server or failover cluster nodes 50 Replication is paused for one or more virtual machines on this server 51 Test failover should be attempted after initial replication is complete 52 Test failovers should be carried out at least monthly to verify that failover will succeed and that virtual machine workloads will operate as expected after failover 53 VHDX-format virtual hard disks are recommended for virtual machines that have recovery history enabled in replication settings 54 Recovery snapshots should be removed after failover

Page 48: SCU 2015 - Hyper-V Replica

PowerShell• Invoke-BpaModel -ModelId Microsoft/Windows/Hyper-V

• Get-BpaResult -ModelId Microsoft/Windows/Hyper-V

• Get-BpaResult -ModelId Microsoft/Windows/Hyper-V -Filter Noncompliant

Page 49: SCU 2015 - Hyper-V Replica

Site Recovery

Cust

ome

Microsoft Azure Site Recovery

MicrCust

DR OrchestrationDR Orchestration

Target: Microsoft Azure

for Windows Server 2012+ Hyper-V

Extensible Data Channel

SCVMM

&

DRP

SCVMM

&

DRP

Page 50: SCU 2015 - Hyper-V Replica

Orchestration and Replication: InMage Scout

Microsoft Azure Site Recovery

Primary Site

InMage Scout

Orchestration and Replication: Hyper-V Replica, SQL AlwaysOn

Microsoft Azure Site Recovery

Primary Site

Hyper-V

On-premises to On-premises protection (Site-to-Site)

Orchestrated Disaster Recovery

Microsoft Azure Site Recovery

Orchestration Channel

Replication channels:

Hyper-V Replica, SQL AlwaysOn,

SAN

Primary Site

Hyper-V

Recovery Site

Hyper-V

Microsoft Azure Site Recovery

Orchestration and Replication

channel: InMage Scout

Primary Site

VMware / Physical

Recovery Site

InMageScout

InMageScout

Key features include:

Automated VM protection and replication

Remote health monitoring

Near zero RPO

No-impact recovery plan testing

Customizable recovery plans

Minimal RTO – few minutes to hours

Orchestrated recovery when needed

Replicate to – and recover in – Azure

Heterogeneous physical and virtual support

On-premises to Azure protection (Site-to-Azure)

VMware / Physical

VMware / Physical

COMING SOON!

Download InMage Scout

Page 51: SCU 2015 - Hyper-V Replica

Possibilities

• On-Premises VMM Site to Azure (Hyper-V Replica)

• On-Premises to On-Premises VMM Site (Hyper-V Replica)

• On-Premises to On-Premises VMM Site (SAN Replication)

• On-Premises to On-Premises VMware Site protection

• On-Premises to Azure Hyper-V Site protection

Page 52: SCU 2015 - Hyper-V Replica

Additional information• http://www.veeam.com/wp-hyper-v-replica-

depth.html

Page 53: SCU 2015 - Hyper-V Replica

Thank Youwww.systemcenteruniverse.asia

…for updated content and NEWS