配置和管理用于从 VMware 灾难恢复到 Azure 的复制策略Configure and manage replication policies for VMware disaster recovery to Azure

本文介绍如何配置复制策略,以便使用 Azure Site Recovery 将 VMware VM 复制到 Azure。This article describes how to configure a replication policy when you're replicate VMware VMs to Azure, using Azure Site Recovery.

创建策略Create a policy

  1. 选择“管理” > “Site Recovery 基础结构” 。Select Manage > Site Recovery Infrastructure.
  2. 在“适用于 VMware 和物理计算机”中选择“复制策略”。In For VMware and Physical machines, select Replication policies.
  3. 单击“+复制策略” ,并指定策略名称。Click +Replication policy, and specify the policy name.
  4. 在“RPO 阈值”中:指定 RPO 限制。 In RPO threshold, specify the RPO limit. 当连续复制超出此限制时,将生成警报。Alerts are generated when continuous replication exceeds this limit.
  5. 在“恢复点保留期” 中,针对每个恢复点指定保留期的时长(以小时为单位)。In Recovery point retention, specify (in hours) the duration of the retention window for each recovery point. 受保护的计算机可以恢复到某个保留期时段内的任意时间点。Protected machines can be recovered to any point within a retention window. 复制到高级存储的计算机最长支持 24 小时的保留期。Up to 24 hours of retention is supported for machines replicated to premium storage. 标准存储最长支持 72 个小时。Up to 72 hours is supported for standard storage.
  6. 在“应用一致性快照频率” 中,从下拉菜单中选择应创建包含应用程序一致性快照的恢复点的频率(以小时为单位)。In App-consistent snapshot frequency, choose from the dropdown how often (in hours) recovery points that contain application-consistent snapshots should be created. 如果要关闭应用程序一致性点的生成,请在下拉列表中选择“关”值。If you wish to turn off generation of application consistency points, choose "Off" value in the dropdown.
  7. 单击“确定”。 Click OK. 应会在 30 秒到 1 分钟之内创建好策略。The policy should be created in 30 to 60 seconds.

创建复制策略时,会使用后缀“failback”自动创建相应的故障回复复制策略。When you create a replication policy, a matching failback replication policy is automatically created, with the suffix "failback". 创建策略后,可以通过选择它 >“编辑设置” 对其进行编辑。After creating the policy, you can edit it by selecting it > Edit Settings.

关联配置服务器Associate a configuration server

将复制策略与本地配置服务器相关联。Associate the replication policy with your on-premises configuration server.

  1. 单击“关联” ,并选择配置服务器。Click Associate, and select the configuration server.

    关联配置服务器

  2. 单击“确定”。 Click OK. 应会在 1 到 2 分钟内关联配置服务器。The configuration server should be associated in one to two minutes.

    配置服务器关联

编辑策略Edit a policy

创建复制策略后,可以对其进行修改。You can modify a replication policy after creating it.

  • 该策略中的更改将应用到使用该策略的所有计算机。Changes in the policy are applied to all machines using the policy.
  • 如果要将复制的计算机与其他复制策略相关联,则需要禁用并重新启用对相关计算机的保护。If you want to associate replicated machines with a different replication policy, you need to disable and reenable protection for the relevant machines.

按如下所示编辑策略:Edit a policy as follows:

  1. 选择“管理” > “Site Recovery 基础结构” > “复制策略” 。Select Manage > Site Recovery Infrastructure > Replication Policies.
  2. 选择要修改的复制策略。Select the replication policy you wish to modify.
  3. 单击“编辑设置” ,并根据需要更新“RPO 阈值”/“恢复点保留小时数”/“应用一致性快照频率”字段。Click Edit settings, and update the RPO threshold/recovery point retention hours/app-consistent snapshot frequency fields as required.
  4. 如果要关闭应用程序一致性点的生成,请在字段“应用一致性快照频率” 的下拉列表中选择“关”值。If you wish to turn off generation of application consistency points, choose "Off" value in the dropdown of the field App-consistent snapshot frequency.
  5. 单击“保存” 。Click Save. 该策略应在 30 到 60 秒内更新。The policy should be updated in 30 to 60 seconds.

取消关联或删除复制策略Disassociate or delete a replication policy

  1. 选择复制策略。Choose the replication policy. a.a. 若要将策略与配置服务器取消关联,请确保没有复制计算机在使用该策略。To dissociate the policy from the configuration server, make sure that no replicated machines are using the policy. 然后,单击“取消关联” 。Then, click Dissociate. b.b. 若要删除策略,请确保它未与配置服务器关联。To delete the policy, make sure it's not associated with a configuration server. 然后单击“删除” 。Then, click Delete. 应需要 30-60 秒才能删除。It should take 30-60 seconds to delete.
  2. 单击“确定”。 Click OK.