对 Azure VMware 解决方案 VM 进行故障转移Fail over Azure VMware Solution VMs

本文介绍如何使用 Azure Site Recovery 将 Azure VMware 解决方案 VM 故障转移到 Azure。This article describes how to fail over an Azure VMware Solution VM to Azure with Azure Site Recovery.

本文是系列教程的第五篇文章,介绍如何为 Azure VMware 解决方案 VM 设置到 Azure 的灾难恢复。This is the fifth tutorial in a series that shows you how to set up disaster recovery to Azure for Azure VMware Solution VMs.

在本教程中,你将了解如何执行以下操作:In this tutorial, you learn how to:

  • 验证 Azure VMware 解决方案 VM 属性是否符合 Azure 要求。Verify that the Azure VMware Solution VM properties conform with Azure requirements.
  • 将特定 VM 故障转移到 Azure。Fail over specific VMs to Azure.

备注

教程介绍了某个方案的最简单部署路径。Tutorials show you the simplest deployment path for a scenario. 它们尽可能地使用默认选项,并且不显示所有可能的设置和路径。They use default options where possible and don't show all possible settings and paths. 若要详细了解故障转移,请参阅对 VM 进行故障转移If you want to learn about failover in detail, see Fail over VMs.

了解不同类型的故障转移。Learn about different types of failover. 如果要在恢复计划中对多个 VM 进行故障转移,请查看本文If you want to fail over multiple VMs in a recovery plan, review this article.

开始之前Before you start

完成前一篇教程:Complete the previous tutorials:

  1. 确保已为到 Azure 的灾难恢复设置 AzureMake sure you've set up Azure for disaster recovery to Azure.
  2. 遵循这些步骤准备本地 Azure VMware 解决方案部署,以便能够灾难恢复到 Azure。Follow these steps to prepare your Azure VMware Solution deployment for disaster recovery to Azure.
  3. 设置 Azure VMware 解决方案 VM 的灾难恢复。Set up disaster recovery for Azure VMware Solution VMs.
  4. 运行灾难恢复演练,以确保一切按预期方式进行。Run a disaster recovery drill to make sure that everything's working as expected.

验证 VM 属性Verify VM properties

运行故障转移之前,请检查 VM 属性,确保 VM 符合 Azure 要求Before you run a failover, check the VM properties to make sure that the VMs meet Azure requirements.

按如下所述检查属性:Verify properties as follows:

  1. 在“受保护的项”中选择“复制的项”,然后选择要验证的 VM 。In Protected Items , select Replicated Items , and then select the VM you want to verify.

  2. “复制的项”窗格中具有 VM 信息、运行状况状态和最新可用恢复点的摘要 。In the Replicated item pane, there's a summary of VM information, health status, and the latest available recovery points. 选择“属性”以查看更多详细信息 。Select Properties to view more details.

  3. 可以在“计算和网络”中根据需要修改这些属性 :In Compute and Network , you can modify these properties as needed:

    • Azure 名称Azure name
    • 资源组Resource group
    • 目标大小Target size
    • 可用性集Availability set
    • 托管磁盘设置Managed disk settings
  4. 可以查看和修改网络设置,包括:You can view and modify network settings, including:

    • 故障转移后用于放置 Azure VM 的网络和子网。The network and subnet in which the Azure VM will be located after failover.
    • 要分配给它的 IP 地址。The IP address that will be assigned to it.
  5. 在“磁盘” 中,可以看到关于 VM 上的操作系统和数据磁盘的信息。In Disks , you can see information about the operating system and data disks on the VM.

运行到 Azure 的故障转移Run a failover to Azure

  1. 在“设置” > “复制的项”中选择要故障转移的 VM,然后选择“故障转移” 。In Settings > Replicated items , select the VM you want to fail over, and then select Failover.

  2. 在“故障转移” 中,选择要故障转移到的“恢复点” 。In Failover , select a Recovery Point to fail over to. 可以使用以下选项之一:You can use one of the following options:

    • 最新 :此选项会首先处理发送到 Site Recovery 的所有数据。Latest : This option first processes all the data sent to Site Recovery. 它提供最低的恢复点目标 (RPO),因为故障转移后创建的 Azure VM 具有触发故障转移时复制到 Site Recovery 的所有数据。It provides the lowest Recovery Point Objective (RPO) because the Azure VM that's created after failover has all the data that was replicated to Site Recovery when the failover was triggered.
    • 最新处理 :此选项将 VM 故障转移到由 Site Recovery 处理的最新恢复点。Latest processed : This option fails the VM over to the latest recovery point processed by Site Recovery. 此选项提供较低的 RTO(恢复时间目标),因为无需费时处理未经处理的数据。This option provides a low RTO (Recovery Time Objective) because no time is spent processing unprocessed data.
    • 最新的应用一致 :此选项将 VM 故障转移到由 Site Recovery 处理的最新应用一致恢复点。Latest app-consistent : This option fails the VM over to the latest app-consistent recovery point processed by Site Recovery.
    • 自定义 :使用此选项可以指定恢复点。Custom : This option lets you specify a recovery point.
  3. 选择“在开始故障转移之前关闭计算机”,在触发故障转移之前尝试关闭源 VM 。Select Shut down machine before beginning failover to attempt to shut down source VMs before triggering the failover. 即使关机失败,故障转移也仍会继续。Failover continues even if the shutdown fails. 可以在“作业”页上跟踪故障转移进度。 You can follow the failover progress on the Jobs page.

在某些情况下,故障转移需要大约 8 到 10 分钟的时间完成其他进程。In some scenarios, failover requires additional processing that takes around 8 to 10 minutes to complete. 对于以下情况,你可能会发现测试故障转移会持续较长时间:You might notice longer test failover times for:

  • VMware VM 运行的移动服务版本低于 9.8。VMware VMs running a Mobility service version older than 9.8.
  • VMware Linux VM。VMware Linux VMs.
  • VMware VM 未启用 DHCP 服务。VMware VMs that don't have the DHCP service enabled.
  • VMware VM 不包含以下启动驱动程序:storvsc、vmbus、storflt、intelide、atapi。VMware VMs that don't have the following boot drivers: storvsc, vmbus, storflt, intelide, atapi.

警告

不会取消正在进行的故障转移。Don't cancel a failover in progress. 在故障转移开始前,VM 复制已停止。Before failover is started, VM replication is stopped. 如果取消正在进行的故障转移,故障转移会停止,但 VM 将不再进行复制。If you cancel a failover in progress, failover stops, but the VM won't replicate again.

连接到故障转移的 VMConnect to failed-over VM

  1. 如果想在故障转移后通过使用远程桌面协议 (RDP) 和安全外壳 (SSH) 连接到 Azure VM,请验证是否符合要求If you want to connect to Azure VMs after failover by using Remote Desktop Protocol (RDP) and Secure Shell (SSH), verify that the requirements have been met.
  2. 故障转移后,请转到该 VM,并通过与它建立连接来进行验证。After failover, go to the VM and validate by connecting to it.
  3. 若要在故障转移后使用不同的恢复点,请使用“更改恢复点”。 Use Change recovery point if you want to use a different recovery point after failover. 在下一步骤中提交故障转移后,此选项不再可用。After you commit the failover in the next step, this option will no longer be available.
  4. 验证后,选择“提交”以确认故障转移后的 VM 恢复点 。After validation, select Commit to finalize the recovery point of the VM after failover.
  5. 提交后,系统会删除其他所有可用的恢复点。After you commit, all the other available recovery points are deleted. 完成此步骤,就完成了故障转移。This step completes the failover.

提示

如果故障转移后遇到任何连接问题,请遵循故障排除指南予以解决。If you encounter any connectivity issues after failover, follow the troubleshooting guide.

后续步骤Next steps

故障转移后,重新保护 VM 并将其复制到 Azure VMware 解决方案私有云。After failover, reprotect the Azure VMs to Azure VMware Solution private cloud. 重新保护 VM 并将其复制到 Azure VMware 解决方案私有云之后,如果已准备就绪,请从 Azure 进行故障恢复。Then, after the VMs are reprotected and replicating to the Azure VMware Solution private cloud, fail back from Azure when you're ready.