为添加到 Azure VM 的磁盘启用复制Enable replication for a disk added to an Azure VM

本文介绍如何为添加到 Azure VM 的数据磁盘启用复制,该 Azure VM 已使用 Azure Site Recovery 启用到另一个 Azure 区域的灾难恢复。This article describes how to enable replication for data disks that are added to an Azure VM that's already enabled for disaster recovery to another Azure region, using Azure Site Recovery.

对于具有托管磁盘的 Azure VM,支持为添加到 VM 的磁盘启用复制。Enabling replication for a disk you add to a VM is supported for Azure VMs with managed disks.

将新磁盘添加到正在复制到另一个 Azure 区域的 Azure VM 时,会发生以下情况:When you add a new disk to an Azure VM that's replicating to another Azure region, the following occurs:

  • VM 的复制运行状况会显示一条警告,并且门户中的注意事项会通知你有一个或多个磁盘可用于保护。Replication health for the VM shows a warning, and a note in the portal informs you that one or more disks are available for protection.
  • 如果为添加的磁盘启用保护,此警告会在初始复制磁盘后消失。If you enable protection for the added disks, the warning will disappear after initial replication of the disk.
  • 如果选择不为磁盘启用复制,则可选择关闭此警告。If you choose not to enable replication for the disk, you can select to dismiss the warning.

添加的新磁盘

开始之前Before you start

本文假定你已经为要添加磁盘的 VM 设置了灾难恢复。This article assumes that you've already set up disaster recovery for the VM to which you're adding the disk. 如果你还没有这样做,请按照 Azure 到 Azure 灾难恢复教程进行操作。If you haven't, follow the Azure to Azure disaster recovery tutorial.

为添加的磁盘启用复制Enable replication for an added disk

若要为添加的磁盘启用复制,请执行以下操作:To enable replication for an added disk, do the following:

  1. 在保管库 >“复制的项” 中,单击已向其添加磁盘的 VM。In the vault > Replicated Items, click the VM to which you added the disk.

  2. 单击“磁盘” ,然后选择要为其启用复制的数据磁盘(这些磁盘具有“未受保护” 状态)。Click Disks, and then select the data disk for which you want to enable replication (these disks have a Not protected status).

  3. 在“磁盘详细信息” 中,单击“启用复制” 。In Disk Details, click Enable replication.

    为添加的磁盘启用复制

在启用复制作业运行且初始复制完成后,将删除针对磁盘问题的复制运行状况警告。After the enable replication job runs and the initial replication finishes, the replication health warning for the disk issue is removed.

后续步骤Next steps

详细了解如何运行测试故障转移。Learn more about running a test failover.