从目标为 Azure 的 VMware VM 复制中排除磁盘Exclude disks from VMware VM replication to Azure

本文介绍如何在将 VMware VM 复制到 Azure 时排除磁盘,以便进行灾难恢复。This article describes how to exclude disks when replicating VMware VMs to Azure for disaster recovery. 出于多种原因,你可能需要在复制时排除磁盘:You might want to exclude disks from replication for a number of reasons:

  • 确保不会复制已排除磁盘上改动的非关键数据。Ensure that unimportant data churned on the excluded disk doesn't get replicated.
  • 可以通过排除无需复制的磁盘来优化消耗的复制带宽或优化目标端资源。Optimize the consumed replication bandwidth, or the target-side resources, by excluding disks you don't need to replicate.
  • 需要节省存储和网络资源,因此不复制不需要的数据。Save storage and network resources by not replicating data you don't need.

在将磁盘从复制中排除前,请执行以下操作:Before you exclude disks from replication:

开始之前Before you start

开始之前,请注意以下事项:Note the following before you start:

  • 复制:默认情况下将复制计算机上的所有磁盘。Replication: By default, all disks on a machine are replicated.
  • 磁盘类型:只能从复制中排除基本磁盘。Disk type: Only basic disks can be excluded from replication. 不能排除操作系统磁盘或动态磁盘。You can't exclude operating system or dynamic disks.
  • 移动服务:若要从复制中排除磁盘,必须先在计算机上手动安装移动服务,然后才能启用复制。Mobility service: To exclude a disk from replication, you must manually install the Mobility service on the machine before you enable replication. 不能使用推送安装,因为此方法只有在启用复制后才能在 VM 上安装移动服务。You can't use the push installation, since this method installs the Mobility service on a VM only after replication is enabled.
  • 添加/删除/排除磁盘:启用复制后,无法添加/删除/排除要复制的磁盘。Add/remove/exclude disks: After you enable replication, you can't add/remove/exclude disks for replication. 如果想要添加/删除或排除磁盘,需要禁用计算机保护,并重新启用保护。If you want to add/remove or exclude disks, you need to disable protection for the machine and then enable it again.
  • 故障转移:故障转移后,如果故障转移应用需要使用排除的磁盘才能运行,则需手动创建这些磁盘。Failover: After failover, if failed over apps need excluded disks in order to work, you need to create those disks manually. 或者,可将 Azure 自动化集成到恢复计划中,以便在故障转移计算机期间创建磁盘。Alternatively, you can integrate Azure automation into a recovery plan, to create the disk during failover of the machine.
  • Failback-Windows:故障转移后故障回复到本地站点时,不会对 Azure 中手动创建的 Windows 磁盘进行故障回复。Failback-Windows: When you fail back to your on-premises site after failover, Windows disks that you create manually in Azure aren't failed back. 例如,如果在 Azure VM 中故障转移三个磁盘并直接创建两个磁盘,则只会故障回复完成故障转移的三个磁盘。For example, if you fail over three disks and create two disks directly on Azure VMs, only the three disks that were failed over will be failed back.
  • Failback-Linux:若要故障回复 Linux 计算机,则会故障回复在 Azure 中手动创建的磁盘。Failback-Linux: For failback of Linux machines, disks that you create manually in Azure are failed back. 例如,如果要故障转移三个磁盘,并直接在 Azure VM 上创建两个磁盘,则会故障回复所有五个磁盘。For example, if you fail over three disks and create two disks directly on Azure VMs, all five will be failed back. 在故障回复时或对 VM 进行反向保护时,不能排除手动创建的磁盘。You can't exclude disks that were created manually in the failback, or in reprotection of VMs.

从复制中排除磁盘Exclude disks from replication

  1. 为 VMware VM 启用复制时,请选择要复制的 VM,然后在“启用复制” > “属性” > “配置属性”页上查看“要复制的磁盘”列 。When you enable replication for a VMware VM, after selecting the VMs that you want to replicate, in the Enable replication > Properties > Configure properties page, review the Disks to Replicate column. 默认情况下,选择所有磁盘进行复制。By default all disks are selected for replication.

  2. 如果不想复制特定磁盘,请在“要复制的磁盘”中取消选择要排除的任何磁盘 。If you don't want to replicate a specific disk, in Disks to replicate clear the selection for any disks you want to exclude.

    从复制中排除磁盘

后续步骤Next steps

设置并运行部署后,请 详细了解 不同类型的故障转移。After your deployment is set up and running, learn more about different types of failover.