关于适用于 VMware VM 和物理服务器的移动服务About the Mobility service for VMware VMs and physical servers

在使用 Azure Site Recovery 设置 VMware 虚拟机 (VM) 和物理服务器的灾难恢复时,可在每个本地 VMware VM 和物理服务器上安装 Site Recovery 移动服务。When you set up disaster recovery for VMware virtual machines (VM) and physical servers using Azure Site Recovery, you install the Site Recovery Mobility service on each on-premises VMware VM and physical server. 移动服务可以捕获计算机上的数据写入,并将其转发到 Site Recovery 进程服务器。The Mobility service captures data writes on the machine, and forwards them to the Site Recovery process server. 移动服务由移动服务代理软件安装,可以使用以下方法进行部署:The Mobility service is installed by the Mobility service agent software that you can deploy using the following methods:

  • 推送安装:通过 Azure 门户启用保护时,Site Recovery 会在服务器上安装移动服务。Push installation: When protection is enabled via the Azure portal, Site Recovery installs the Mobility service on the server.
  • 手动安装:可以通过用户界面 (UI)命令提示符在每台计算机上手动安装移动服务。Manual installation: You can install the Mobility service manually on each machine through the user interface (UI) or command prompt.
  • 自动部署:可以使用 Configuration Manager 等软件部署工具自动完成移动服务安装。Automated deployment: You can automate the Mobility service installation with software deployment tools such as Configuration Manager.

备注

移动服务使用 VMware VM 的源计算机上或使用物理计算机上大约 6%-10% 的内存。The Mobility service uses approximately 6%-10% of memory on source machines for VMware VMs or physical machines.

复制计算机上的防病毒Antivirus on replicated machines

如果要复制的计算机上正在运行防病毒软件,请从防病毒操作中排除移动服务的安装文件夹 C:\ProgramData\ASR\agent。If machines that you want to replicate are running antivirus software, exclude the Mobility service's installation folder C:\ProgramData\ASR\agent from antivirus operations. 排除后可确保复制将按预期方式工作。This exclusion ensures that replication will work as expected.

推送安装Push installation

推送安装是从 Azure 门户运行以启用复制的作业中不可或缺的部分。Push installation is an integral part of the job that's run from the Azure portal to enable replication. 在选择要保护并启用复制的 VM 集以后,配置服务器会将移动服务代理推送到多个服务器并安装该代理,然后完成将代理注册到配置服务器的操作。After choosing the set of VMs you wish to protect and enable replication, the configuration server pushes the Mobility service agent to the servers, installs the agent, and completes the agent's registration with the configuration server.

先决条件Prerequisites

以下部分介绍了推送安装工作流:The push installation workflow is described in the following sections:

移动服务代理版本 9.23 及更高版本Mobility service agent version 9.23 and higher

有关版本 9.23 的详细信息,请参阅 Azure Site Recovery 的更新汇总 35For more information about version 9.23 see Update Rollup 35 for Azure Site Recovery.

在推送安装移动服务的过程中,执行以下步骤:During a push installation of the Mobility service, the following steps are performed:

  1. 将代理推送到源计算机。The agent is pushed to the source machine. 将代理复制到源计算机的操作可能因多个环境错误而失败。Copying the agent to the source machine can fail due to multiple environmental errors. 若要排查推送安装故障,请访问我们的指南Visit our guidance to troubleshoot push installation failures.

  2. 将代理成功复制到服务器后,服务器上将执行先决条件检查。After the agent is successfully copied to the server, a prerequisite check is performed on the server.

    • 如果满足所有先决条件,则会开始安装。If all prerequisites are met, the installation begins.
    • 如果一项或多项先决条件没有得到满足,安装会失败。The installation fails if one or more of the prerequisites aren't met.
  3. 在代理安装的过程中,将安装适用于 Azure Site Recovery 的卷影复制服务 (VSS) 提供程序。As part of the agent installation, the Volume Shadow Copy Service (VSS) provider for Azure Site Recovery is installed. VSS 提供程序用于生成应用程序一致性恢复点。The VSS provider is used to generate application-consistent recovery points. 如果 VSS 提供程序安装失败,则会跳过此步骤,继续安装代理。If installation of the VSS provider fails, this step is skipped and the agent installation continues.

  4. 如果代理安装成功但 VSS 提供程序安装失败,则会将作业状态标记为“警告”。If the agent installation succeeds but the VSS provider installation fails, then the job status is marked as Warning. 这不会影响崩溃一致性恢复点生成。This doesn't impact crash-consistent recovery point generation.

    • 若要生成应用程序一致性恢复点,请参阅我们的指南,了解如何手动安装 Site Recovery VSS 提供程序。To generate application-consistent recovery points, refer to our guidance to complete a manual installation of the Site Recovery VSS provider.
    • 如果不希望生成应用程序一致性恢复点,请修改复制策略,将应用程序一致性恢复点关闭。If you don't want to generate application-consistent recovery points, modify the replication policy to turn off application-consistent recovery points.

移动服务代理版本 9.22 及更低版本Mobility service agent version 9.22 and below

  1. 将代理推送到源计算机。The agent is pushed to the source machine. 将代理复制到源计算机的操作可能因多个环境错误而失败。Copying the agent to the source machine can fail due to multiple environmental errors. 若要对推送安装失败进行故障排除,请参阅我们的指南Refer to our guidance to troubleshoot push installation failures.

  2. 将代理成功复制到服务器后,服务器上将执行先决条件检查。After the agent is successfully copied to the server, a prerequisite check is performed on the server.

    • 如果满足所有先决条件,则会开始安装。If all prerequisites are met, the installation begins.
    • 如果一项或多项先决条件没有得到满足,安装会失败。The installation fails if one or more of the prerequisites aren't met.
  3. 在代理安装的过程中,将安装适用于 Azure Site Recovery 的卷影复制服务 (VSS) 提供程序。As part of the agent installation, the Volume Shadow Copy Service (VSS) provider for Azure Site Recovery is installed. VSS 提供程序用于生成应用程序一致性恢复点。The VSS provider is used to generate application-consistent recovery points.

    • 如果 VSS 提供程序安装失败,则代理安装会失败。If the VSS provider installation fails, the agent installation will fail. 为了避免代理安装失败,请使用版本 9.23 或更高版本来生成崩溃一致性恢复点,然后手动安装 VSS 提供程序。To avoid failure of the agent installation, use version 9.23 or higher to generate crash-consistent recovery points and do a manual install of the VSS provider.

使用 UI 安装移动服务Install the Mobility service using UI

先决条件Prerequisites

重要

如果要将 Azure 基础结构即服务 (IaaS) VM 从一个 Azure 区域复制到另一个区域,请不要使用 UI 安装方法。Don't use the UI installation method if you're replicating an Azure Infrastructure as a Service (IaaS) VM from one Azure region to another. 请使用命令提示符安装。Use the command prompt installation.

  1. 将安装文件复制到计算机,并运行它。Copy the installation file to the machine, and run it.

  2. 在“安装选项”中,选择“安装移动服务”。In Installation Option, select Install mobility service.

  3. 选择安装位置,然后选择“安装”。Choose the installation location and select Install.

    “移动服务安装选项”页。

  4. 在“安装进度”中监视安装。Monitor the installation in Installation Progress. 安装完成后,选择“转到配置”,将该服务注册到配置服务器。After the installation is finished, select Proceed to Configuration to register the service with the configuration server.

    “移动服务注册”页。

  5. 在“配置服务器详细信息”中,指定已配置的 IP 地址和通行短语。In Configuration Server Details, specify the IP address and passphrase that you configured.

    “移动服务注册”页。

  6. 选择“注册”完成注册。Select Register to finish the registration.

    移动服务注册最后一页。

使用命令提示符安装移动服务Install the Mobility service using command prompt

先决条件Prerequisites

Windows 计算机Windows machine

  • 在命令提示符下运行以下命令,将安装程序复制到要保护的服务器上的某个本地文件夹,如 C:\Temp。From a command prompt, run the following commands to copy the installer to a local folder, such as C:\Temp, on the server that you want to protect. 将安装程序的文件名替换为实际文件名。Replace the installer's file name with the actual file name.

    cd C:\Temp
    ren Microsoft-ASR_UA_version_Windows_GA_date_release.exe MobilityServiceInstaller.exe
    MobilityServiceInstaller.exe /q /x:C:\Temp\Extracted
    cd C:\Temp\Extracted
    
  • 运行此命令来安装代理。Run this command to install the agent.

    UnifiedAgent.exe /Role "MS" /InstallLocation "C:\Program Files (x86)\Microsoft Azure Site Recovery" /Platform "VmWare" /Silent
    
  • 运行这些命令,将代理注册到配置服务器。Run these commands to register the agent with the configuration server.

    cd C:\Program Files (x86)\Microsoft Azure Site Recovery\agent
    UnifiedAgentConfigurator.exe  /CSEndPoint <CSIP> /PassphraseFilePath <PassphraseFilePath>
    

安装设置Installation settings

设置Setting 详细信息Details
语法Syntax UnifiedAgent.exe /Role \<MS/MT> /InstallLocation \<Install Location> /Platform "VmWare" /Silent
安装程序日志Setup logs %ProgramData%\ASRSetupLogs\ASRUnifiedAgentInstaller.log
/Role 必需的安装参数。Mandatory installation parameter. 指定是要安装移动服务 (MS) 还是主目标 (MT)。Specifies whether the Mobility service (MS) or master target (MT) should be installed.
/InstallLocation 可选参数。Optional parameter. 指定移动服务的安装位置(任意文件夹)。Specifies the Mobility service installation location (any folder).
/Platform 必需。Mandatory. 指定要在其中安装移动服务的平台:Specifies the platform on which the Mobility service is installed:
VMware VM/物理服务器的 VMware。VMware for VMware VMs/physical servers.
Azure VM 的 Azure。Azure for Azure VMs.

如果要将 Azure VM 视为物理计算机,请指定 VMwareIf you're treating Azure VMs as physical machines, specify VMware.
/Silent 可选。Optional. 指定是否以静默模式运行安装程序。Specifies whether to run the installer in silent mode.

注册设置Registration settings

设置Setting 详细信息Details
语法Syntax UnifiedAgentConfigurator.exe /CSEndPoint \<CSIP> /PassphraseFilePath \<PassphraseFilePath>
代理配置日志Agent configuration logs %ProgramData%\ASRSetupLogs\ASRUnifiedAgentConfigurator.log
/CSEndPoint 必需的参数。Mandatory parameter. <CSIP> 指定配置服务器的 IP 地址。<CSIP> specifies the configuration server's IP address. 使用任何有效的 IP 地址。Use any valid IP address.
/PassphraseFilePath 必需。Mandatory. 通行短语的位置。Location of the passphrase. 使用任何有效的 UNC 或本地文件路径。Use any valid UNC or local file path.

Linux 计算机Linux machine

  1. 在终端会话中,将安装程序复制到要保护的服务器上的某个本地文件夹,如 /tmp。From a terminal session, copy the installer to a local folder such as /tmp on the server that you want to protect. 将安装程序的文件名替换为 Linux 分发的实际文件名,然后运行命令。Replace the installer's file name with your Linux distribution's actual file name, then run the commands.

    cd /tmp ;
    tar -xvf Microsoft-ASR_UA_version_LinuxVersion_GA_date_release.tar.gz
    
  2. 按如下所示进行安装:Install as follows:

    sudo ./install -d <Install Location> -r MS -v VmWare -q
    
  3. 安装完成后,必须将移动服务注册到配置服务器。After the installation is finished, the Mobility service must be registered to the configuration server. 运行以下命令,将移动服务注册到配置服务器。Run the following command to register the Mobility service with the configuration server.

    /usr/local/ASR/Vx/bin/UnifiedAgentConfigurator.sh -i <CSIP> -P /var/passphrase.txt
    

安装设置Installation settings

设置Setting 详细信息Details
语法Syntax ./install -d \<Install Location> -r \<MS/MT> -v VmWare -q
-r 必需的安装参数。Mandatory installation parameter. 指定是要安装移动服务 (MS) 还是主目标 (MT)。Specifies whether the Mobility service (MS) or master target (MT) should be installed.
-d 可选参数。Optional parameter. 指定移动服务的安装位置:/usr/local/ASRSpecifies the Mobility service installation location: /usr/local/ASR.
-v 必需。Mandatory. 指定要在其中安装移动服务的平台。Specifies the platform on which Mobility service is installed.
VMware VM/物理服务器的 VMware。VMware for VMware VMs/physical servers.
Azure VM 的 Azure。Azure for Azure VMs.
-q 可选。Optional. 指定是否以静默模式运行安装程序。Specifies whether to run the installer in silent mode.

注册设置Registration settings

设置Setting 详细信息Details
语法Syntax cd /usr/local/ASR/Vx/bin<br/><br/> UnifiedAgentConfigurator.sh -i \<CSIP> -P \<PassphraseFilePath>
-i 必需的参数。Mandatory parameter. <CSIP> 指定配置服务器的 IP 地址。<CSIP> specifies the configuration server's IP address. 使用任何有效的 IP 地址。Use any valid IP address.
-P 必需。Mandatory. 通行短语所保存到的文件的完整文件路径。Full file path of the file in which the passphrase is saved. 使用任何有效文件夹。Use any valid folder.

Azure 虚拟机代理Azure Virtual Machine agent

  • Windows VM:从移动服务版本 9.7.0.0 开始,移动服务安装程序会安装 Azure VM 代理Windows VMs: From version 9.7.0.0 of the Mobility service, the Azure VM agent is installed by the Mobility service installer. 这可以确保当计算机故障转移到 Azure 时,Azure VM 满足使用任何 VM 扩展相关的代理安装先决条件。This ensures that when the machine fails over to Azure, the Azure VM meets the agent installation prerequisite for using any VM extension.
  • Linux VM:故障转移后,必须在 Azure VM 上手动安装 WALinuxAgentLinux VMs: The WALinuxAgent must be installed manually on the Azure VM after failover.

找到安装程序文件Locate installer files

转到配置服务器上的 %ProgramData%\ASR\home\svsystems\pushinstallsvc\repository 文件夹。On the configuration server go to the folder %ProgramData%\ASR\home\svsystems\pushinstallsvc\repository. 根据操作系统检查需要哪个安装程序。Check which installer you need based on the operating system. 下表汇总了每个 VMware VM 和物理服务器操作系统的安装程序文件。The following table summarizes the installer files for each VMware VM and physical server operating system. 在开始之前,可以查看支持的操作系统Before you begin, you can review the supported operating systems.

备注

文件名使用下表中所示的语法,其中 version 和 date 是实际值的占位符 。The file names use the syntax shown in the following table with version and date as placeholders for the real values. 实际的文件名将类似于以下示例:The actual file names will look similar to these examples:

  • Microsoft-ASR_UA_9.30.0.0_Windows_GA_22Oct2019_release.exe
  • Microsoft-ASR_UA_9.30.0.0_UBUNTU-16.04-64_GA_22Oct2019_release.tar.gz
安装程序文件Installer file 操作系统(仅限 64 位)Operating system (64-bit only)
Microsoft-ASR_UA_version_Windows_GA_date_release.exe Windows Server 2016Windows Server 2016
Windows Server 2012 R2Windows Server 2012 R2
Windows Server 2012Windows Server 2012
Windows Server 2008 R2 SP1Windows Server 2008 R2 SP1
Microsoft-ASR_UA_version_RHEL6-64_GA_date_release.tar.gz Red Hat Enterprise Linux (RHEL) 6Red Hat Enterprise Linux (RHEL) 6
CentOS 6CentOS 6
Microsoft-ASR_UA_version_RHEL7-64_GA_date_release.tar.gz Red Hat Enterprise Linux (RHEL) 7Red Hat Enterprise Linux (RHEL) 7
CentOS 7CentOS 7
Microsoft-ASR_UA_version_SLES12-64_GA_date_release.tar.gz SUSE Linux Enterprise Server 12 SP1SUSE Linux Enterprise Server 12 SP1
包括 SP2 和 SP3。Includes SP2 and SP3.
Microsoft-ASR_UA_version_SLES11-SP3-64_GA_date_release.tar.gz SUSE Linux Enterprise Server 11 SP3SUSE Linux Enterprise Server 11 SP3
Microsoft-ASR_UA_version_SLES11-SP4-64_GA_date_release.tar.gz SUSE Linux Enterprise Server 11 SP4SUSE Linux Enterprise Server 11 SP4
Microsoft-ASR_UA_version_UBUNTU-14.04-64_GA_date_release.tar.gz Ubuntu Linux 14.04Ubuntu Linux 14.04
Microsoft-ASR_UA_version_UBUNTU-16.04-64_GA_date_release.tar.gz Ubuntu Linux 16.04 LTS 服务器Ubuntu Linux 16.04 LTS server
Microsoft-ASR_UA_version_DEBIAN7-64_GA_date_release.tar.gz Debian 7Debian 7
Microsoft-ASR_UA_version_DEBIAN8-64_GA_date_release.tar.gz Debian 8Debian 8

后续步骤Next steps

设置移动服务的推送安装Set up push installation for the Mobility service.