体系结构 - 从 Hyper-V 复制到辅助站点Architecture - Hyper-V replication to a secondary site

本文介绍如何通过 Azure 门户在 System Center Virtual Machine Manager (VMM) 云中使用 Azure Site Recovery 服务将本地 Hyper-V 虚拟机 (VM) 复制到辅助 VMM 站点时涉及的组件和进程。This article describes the components and processes involved when replicating on-premises Hyper-V virtual machines (VMs) in System Center Virtual Machine Manager (VMM) clouds, to a secondary VMM site using the Azure Site Recovery service in the Azure portal.

体系结构组件Architectural components

下面的表和图提供了用于将 Hyper-V 复制到辅助站点的组件的概要视图。The following table and graphic provide a high-level view of the components used for Hyper-V replication to a secondary site.

组件 Component 要求Requirement 详细信息Details
AzureAzure Azure 订阅Azure subscription 在 Azure 订阅中创建恢复服务保管库,以便协调和管理不同 VMM 位置之间的复制。You create a Recovery Services vault in the Azure subscription, to orchestrate and manage replication between VMM locations.
VMM 服务器VMM server 需要 VMM 主位置和辅助位置。You need a VMM primary and secondary location. 我们建议在主站点和辅助站点中各提供一个 VMM 服务器。We recommend a VMM server in the primary site, and one in the secondary site.
Hyper-V 服务器Hyper-V server 主要和辅助 VMM 云中需要一台或多台 Hyper-V 主机服务器。One or more Hyper-V host servers in the primary and secondary VMM clouds. 使用 Kerberos 或证书身份验证通过 LAN 或 VPN 在主要和辅助 Hyper-V 主机服务器之间复制数据。Data is replicated between the primary and secondary Hyper-V host servers over the LAN or VPN, using Kerberos or certificate authentication.
Hyper-V VMHyper-V VMs 在 Hyper-V 主机服务器上。On Hyper-V host server. 源主机服务器应该至少有一个要复制的 VM。The source host server should have at least one VM that you want to replicate.

本地到本地的体系结构On-premises to on-premises architecture

此图显示了本地到本地保护。

复制过程Replication process

  1. 当触发初始复制时,系统会拍摄一个 Hyper-V VM 快照When initial replication is triggered, a Hyper-V VM snapshot snapshot is taken.
  2. VM 上的虚拟硬盘会逐一复制到辅助位置。Virtual hard disks on the VM are replicated one by one, to the secondary location.
  3. 如果在初始复制期间发生磁盘更改,Hyper-V 副本复制跟踪器将跟踪这些更改,并将其记录在 Hyper-V 复制日志 (.hrl) 中。If disk changes occur while initial replication is in progress, the Hyper-V Replica Replication Tracker tracks the changes as Hyper-V replication logs (.hrl). 这些日志文件位于与磁盘相同的文件夹中。These log files are located in the same folder as the disks. 每个磁盘都有一个关联的 .hrl 文件,该文件将发送到辅助位置。Each disk has an associated .hrl file that's sent to the secondary location. 当初始复制正在进行时,快照和日志将占用磁盘资源。The snapshot and log files consume disk resources while initial replication is in progress.
  4. 当初始复制完成时,将删除 VM 快照,并开始增量复制。When the initial replication finishes, the VM snapshot is deleted, and delta replication begins.
  5. 日志中的增量磁盘更改会进行同步,并合并到父磁盘中。Delta disk changes in the log are synchronized and merged to the parent disk.

故障转移和故障回复过程Failover and failback process

  • 可以故障转移单个虚拟机,或者创建恢复计划来协调多个虚拟机的故障转移。You can fail over a single machine, or create recovery plans, to orchestrate failover of multiple machines.
  • 可以在本地站点之间运行计划内或计划外故障转移。You can run a planned or unplanned failover between on-premises sites. 如果运行计划的故障转移,源 VM 将关闭以确保不会丢失数据。If you run a planned failover, then source VMs are shut down to ensure no data loss.
    • 如果执行了到辅助站点的计划外故障转移,在故障转移后辅助位置中的虚拟机将不受保护。If you perform an unplanned failover to a secondary site, after the failover machines in the secondary location aren't protected.
    • 如果执行了计划内故障转移,在故障转移后,辅助位置中的计算机将受保护。If you ran a planned failover, after the failover, machines in the secondary location are protected.
  • 在初始故障转移运行后,可提交它来开始访问副本 VM 中的工作负载。After the initial failover runs, you commit it, to start accessing the workload from the replica VM.
  • 当主位置再次可用时,可以进行故障回复。When the primary location is available again, you can fail back.
    • 启动反向复制以开始从辅助站点到主站点的复制。You initiate reverse replication, to start replicating from the secondary site to the primary. 反向复制会使虚拟机进入受保护状态,但辅助数据中心仍是活动位置。Reverse replication brings the virtual machines into a protected state, but the secondary datacenter is still the active location.
    • 要使主站点再次成为活动位置,可以启动从辅助站点到主站点的计划内故障转移,再次启动反向复制。To make the primary site into the active location again, you initiate a planned failover from secondary to primary, followed by another reverse replication.

后续步骤Next steps

按照此教程启用 VMM 云之间的 Hyper-V 复制。Follow this tutorial to enable Hyper-V replication between VMM clouds.