运行 Azure VM 到 Azure 次要区域的灾难恢复演练Run a disaster recovery drill for Azure VMs to a secondary Azure region

Azure Site Recovery 服务通过在计划内和计划外停机期间使商业应用程序保持启动和运行可用状态,有助于实施业务连续性和灾难恢复 (BCDR) 策略。The Azure Site Recovery service contributes to your business continuity and disaster recovery (BCDR) strategy by keeping your business apps up and running available during planned and unplanned outages. Site Recovery 管理并安排本地计算机和 Azure 虚拟机 (VM) 的灾难恢复,包括复制、故障转移和恢复。Site Recovery manages and orchestrates disaster recovery of on-premises machines and Azure virtual machines (VMs), including replication, failover, and recovery.

本教程演示如何使用测试故障转移从一个 Azure 区域到另一个 Azure 区域对 Azure VM 运行灾难恢复演练。This tutorial shows you how to run a disaster recovery drill for an Azure VM, from one Azure region to another, with a test failover. 演练如何在不丢失数据或不停机的情况下验证复制策略,并且不影响生产环境。A drill validates your replication strategy without data loss or downtime, and doesn't affect your production environment. 本教程介绍如何执行下列操作:In this tutorial, you learn how to:

  • 检查先决条件Check the prerequisites
  • 为单个 VM 运行测试故障转移Run a test failover for a single VM

Note

本教程旨在引导用户完成相关步骤,以便在尽量减少步骤的情况下执行 DR 演练;如果需要详细了解与执行 DR 演练相关联的各个方面(包括网络注意事项、自动化或故障排除),请参阅适用于 Azure VM 的“操作方法”下面的文档。This tutorial is intended to guide the user through the steps to perform a DR drill with minimal steps; in case you want to learn more about the various aspects associated with performing a DR drill, including networking considerations, automation or troubleshooting, refer to the documents under 'How To' for Azure VMs.

先决条件Prerequisites

  • 在运行测试故障转移前,我们建议先验证 VM 属性以确保一切按预期进行。Before you run a test failover, we recommend that you verify the VM properties to make sure everything's as expected. 访问“复制项”中的 VM 属性。Access the VM properties in Replicated items. “概要”边栏选项卡显示有关计算机设置和状态的信息。The Essentials blade shows information about machines settings and status.
  • 建议使用单独的 Azure VM 网络进行测试故障转移,而不是使用启用复制时设置的默认网络。We recommend you use a separate Azure VM network for the test failover, and not the default network that was set up when you enabled replication.

运行测试故障转移Run a test failover

  1. 在“设置” > “复制的项”中,单击“VM”>“+测试故障转移”。In Settings > Replicated Items, click the VM +Test Failover icon.

  2. 在“测试故障转移”中,选择要用于故障转移的恢复点:In Test Failover, Select a recovery point to use for the failover:

    • 最新处理:将 VM 故障转移到由 Site Recovery 服务处理的最新恢复点。Latest processed: Fails the VM over to the latest recovery point that was processed by the Site Recovery service. 将显示时间戳。The time stamp is shown. 使用此选项时,无需费时处理数据,因此 RTO(恢复时间目标)会较低With this option, no time is spent processing data, so it provides a low RTO (Recovery Time Objective)
    • 最新的应用一致:此选项将所有 VM 故障转移到最新的应用一致恢复点。Latest app-consistent: This option fails over all VMs to the latest app-consistent recovery point. 将显示时间戳。The time stamp is shown.
    • 自定义:选择任何恢复点。Custom: Select any recovery point.
  3. 选择辅助区域中的 Azure VM 在故障转移后要连接到的目标 Azure 虚拟网络。Select the target Azure virtual network to which Azure VMs in the secondary region will be connected, after the failover occurs.

  4. 若要启动故障转移,请单击“确定”。To start the failover, click OK. 若要跟踪进度,请单击 VM 以打开其属性。To track progress, click the VM to open its properties. 或者,可以在保管库名称 >“设置” > “作业” > “Site Recovery 作业”中单击“测试故障转移”作业。Or, you can click the Test Failover job in the vault name > Settings > Jobs > Site Recovery jobs.

  5. 故障转移完成后,副本 Azure VM 会显示在 Azure 门户 >“虚拟机”中。After the failover finishes, the replica Azure VM appears in the Azure portal > Virtual Machines. 请确保 VM 正在运行、大小适当并已连接到相应的网络。Make sure that the VM is running, sized appropriately, and connected to the appropriate network.

  6. 若要删除在测试故障转移期间创建的 VM,请单击复制项或恢复计划上的“清理测试故障转移”。To delete the VMs that were created during the test failover, click Cleanup test failover on the replicated item or the recovery plan. 在“说明”中,记录并保存与测试故障转移相关联的任何观测结果。In Notes, record and save any observations associated with the test failover.

后续步骤Next steps