关于适用于 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 VMs 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. 可以使用下述方法部署移动服务:You can deploy the Mobility Service using the following methods:

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

复制计算机上的防病毒Anti-virus on replicated machines

如果要复制的计算机上正在运行活动的防病毒软件,请确保从防病毒操作中排除移动服务安装文件夹 (C:\ProgramData\ASR\agent)。If machines you want to replicate have active anti-virus software running, make sure you exclude the Mobility service installation folder from anti-virus operations (C:\ProgramData\ASR\agent). 这可确保复制正常工作。This ensures that replication works as expected.

推送安装Push installation

推送安装是在门户中触发的“启用复制”作业不可或缺的一部分。Push installation is an integral part of "Enable Replication" job triggered in the portal. 在选择要保护的虚拟机集并触发“启用复制”以后,配置服务器会将移动代理推送到多个服务器并安装该代理,然后你就可以完成将代理注册到配置服务器的操作。After choosing the set of virtual machines you wish to protect and trigger "Enable Replication", configuration server pushes mobility agent on to the servers, installs the agent and complete registration of agent with configuration server. 若要成功完成该操作,请遵循以下要求:For successful completion of this operation,

推送安装工作流的详细信息在以下部分介绍。Details of push installation workflow has been described in the following sections.

9.23 版开始From 9.23 version onwards

在推送安装移动代理的过程中,执行以下步骤During push installation of mobility agent, following steps are performed

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

  2. 将代理成功复制到服务器以后,将会在服务器上执行先决条件检查。After agent is successfully copied on to the server prerequisite checks are performed on the server. 如果一项或多项先决条件没有得到满足,安装会失败。Installation fails if one or more of the prerequisites are not met. 如果满足所有先决条件,则会触发安装过程。If all prerequisites are met, installation is triggered.

  3. Azure Site Recovery VSS 提供程序是在安装移动代理过程中安装到服务器上的。Azure Site Recovery VSS provider is installed on the server as part of Mobility agent installation. 此提供程序用于生成应用程序一致性点。This provider is used to generate Application consistent points. 如果 VSS 提供程序安装失败,则会跳过此步骤,继续安装代理。If installation of VSS provider fails, this step will be skipped and agent installation will continue.

  4. 如果代理安装成功但 VSS 提供程序安装失败,则会将作业状态标记为“警告”。If agent installation succeeds but VSS provider installation fails,then job status is marked as "Warning". 这不影响崩溃一致性点的生成。This does not impact crash consistency points generation.

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

9.22 以前的版本Before 9.22 versions

  1. 将代理推送到源计算机。Pushes agent on to the source machine. 将代理复制到源计算机的操作可能因多个环境错误而失败。Copying the agent on to source machine can fail due to multiple environmental errors. 若要排查推送安装故障,请访问我们的指南Visit our guidance to troubleshoot push installation failures.
  2. 将代理成功复制到服务器以后,将会在服务器上执行先决条件检查。After agent is successfully copied on to the server prerequisite checks are performed on the server. 如果一项或多项先决条件没有得到满足,安装会失败。Installation fails if one or more of the prerequisites are not met. 如果满足所有先决条件,则会触发安装过程。If all prerequisites are met, installation is triggered.
  3. Azure Site Recovery VSS 提供程序是在安装移动代理过程中安装到服务器上的。Azure Site Recovery VSS provider is installed on the server as part of Mobility agent installation. 此提供程序用于生成应用程序一致性点。This provider is used to generate Application consistent points. 如果 VSS 提供程序安装失败,则代理安装会失败。If installation of VSS provider fails, then agent installation will fail. 为了避免移动代理安装失败,请使用 9.23 版或更高版本来生成崩溃一致性点,然后手动安装 VSS 提供程序。To avoid failure of mobility agent installation, use 9.23 version or higher to generate crash consistent points and install VSS provider manually.

通过 UI 安装移动代理Install mobility agent through UI

先决条件Prerequisite

Important

如果要在不同的 Azure 区域之间复制 Azure IaaS VM,请不要使用此方法。If you are replicating Azure IaaS VM from one Azure region to another, don't use this method. 请改用基于命令行的安装方法。Use the command-line-based installation method instead.

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

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

  3. 选择安装位置 >“安装”。 Select the installation location > 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 you configured.

    “移动服务注册”页

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

    移动服务注册最后一页

通过命令提示符安装移动代理Install mobility agent through command prompt

先决条件Prerequisite

在 Windows 计算机上On a Windows machine

  • 将安装程序复制到要保护的服务器上的某个本地文件夹(例如 C:\Temp)。Copy the installer to a local folder (for example, C:\Temp) on the server that you want to protect.

    cd C:\Temp
    ren Microsoft-ASR_UA*Windows*release.exe MobilityServiceInstaller.exe
    MobilityServiceInstaller.exe /q /x:C:\Temp\Extracted
    cd C:\Temp\Extracted
    
  • 按如下所示进行安装:Install as follows:

    UnifiedAgent.exe /Role "MS" /InstallLocation "C:\Program Files (x86)\Microsoft Azure Site Recovery" /Platform "VmWare" /Silent
    
  • 将代理注册到配置服务器。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
使用情况Usage UnifiedAgent.exe /Role <MS/MT> /InstallLocation <Install Location> /Platform "VmWare" /SilentUnifiedAgent.exe /Role <MS/MT> /InstallLocation <Install Location> /Platform "VmWare" /Silent
安装程序日志Setup logs 位于 %ProgramData%\ASRSetupLogs\ASRUnifiedAgentInstaller.log 下。Under %ProgramData%\ASRSetupLogs\ASRUnifiedAgentInstaller.log.
/Role/Role 必需的安装参数。Mandatory installation parameter. 指定是要安装移动服务 (MS) 还是主目标 (MT)。Specifies whether the Mobility service (MS) or master target (MT) should be installed.
/InstallLocation/InstallLocation 可选参数。Optional parameter. 指定移动服务的安装位置(任意文件夹)。Specifies the Mobility service installation location (any folder).
/Platform/Platform 必需。Mandatory. 指定一个平台,以便在其上安装移动服务。Specifies the platform on which Mobility Service is installed. 对于 VMware VM/物理服务器,请指定 VMware;对于 Azure VM,请指定 AzureVMware for VMware VMs/physical servers; Azure for Azure VMs.

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

注册设置Registration settings

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

在 Linux 计算机上On a Linux machine

  1. 将安装程序复制到要保护的服务器上的某个本地文件夹(例如 /tmp)。Copy the installer to a local folder (for example, /tmp) on the server that you want to protect. 在终端中,运行以下命令:In a terminal, run the following commands:

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

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

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

安装设置Installation settings

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

注册设置Registration settings

设置Setting 详细信息Details
使用情况Usage cd /usr/local/ASR/Vx/bincd /usr/local/ASR/Vx/bin

UnifiedAgentConfigurator.sh -i <CSIP> -P <PassphraseFilePath>UnifiedAgentConfigurator.sh -i <CSIP> -P <PassphraseFilePath>
-i-i 必需的参数。Mandatory parameter. 指定配置服务器的 IP 地址。Specifies the IP address of the configuration server. 使用任何有效的 IP 地址。Use any valid IP address.
-p-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 文件夹。Go to %ProgramData%\ASR\home\svsystems\pushinstallsvc\repository folder on configuration server. 根据操作系统检查需要哪个安装程序。Check which installer you need based on operating system. 下表汇总了每个 VMware VM 和物理服务器操作系统的安装程序文件。The following table summarizes the installer files for each VMware VM and physical server operating system. 在开始之前,可以查看支持的操作系统You can review supported operating systems before you start.

安装程序文件Installer file 操作系统(仅限 64 位)Operating system (64-bit only)
Microsoft-ASR_UA*Windows*release.exeMicrosoft-ASR_UA*Windows*release.exe Windows Server 2016;Windows Server 2012 R2;Windows Server 2012;Windows Server 2008 R2 SP1Windows Server 2016; Windows Server 2012 R2; Windows Server 2012; Windows Server 2008 R2 SP1
Microsoft-ASR_UA*RHEL6-64*release.tar.gzMicrosoft-ASR_UA*RHEL6-64*release.tar.gz Red Hat Enterprise Linux (RHEL) 6。*Red Hat Enterprise Linux (RHEL) 6.*
CentOS 6。*CentOS 6.*
Microsoft-ASR_UA*RHEL7-64*release.tar.gzMicrosoft-ASR_UA*RHEL7-64*release.tar.gz Red Hat Enterprise Linux (RHEL) 7。*Red Hat Enterprise Linux (RHEL) 7.*
CentOS 7。*CentOS 7.*
Microsoft-ASR_UA*SLES12-64*release.tar.gzMicrosoft-ASR_UA*SLES12-64*release.tar.gz SUSE Linux Enterprise Server 12 SP1、SP2、SP3SUSE Linux Enterprise Server 12 SP1,SP2,SP3
Microsoft-ASR_UA*SLES11-SP3-64*release.tar.gzMicrosoft-ASR_UA*SLES11-SP3-64*release.tar.gz SUSE Linux Enterprise Server 11 SP3SUSE Linux Enterprise Server 11 SP3
Microsoft-ASR_UA*SLES11-SP4-64*release.tar.gzMicrosoft-ASR_UA*SLES11-SP4-64*release.tar.gz SUSE Linux Enterprise Server 11 SP4SUSE Linux Enterprise Server 11 SP4
Microsoft-ASR_UA*OL6-64*release.tar.gzMicrosoft-ASR_UA*OL6-64*release.tar.gz Oracle Enterprise Linux 6.4、6.5Oracle Enterprise Linux 6.4, 6.5
Microsoft-ASR_UA*UBUNTU-14.04-64*release.tar.gzMicrosoft-ASR_UA*UBUNTU-14.04-64*release.tar.gz Ubuntu Linux 14.04Ubuntu Linux 14.04
Microsoft-ASR_UA*UBUNTU-16.04-64*release.tar.gzMicrosoft-ASR_UA*UBUNTU-16.04-64*release.tar.gz Ubuntu Linux 16.04 LTS 服务器Ubuntu Linux 16.04 LTS server
Microsoft-ASR_UA*DEBIAN7-64*release.tar.gzMicrosoft-ASR_UA*DEBIAN7-64*release.tar.gz Debian 7Debian 7
Microsoft-ASR_UA*DEBIAN8-64*release.tar.gzMicrosoft-ASR_UA*DEBIAN8-64*release.tar.gz Debian 8Debian 8

后续步骤Next steps

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