SlideShare a Scribd company logo
VMware vSphere Replication:
Technical Walk-Through with Engineering
Aleksey Pershin, VMware
Ken Werneburg, VMware
BCO4977
#BCO4977
2
Agenda
 Introduction to vSphere Replication
 What’s New in 2013
 vSphere Replication and SRM
 Configuring VR replication
 VR internals
 Failover and test
 Automated reprotect and failback
 Summary
3
Agenda
 Introduction to vSphere Replication
 What’s New in 2013
 vSphere Replication and SRM
 Configuring VR replication
 VR internals
 Failover and test
 Automated reprotect and failback
 Summary
4
vSphere Replication: Protection Built-in to the Platform!
Standalone
Protection
VM-by-VM
Protection and
Recovery
Replication
Engine
Integrated with
the vSphere
Platform
Bundled with
most vSphere
Editions
vSphere vSphere
vSphere Replication enables simple
and reliable protection for all Virtual Machines
5
Introduction to vSphere Replication: Protection for SRM
Replication built
into vSphere
Replicates
individual VMs
Replicates
between
heterogenous
datastores
Asynchronous
replication with
RPO >= 15 min
Alternative or
augmentation for
ABR
Recovery and
test are done
through SRM
recovery plans
vSphere Replication can be used by SRM as the replication engine
vSphere vSphere
6
vSpherevSphereESX
vSpherevSphere
vSphere
VMVM
VR Appliance
vCenter
Protected Site Recovery Site
VR Agent
(Further VR
Servers)
vCenter
NFC Service
vSphere Web UI
vSphere Replication Architecture
VR vSCSI Filter
VM
VR Appliance
7
Agenda
 Introduction to vSphere Replication
 What’s New in 2013
 vSphere Replication and SRM
 Configuring VR replication
 VR internals
 Failover and test
 Automated reprotect and failback
 Summary
8
Top New Features in vSphere Replication
Multiple Points in Time
Multiple vSphere Replication Appliances per
vCenter
Support for Storage vMotion
New User Interface Location
Support for vSAN and other VM Storage
Policies
Dramatic Speed Improvement
9
Secondary DC
StorageStorage
vSphere
VR Agent
vSphere
VR Agent
(VMDK3)VMDK1
VR
Appliance
StorageStorage
vSphere
VR Agent
(VMDK1)VMDK2
VR
Appliance
vSphere
VR Agent
VR Server
StorageStorage
VMDK3 (VMDK2)
vCenter Server
vCenter Server
Main Office Datacenter
Open Topologies with up to 10 vSphere Replication Appliances
Replicate to or between remote sites with or without a vCenter server present!
Remote Office
10
Up to 24 Points in Time Retained to Allow Reversion of VM State
Retention policy is specified during configuration of replication
11
Protected Site Storage vMotion Now Supported
Replication
Manually migrate VMs or even use Storage DRS to ease management
Protected Site Recovery Site
Storage vMotion
can now be used
for protected virtual
machines.
Only protected site
VMDKs can be
migrated: recovery
‘shadow’ objects
are fixed.
12
Administrator chooses a VM Storage Policy: only valid datastores are selectable
VM Storage Policy and vSAN Interoperability
13
VR Now Found Under the Corresponding vCenter
vSphere Replication now easier to find and more intuitive to manage
14
Each vCenter Now Has “Monitor” and “Manage” for VR
vSphere Replication now easier to find and more intuitive to manage
15
Dramatic Performance Improvement
vSphere
VR Agent
vSphere
VR Agent
VR Server VR Server
5.5 Behaviour5.1 Behaviour
Increased parallelism and more efficient throughput means faster replication,
pushing more data. Replicate more, with no performance cost!
New TCP Stack
Optimized for
Latency
Buffered IO for
NFC Writes
Coalesced
Contiguous
Writes
16
Agenda
 Introduction to vSphere Replication
 What’s New in 2013
 vSphere Replication and SRM
 Configuring VR replication
 VR internals
 Failover and test
 Automated reprotect and failback
 Summary
17
vSphere Replication and SRM
SVR is now independent of SRM
SVR can replicate within a single vCenter
• SRM will discover and use SVR and its
replication
SRM can be installed after SVR
• Gain automation, test recovery, failback,
customization, reporting...
Upgrade to SRM
SVR and SRM can coexist
See a more detailed session on using VR and SRM
INF-BCO5129 “Protection for All – vSphere Replication + SRM Technical Update”
18
Architecture: vSphere Replication with Site Recovery Manager
“Protected” Site “Recovery” Site
VR App VR App
vSphere Client
SRM Plug-In
vSphere Client
SRM Plug-In
VMFS StorageVMFS
DB DB
SRM ServerSRM Server
DB DB
vCenter Server vCenter Server
ESXESX
VMFS StorageVMFS
ESX ESXESX
VRA VRA VRA
VR Server
DB
DB
Replication
19
Agenda
 Introduction to vSphere Replication
 What’s New in 2013
 vSphere Replication and SRM
 Configuring VR replication
 VR internals
 Failover and test
 Automated reprotect and failback
 Summary
20
Configuring VR Replication
VR replication
is configured
per VM in
vCenter
Selectable RPO
from 15 min up
to 24 hours
Selectable
destination
datastore (per
virtual disk)
Select MPIT
policy
21
Configuring VR Replication: Multiple VMs
All VMs will have the same settings
(RPO, quiescence, etc.)
22
Datastore Mappings Ease Mass Protection of Systems
23
Seeding the Initial Copy to Save Time and Bandwidth
The user
can provide
the seed
for the
initial copy
The seed can be delivered through any
out-of-band channel
The more recent, the better
The user directs the wizard to the seed
files when configuring replication
If using
seeds
when
configuring
en masse
The seed files must be placed in a
specific way at the target
Refer to the VR user manual for more
details
24
Agenda
 Introduction to vSphere Replication
 What’s New in 2013
 vSphere Replication and SRM
 Configuring VR replication
 VR internals
 Failover and test
 Automated reprotect and failback
 Summary
25
First, It Does an Initial Full Sync of Source and Target
Compares disk IDs to avoid mismatches
Calculates checksum of all blocks at source and target
Exchanges and compares checksums to determine delta
Replicates all changed blocks necessary to align VMDKs
A B C D E A C
Source Disk Seed Disktcp/31031
B D E
A B C D E
26
After Full Sync, We Switch to Sending the Delta
• Crash consistent if quiescing is
turned off
• Allows cross-disk consistency
within a VM
• Ongoing I/O not penalized with
replication active
• Lightweight snapshots are not
the same as VM snapshots
(redo logs)
Light-
Weight
Deltas
27
Normally Sends Only Changed Blocks
Switches to delta after first sync
VR Agent tracks all changing blocks via vSCSI filter
Changed blocks replicated as per RPO
A B C D E
Source Disk Target Disk
A C D
tcp/44046
Disks are always consistent
A B C D EAII B CI DI E AII B CI DI E
28
Lightweight Snapshots and the LWD Protocol
 Writes tracked by vSCSI filter driver
 Each replica corresponds to a lightweight snapshot
 Bitmap of changed blocks is maintained between replications
 During a sync changed blocks are read and sent to the target
 LWD protocol – Light Weight Deltas
• Port 31031 – Initial replication traffic
• Port 44046 – Ongoing replication traffic
VR Filter
29
Replication Consistency
• VM has a known RPO
Maintains point-in-time consistency
• All disks within a VM treated as an entity
Guarantees cross-disk consistency
• A VMDK will never be corrupt
Every replica is a crash consistent image of the VM
• Improves OS recoverability with VSS
Guest quiescing adds file system consistency
• Flush application writers with VSS
App-level quiescing adds application level consistency
30
Protecting against Network Failures
 VR vSCSI filter discards a snapshot only after a sync is completed
 VR Server writes each replica into a separate redo log
 A redo log is snapshotted only after a sync is completed
 Old replicas are collapsed only after a sync is completed
 There is always at least one valid replica that corresponds to a
valid lightweight snapshot
Blocks changed
LWD Shipped
Redo log
collected
Write
committed to
replica vmdks
31
The Replication Scheduler
The scheduler runs in the VR agent on each ESX host
Minimizes RPO violations across all VMs on the host
Tries to minimize the overall bandwidth usage within RPO constraints
Statistical analysis to predict sync durations
Can do “early syncs” in anticipation of large syncs
32
Retain Historical Replications as Snapshots
vSphere
VR Agent
After recovery, use the snapshot manager to revert to earlier points
Retention of
multiple points in
time allows
reversion to
earlier known
good states
33
Multiple Points in Time Saved Intelligently
Current
Previous replicas retained
Replication
Running
Replication
Halted Recovers to most recent replica
– others are snapshots
Ongoing Protection
During Recovery
34
MPIT retention policy: keep 3 replicas per 24 hour retention period = 1 retained
every 8 hours
4 hour RPO = ~6 replications during the day
Of the 6 replica snapshots created, only 3 are kept during the 24 hour period
Retains the most recent up-to-date snapshot within an 8 hour period
Replication Differs from Retention - Example
12AM 4AM 8AM 12PM 4PM 8PM
4AM 12PM 8PM
Retains only a subset of the replicas in accordance with policy
35
Replication Slots Differ from Replication Instances
The most recent complete instance is *always* preserved even
though it might be the second instance in the slot.
This ensures you can always failover to the most recent copy.
36
Replication Slots Differ from Replication Instances
The oldest instance in any given retention slot is preserved,
as is the most recent replication.
37
MPIT Presented as VM Snapshots after Failover
Use the snapshot manager to revert to earlier points, an interface all administrators
have been comfortable with for many years.
38
SRM and VR Interop Resolution
Point in time recovery is
available in SRM when using
vSphere Replication
SRM Advanced Settings
dialog to instruct SRM to
preserve the MPIT images
vrReplication.preserveMpitIma
gesAsSnapshots
On by default, change at both
sites if desired
39
Agenda
 Introduction to vSphere Replication
 What’s New in 2013
 vSphere Replication and SRM
 Configuring VR replication
 VR internals
 Failover and test
 Automated reprotect and failback
 Summary
40
Failover and Test
During a failover, a replica is surfaced as a VM in vCenter
• Replication is automatically stopped
• All MPIT replicas are collapsed to avoid a performance penalty at
runtime or preserved as VM snapshots
During a test (SRM only), a snapshot of a replica is surfaced
as a VM
• Replication continues to run while test is in progress
• The test VM can write to the disks without affecting the replicas
• After the test the test snapshot is discarded
41
Agenda
 Introduction to vSphere Replication
 What’s New in 2013
 vSphere Replication and SRM
 Configuring VR replication
 VR internals
 Failover and test
 Automated reprotect and failback
 Summary
42
SRM Allows for Automated Reprotect and Failback
• Reprotect
• Test recovery after reprotect
• Failback
SRM provides additional automation
workflows
• Failover shuts down protected VMs and disables power-on
• All VM files are left at the protected site
A successful planned migration is required
for reprotect
• All replication settings preserved
• Original VMs used as seeds
• Detects manually configured replications
Reprotect automatically configures VMs for
replication in the opposite direction
V
M
D
K1
V
M
D
K2
(VMDK1)
VMDK1 (VMDK2)
VMDK2
43
Agenda
 Introduction to vSphere Replication
 What’s New in 2013
 vSphere Replication and SRM
 Configuring VR replication
 VR internals
 Failover and test
 Automated reprotect and failback
 Summary
44
Summary
vSphere Replication provides robust and cost effective
replication
More features and improvements coming in 2013
• Multiple Point In Time
• Multiple replication appliances per vCenter
• SDRS and Storage vMotion support
• New and improved UI
• Support for vSAN and storage classes
• Dramatic performance improvements
vSphere Replication for SMBs
• Offered with Essentials Plus licenses and above
• Can be upgraded to SRM to provide automation, test, failback
45
More Good Stuff!
http://blogs.vmware.com/vSphere/Uptime
46
Other VMware Activities Related to This Session
 HOL:
HOL-SDC-1305
Business Continuity and Disaster Recovery In Action
 Group Discussions:
BCO1003-GD
Disaster Recovery and Replication with Ken Werneburg
THANK YOU
VMworld 2013: VMware vSphere Replication: Technical Walk-Through with Engineering
VMware vSphere Replication:
Technical Walk-Through with Engineering
Aleksey Pershin, VMware
Ken Werneburg, VMware
BCO4977
#BCO4977

More Related Content

PPT
VMware Presentation
PDF
V mware v-sphere-replication-overview
PPTX
Virtual SAN 6.2, hyper-converged infrastructure software
PPTX
What is Virtualization
PDF
VMware Virtual SAN Presentation
PDF
VMware Tutorial For Beginners | VMware Workstation | VMware Virtualization | ...
PPTX
Virtual Infrastructure Overview
PDF
What’s New in VMware vSphere 7?
VMware Presentation
V mware v-sphere-replication-overview
Virtual SAN 6.2, hyper-converged infrastructure software
What is Virtualization
VMware Virtual SAN Presentation
VMware Tutorial For Beginners | VMware Workstation | VMware Virtualization | ...
Virtual Infrastructure Overview
What’s New in VMware vSphere 7?

What's hot (20)

PDF
VSAN – Architettura e Design
PPTX
Veeam back up and replication presentation
PPSX
Virtualization basics
PDF
VMware NSX 101: What, Why & How
PPTX
VMware Vsphere Graduation Project Presentation
PPTX
VMware vSAN - Novosco, June 2017
PPTX
VSICM8_M02.pptx
PPTX
NSX-T Architecture and Components.pptx
PPTX
VMware vSphere vsan EN.pptx
PPTX
cloud_foundation_on_vxrail_vcf_pnp_licensing_guide.pptx
PPTX
VDI/ VMware Horizon View
PPT
Virtualization VMWare technology
PPTX
VMware vSphere 6.0 - Troubleshooting Training - Day 4
PPTX
VMworld 2017 - Top 10 things to know about vSAN
PDF
VMware vSphere Networking deep dive
PPTX
Load Balance with NSX-T.pptx
PDF
VMware - Virtual SAN - IT Changes Everything
PPT
Virtualization in cloud
PDF
Introduction to Virtualization
VSAN – Architettura e Design
Veeam back up and replication presentation
Virtualization basics
VMware NSX 101: What, Why & How
VMware Vsphere Graduation Project Presentation
VMware vSAN - Novosco, June 2017
VSICM8_M02.pptx
NSX-T Architecture and Components.pptx
VMware vSphere vsan EN.pptx
cloud_foundation_on_vxrail_vcf_pnp_licensing_guide.pptx
VDI/ VMware Horizon View
Virtualization VMWare technology
VMware vSphere 6.0 - Troubleshooting Training - Day 4
VMworld 2017 - Top 10 things to know about vSAN
VMware vSphere Networking deep dive
Load Balance with NSX-T.pptx
VMware - Virtual SAN - IT Changes Everything
Virtualization in cloud
Introduction to Virtualization
Ad

Viewers also liked (6)

PPTX
VMware Site Recovery Manager - Architecting a DR Solution - Best Practices
PDF
VMworld 2013: Protection for All - VMware vSphere Replication & SRM Technical...
PDF
VMworld 2013: VMware vSphere High Availability - What's New and Best Practices
PPTX
Selective Data Replication with Geographically Distributed Hadoop
PDF
VMworld 2013: VMware vCenter Site Recovery Manager – Solution Overview and Le...
PDF
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...
VMware Site Recovery Manager - Architecting a DR Solution - Best Practices
VMworld 2013: Protection for All - VMware vSphere Replication & SRM Technical...
VMworld 2013: VMware vSphere High Availability - What's New and Best Practices
Selective Data Replication with Geographically Distributed Hadoop
VMworld 2013: VMware vCenter Site Recovery Manager – Solution Overview and Le...
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...
Ad

Similar to VMworld 2013: VMware vSphere Replication: Technical Walk-Through with Engineering (20)

PDF
VMworld 2014: Site Recovery Manager and vSphere Replication
PDF
VMworld 2014: Data Protection for vSphere 101
PDF
VMworld 2013: Implementing a Holistic BC/DR Strategy with VMware - Part Two
PDF
Presentation disaster recovery in virtualization and cloud
PDF
Presentation disaster recovery in virtualization and cloud
PDF
What’s New in VMware vCenter Site Recovery Manager v5.0
PPT
V Mwarev Storage Intregration
PPTX
VMware presentation - Clearpath Solutions Group.pptx
PPSX
Vmware srm 6.1
PDF
Presentation v center site recovery manager
PDF
VMworld Europe 2014: A Blueprint for Disaster Recovery of Business Critical A...
PPT
Track 2, session 3, business continuity and disaster recovery in the virtuali...
PPTX
What is coming for VMware vSphere?
PPTX
Vizioncore Economical Disaster Recovery through Virtualization
PDF
VMware Site Recovery Manager
PPTX
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
PPTX
ZERTO Introduction to End User Presentation
PDF
Partner Presentation vSphere6-VSAN-vCloud-vRealize
PDF
VMworld 2013: Implementing a Holistic BC/DR Strategy with VMware - Part One
VMworld 2014: Site Recovery Manager and vSphere Replication
VMworld 2014: Data Protection for vSphere 101
VMworld 2013: Implementing a Holistic BC/DR Strategy with VMware - Part Two
Presentation disaster recovery in virtualization and cloud
Presentation disaster recovery in virtualization and cloud
What’s New in VMware vCenter Site Recovery Manager v5.0
V Mwarev Storage Intregration
VMware presentation - Clearpath Solutions Group.pptx
Vmware srm 6.1
Presentation v center site recovery manager
VMworld Europe 2014: A Blueprint for Disaster Recovery of Business Critical A...
Track 2, session 3, business continuity and disaster recovery in the virtuali...
What is coming for VMware vSphere?
Vizioncore Economical Disaster Recovery through Virtualization
VMware Site Recovery Manager
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
ZERTO Introduction to End User Presentation
Partner Presentation vSphere6-VSAN-vCloud-vRealize
VMworld 2013: Implementing a Holistic BC/DR Strategy with VMware - Part One

More from VMworld (20)

PPTX
VMworld 2016: vSphere 6.x Host Resource Deep Dive
PPTX
VMworld 2016: Troubleshooting 101 for Horizon
PPTX
VMworld 2016: Advanced Network Services with NSX
PPTX
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
PPTX
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
PPTX
VMworld 2016: What's New with Horizon 7
PPTX
VMworld 2016: Virtual Volumes Technical Deep Dive
PPTX
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
PPTX
VMworld 2016: The KISS of vRealize Operations!
PPTX
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
PPTX
VMworld 2016: Ask the vCenter Server Exerts Panel
PPTX
VMworld 2016: Virtualize Active Directory, the Right Way!
PPTX
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
PPTX
VMworld 2015: Troubleshooting for vSphere 6
PPTX
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
PPTX
VMworld 2015: Advanced SQL Server on vSphere
PPTX
VMworld 2015: Virtualize Active Directory, the Right Way!
PPTX
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
PPTX
VMworld 2015: Building a Business Case for Virtual SAN
PPTX
VMworld 2015: Virtual Volumes Technical Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Advanced Network Services with NSX
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: What's New with Horizon 7
VMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Virtual Volumes Technical Deep Dive

Recently uploaded (20)

PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPT
Teaching material agriculture food technology
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
A Presentation on Artificial Intelligence
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Modernizing your data center with Dell and AMD
PDF
Electronic commerce courselecture one. Pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Empathic Computing: Creating Shared Understanding
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Spectral efficient network and resource selection model in 5G networks
Unlocking AI with Model Context Protocol (MCP)
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Teaching material agriculture food technology
Diabetes mellitus diagnosis method based random forest with bat algorithm
A Presentation on Artificial Intelligence
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation_ Review paper, used for researhc scholars
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Modernizing your data center with Dell and AMD
Electronic commerce courselecture one. Pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Understanding_Digital_Forensics_Presentation.pptx
Machine learning based COVID-19 study performance prediction
Empathic Computing: Creating Shared Understanding
Advanced methodologies resolving dimensionality complications for autism neur...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
NewMind AI Weekly Chronicles - August'25 Week I
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...

VMworld 2013: VMware vSphere Replication: Technical Walk-Through with Engineering

  • 1. VMware vSphere Replication: Technical Walk-Through with Engineering Aleksey Pershin, VMware Ken Werneburg, VMware BCO4977 #BCO4977
  • 2. 2 Agenda  Introduction to vSphere Replication  What’s New in 2013  vSphere Replication and SRM  Configuring VR replication  VR internals  Failover and test  Automated reprotect and failback  Summary
  • 3. 3 Agenda  Introduction to vSphere Replication  What’s New in 2013  vSphere Replication and SRM  Configuring VR replication  VR internals  Failover and test  Automated reprotect and failback  Summary
  • 4. 4 vSphere Replication: Protection Built-in to the Platform! Standalone Protection VM-by-VM Protection and Recovery Replication Engine Integrated with the vSphere Platform Bundled with most vSphere Editions vSphere vSphere vSphere Replication enables simple and reliable protection for all Virtual Machines
  • 5. 5 Introduction to vSphere Replication: Protection for SRM Replication built into vSphere Replicates individual VMs Replicates between heterogenous datastores Asynchronous replication with RPO >= 15 min Alternative or augmentation for ABR Recovery and test are done through SRM recovery plans vSphere Replication can be used by SRM as the replication engine vSphere vSphere
  • 6. 6 vSpherevSphereESX vSpherevSphere vSphere VMVM VR Appliance vCenter Protected Site Recovery Site VR Agent (Further VR Servers) vCenter NFC Service vSphere Web UI vSphere Replication Architecture VR vSCSI Filter VM VR Appliance
  • 7. 7 Agenda  Introduction to vSphere Replication  What’s New in 2013  vSphere Replication and SRM  Configuring VR replication  VR internals  Failover and test  Automated reprotect and failback  Summary
  • 8. 8 Top New Features in vSphere Replication Multiple Points in Time Multiple vSphere Replication Appliances per vCenter Support for Storage vMotion New User Interface Location Support for vSAN and other VM Storage Policies Dramatic Speed Improvement
  • 9. 9 Secondary DC StorageStorage vSphere VR Agent vSphere VR Agent (VMDK3)VMDK1 VR Appliance StorageStorage vSphere VR Agent (VMDK1)VMDK2 VR Appliance vSphere VR Agent VR Server StorageStorage VMDK3 (VMDK2) vCenter Server vCenter Server Main Office Datacenter Open Topologies with up to 10 vSphere Replication Appliances Replicate to or between remote sites with or without a vCenter server present! Remote Office
  • 10. 10 Up to 24 Points in Time Retained to Allow Reversion of VM State Retention policy is specified during configuration of replication
  • 11. 11 Protected Site Storage vMotion Now Supported Replication Manually migrate VMs or even use Storage DRS to ease management Protected Site Recovery Site Storage vMotion can now be used for protected virtual machines. Only protected site VMDKs can be migrated: recovery ‘shadow’ objects are fixed.
  • 12. 12 Administrator chooses a VM Storage Policy: only valid datastores are selectable VM Storage Policy and vSAN Interoperability
  • 13. 13 VR Now Found Under the Corresponding vCenter vSphere Replication now easier to find and more intuitive to manage
  • 14. 14 Each vCenter Now Has “Monitor” and “Manage” for VR vSphere Replication now easier to find and more intuitive to manage
  • 15. 15 Dramatic Performance Improvement vSphere VR Agent vSphere VR Agent VR Server VR Server 5.5 Behaviour5.1 Behaviour Increased parallelism and more efficient throughput means faster replication, pushing more data. Replicate more, with no performance cost! New TCP Stack Optimized for Latency Buffered IO for NFC Writes Coalesced Contiguous Writes
  • 16. 16 Agenda  Introduction to vSphere Replication  What’s New in 2013  vSphere Replication and SRM  Configuring VR replication  VR internals  Failover and test  Automated reprotect and failback  Summary
  • 17. 17 vSphere Replication and SRM SVR is now independent of SRM SVR can replicate within a single vCenter • SRM will discover and use SVR and its replication SRM can be installed after SVR • Gain automation, test recovery, failback, customization, reporting... Upgrade to SRM SVR and SRM can coexist See a more detailed session on using VR and SRM INF-BCO5129 “Protection for All – vSphere Replication + SRM Technical Update”
  • 18. 18 Architecture: vSphere Replication with Site Recovery Manager “Protected” Site “Recovery” Site VR App VR App vSphere Client SRM Plug-In vSphere Client SRM Plug-In VMFS StorageVMFS DB DB SRM ServerSRM Server DB DB vCenter Server vCenter Server ESXESX VMFS StorageVMFS ESX ESXESX VRA VRA VRA VR Server DB DB Replication
  • 19. 19 Agenda  Introduction to vSphere Replication  What’s New in 2013  vSphere Replication and SRM  Configuring VR replication  VR internals  Failover and test  Automated reprotect and failback  Summary
  • 20. 20 Configuring VR Replication VR replication is configured per VM in vCenter Selectable RPO from 15 min up to 24 hours Selectable destination datastore (per virtual disk) Select MPIT policy
  • 21. 21 Configuring VR Replication: Multiple VMs All VMs will have the same settings (RPO, quiescence, etc.)
  • 22. 22 Datastore Mappings Ease Mass Protection of Systems
  • 23. 23 Seeding the Initial Copy to Save Time and Bandwidth The user can provide the seed for the initial copy The seed can be delivered through any out-of-band channel The more recent, the better The user directs the wizard to the seed files when configuring replication If using seeds when configuring en masse The seed files must be placed in a specific way at the target Refer to the VR user manual for more details
  • 24. 24 Agenda  Introduction to vSphere Replication  What’s New in 2013  vSphere Replication and SRM  Configuring VR replication  VR internals  Failover and test  Automated reprotect and failback  Summary
  • 25. 25 First, It Does an Initial Full Sync of Source and Target Compares disk IDs to avoid mismatches Calculates checksum of all blocks at source and target Exchanges and compares checksums to determine delta Replicates all changed blocks necessary to align VMDKs A B C D E A C Source Disk Seed Disktcp/31031 B D E A B C D E
  • 26. 26 After Full Sync, We Switch to Sending the Delta • Crash consistent if quiescing is turned off • Allows cross-disk consistency within a VM • Ongoing I/O not penalized with replication active • Lightweight snapshots are not the same as VM snapshots (redo logs) Light- Weight Deltas
  • 27. 27 Normally Sends Only Changed Blocks Switches to delta after first sync VR Agent tracks all changing blocks via vSCSI filter Changed blocks replicated as per RPO A B C D E Source Disk Target Disk A C D tcp/44046 Disks are always consistent A B C D EAII B CI DI E AII B CI DI E
  • 28. 28 Lightweight Snapshots and the LWD Protocol  Writes tracked by vSCSI filter driver  Each replica corresponds to a lightweight snapshot  Bitmap of changed blocks is maintained between replications  During a sync changed blocks are read and sent to the target  LWD protocol – Light Weight Deltas • Port 31031 – Initial replication traffic • Port 44046 – Ongoing replication traffic VR Filter
  • 29. 29 Replication Consistency • VM has a known RPO Maintains point-in-time consistency • All disks within a VM treated as an entity Guarantees cross-disk consistency • A VMDK will never be corrupt Every replica is a crash consistent image of the VM • Improves OS recoverability with VSS Guest quiescing adds file system consistency • Flush application writers with VSS App-level quiescing adds application level consistency
  • 30. 30 Protecting against Network Failures  VR vSCSI filter discards a snapshot only after a sync is completed  VR Server writes each replica into a separate redo log  A redo log is snapshotted only after a sync is completed  Old replicas are collapsed only after a sync is completed  There is always at least one valid replica that corresponds to a valid lightweight snapshot Blocks changed LWD Shipped Redo log collected Write committed to replica vmdks
  • 31. 31 The Replication Scheduler The scheduler runs in the VR agent on each ESX host Minimizes RPO violations across all VMs on the host Tries to minimize the overall bandwidth usage within RPO constraints Statistical analysis to predict sync durations Can do “early syncs” in anticipation of large syncs
  • 32. 32 Retain Historical Replications as Snapshots vSphere VR Agent After recovery, use the snapshot manager to revert to earlier points Retention of multiple points in time allows reversion to earlier known good states
  • 33. 33 Multiple Points in Time Saved Intelligently Current Previous replicas retained Replication Running Replication Halted Recovers to most recent replica – others are snapshots Ongoing Protection During Recovery
  • 34. 34 MPIT retention policy: keep 3 replicas per 24 hour retention period = 1 retained every 8 hours 4 hour RPO = ~6 replications during the day Of the 6 replica snapshots created, only 3 are kept during the 24 hour period Retains the most recent up-to-date snapshot within an 8 hour period Replication Differs from Retention - Example 12AM 4AM 8AM 12PM 4PM 8PM 4AM 12PM 8PM Retains only a subset of the replicas in accordance with policy
  • 35. 35 Replication Slots Differ from Replication Instances The most recent complete instance is *always* preserved even though it might be the second instance in the slot. This ensures you can always failover to the most recent copy.
  • 36. 36 Replication Slots Differ from Replication Instances The oldest instance in any given retention slot is preserved, as is the most recent replication.
  • 37. 37 MPIT Presented as VM Snapshots after Failover Use the snapshot manager to revert to earlier points, an interface all administrators have been comfortable with for many years.
  • 38. 38 SRM and VR Interop Resolution Point in time recovery is available in SRM when using vSphere Replication SRM Advanced Settings dialog to instruct SRM to preserve the MPIT images vrReplication.preserveMpitIma gesAsSnapshots On by default, change at both sites if desired
  • 39. 39 Agenda  Introduction to vSphere Replication  What’s New in 2013  vSphere Replication and SRM  Configuring VR replication  VR internals  Failover and test  Automated reprotect and failback  Summary
  • 40. 40 Failover and Test During a failover, a replica is surfaced as a VM in vCenter • Replication is automatically stopped • All MPIT replicas are collapsed to avoid a performance penalty at runtime or preserved as VM snapshots During a test (SRM only), a snapshot of a replica is surfaced as a VM • Replication continues to run while test is in progress • The test VM can write to the disks without affecting the replicas • After the test the test snapshot is discarded
  • 41. 41 Agenda  Introduction to vSphere Replication  What’s New in 2013  vSphere Replication and SRM  Configuring VR replication  VR internals  Failover and test  Automated reprotect and failback  Summary
  • 42. 42 SRM Allows for Automated Reprotect and Failback • Reprotect • Test recovery after reprotect • Failback SRM provides additional automation workflows • Failover shuts down protected VMs and disables power-on • All VM files are left at the protected site A successful planned migration is required for reprotect • All replication settings preserved • Original VMs used as seeds • Detects manually configured replications Reprotect automatically configures VMs for replication in the opposite direction V M D K1 V M D K2 (VMDK1) VMDK1 (VMDK2) VMDK2
  • 43. 43 Agenda  Introduction to vSphere Replication  What’s New in 2013  vSphere Replication and SRM  Configuring VR replication  VR internals  Failover and test  Automated reprotect and failback  Summary
  • 44. 44 Summary vSphere Replication provides robust and cost effective replication More features and improvements coming in 2013 • Multiple Point In Time • Multiple replication appliances per vCenter • SDRS and Storage vMotion support • New and improved UI • Support for vSAN and storage classes • Dramatic performance improvements vSphere Replication for SMBs • Offered with Essentials Plus licenses and above • Can be upgraded to SRM to provide automation, test, failback
  • 46. 46 Other VMware Activities Related to This Session  HOL: HOL-SDC-1305 Business Continuity and Disaster Recovery In Action  Group Discussions: BCO1003-GD Disaster Recovery and Replication with Ken Werneburg
  • 49. VMware vSphere Replication: Technical Walk-Through with Engineering Aleksey Pershin, VMware Ken Werneburg, VMware BCO4977 #BCO4977