管理进程服务器Manage process servers

本文介绍用于管理 Site Recovery 进程服务器的常见任务。This article describes common tasks for managing the Site Recovery process server.

进程服务器用于接收、优化复制数据并将复制数据发送到 Azure。The process server is used to receive, optimize, and send replication data to Azure. 它还会在要复制的 VMware VM 和物理服务器上执行移动服务的推送安装,并对本地计算机执行自动发现。It also performs a push installation of the Mobility service on VMware VMs and physical servers you want to replicate, and performs automatic discovery of on-premises machines. 默认情况下,进程服务器安装在配置服务器计算机上,目的是将本地 VMware VM 或物理服务器复制到 Azure。For replicating on-premises VMware VMs or physical servers to Azure, the process server is installed by default on the configuration server machine.

  • 对于大型部署,可能需要使用额外的本地进程服务器来扩展容量。For large deployments, you might need additional on-premises process servers to scale capacity.
  • 若要从 Azure 故障回复到本地,必须在 Azure 中设置临时进程服务器。For failback from Azure to on-premises, you must set up a temporary process server in Azure. 故障回复完成后,可以删除此 VM。You can delete this VM when failback is done.

详细了解进程服务器。Learn more about the process server.

升级进程服务器Upgrade a process server

将进程服务器部署到本地或部署为故障回复所需的 Azure VM 时,会安装最新版的进程服务器。When you deploy a process server on-premises, or as an Azure VM for failback, the latest version of the process server is installed. Site Recovery 团队会定期发布修补程序和增强功能,因此我们建议你使进程服务器保持最新。The Site Recovery teams release fixes and enhancements on a regular basis, and we recommend you keep process servers up-to-date. 可以升级进程服务器,如下所述:You can upgrade a process server as follows:

  1. 以管理员身份登录进程服务器。Sign in to the process server as an Administrator.
  2. 下载最新版本的 统一安装程序Download the latest version of the Unified Setup.
  3. 双击该安装程序,启动更新进程。Double-click the installer to launch the update process.
  4. 安装程序将检测已安装的各种组件并将其升级到最新版本。The installer will detect the various components that are installed and upgrade them to the latest version.

移动 VM,均衡进程服务器负载Move VMs to balance the process server load

在两个进程服务器之间移动 VM,对负载进行均衡,如下所述:Balance the load by moving VMs between two process servers, as follows:

  1. 在保管库的“管理”下,单击“Site Recovery 基础结构”。 In the vault, under Manage click Site Recovery Infrastructure. 在“针对 VMware 和物理计算机”下,单击“配置服务器”。 Under For VMware & Physical machines, click Configuration Servers.

  2. 单击进程服务器注册到的配置服务器。Click on the configuration server with which the process servers are registered.

  3. 单击要对其流量进行负载均衡的进程服务器。Click on the process server for which you want to load balance traffic.

    LoadBalance

  4. 单击“负载均衡”,选择要将计算机移动到其中的目标进程服务器。 Click Load balance, select the target process server to which you want to move machines. 然后单击“确定” Then click OK

    LoadPS

  5. 单击“选择计算机”,选择要从当前进程服务器移动到目标进程服务器的计算机 。Click Select machines, and choose the machines you want to move from the current to the target process server. 针对每个虚拟机显示平均数据更改的详细信息。Details of average data change are displayed against each virtual machine. 选择 确定Then click OK.

  6. 在保管库的“监视” > “Site Recovery 作业”下监视作业进程。 In the vault, monitor the progress of the job under Monitoring > Site Recovery jobs.

所做的更改反映在门户中需要大约 15 分钟。It will take around 15 minutes for changes to be reflected in the portal. 若要更快地显示效果,请刷新配置服务器For a quicker effect, refresh the configuration server.

将整个工作负荷切换到另一进程服务器Switch an entire workload to another process server

将某个进程服务器处理的整个工作负荷移到另一进程服务器,如下所示:Move the entire workload handled by a process server to a different process server, as follows:

  1. 在保管库的“管理”下,单击“Site Recovery 基础结构”。 In the vault, under Manage click Site Recovery Infrastructure. 在“针对 VMware 和物理计算机”下,单击“配置服务器”。 Under For VMware & Physical machines, click Configuration Servers.

  2. 单击进程服务器注册到的配置服务器。Click on the configuration server with which the process servers are registered.

  3. 单击要在其中切换工作负荷的进程服务器。Click on the process server from which you want to switch the workload.

  4. 单击“切换”,选择要将工作负荷移动到其中的目标进程服务器。 Click on Switch, select the target process server to which you want to move the workload. 然后单击“确定” Then click OK

    Switch

  5. 在保管库的“监视” > “Site Recovery 作业”下监视作业进程。 In the vault, monitor the progress of the job under Monitoring > Site Recovery jobs.

所做的更改反映在门户中需要大约 15 分钟。It will take around 15 minutes for changes to be reflected in the portal. 若要更快地显示效果,请刷新配置服务器For a quicker effect, refresh the configuration server.

重新注册进程服务器Reregister a process server

将在本地或 Azure VM 中运行的进程服务器重新注册到配置服务器,如下所示:Reregister a process server running on-premises or on an Azure VM with the configuration server as follows:

  • 使用远程桌面连接连接到进程服务器虚拟机。Connect to the Process Server virtual machine using Remote Desktop Connection.
  • 可通过单击桌面上可用的快捷方式启动 cspsconfigtool.exe。You can launch the cspsconfigtool.exe by clicking on the shortcut available on the desktop. (如果这是第一次登录到进程服务器,该工具则会自动启动)。(The tool will be automatically launched if this the first time you are logging into the process server).
    • 配置服务器的完全限定名称 (FQDN) 或 IP 地址Configuration Server's fully qualified name (FQDN) or IP Address

    • 配置服务器侦听时所在的端口。Port on which the Configuration server is listening on. 值应为 443The value should be 443

    • 连接到配置服务器所需的连接通行短语。Connection Passphrase to connect to the configuration server.

    • 要为该进程服务器配置的数据传输端口。Data Transfer port to be configured for this Process Server. 保留原来的默认值,除非已在环境中将其更改为其他端口号。Leave the default value as is unless you have changed it to a different port number in your environment.

      注册进程服务器

  • 单击保存按钮以保存配置并注册进程服务器。Click the save button to save the configuration and register the Process Server.

保存设置后,请执行以下操作:After you've saved the settings, do the following:

  1. 在进程服务器上,打开管理员命令提示符。On the process server, open an administrator command prompt.

  2. 浏览到文件夹 %PROGRAMDATA%\ASR\Agent,并运行以下命令:Browse to folder %PROGRAMDATA%\ASR\Agent, and run the command:

    cdpcli.exe --registermt
    net stop obengine
    net start obengine
    

修改本地进程服务器的代理设置Modify proxy settings for an on-premises process server

如果本地进程服务器使用代理连接到 Azure,则可修改代理设置,如下所示:If an on-premises process server uses a proxy to connect to Azure, you can modify the proxy settings as follows:

  1. 登录到进程服务器计算机。Sign into the process server machine.
  2. 打开管理员 PowerShell 命令窗口并运行以下命令:Open an Admin PowerShell command window, and run the following command:
    $pwd = ConvertTo-SecureString -String MyProxyUserPassword
    Set-OBMachineSetting -ProxyServer http://myproxyserver.domain.com -ProxyPort PortNumber -ProxyUserName domain\username -ProxyPassword $pwd
    net stop obengine
    net start obengine
    
  3. 浏览到文件夹 %PROGRAMDATA%\ASR\Agent,并运行以下命令:Browse to folder %PROGRAMDATA%\ASR\Agent, and run this command:
    cmd
    cdpcli.exe --registermt
    
    net stop obengine
    
    net start obengine
    
    exit
    

删除进程服务器Remove a process server

根据你的具体情况执行以下步骤。Follow the steps for your specific circumstances.

注销已连接的进程服务器Unregister a connected process server

  1. 以管理员身份与进程服务器建立远程连接。Establish a remote connection to the process server as an Administrator.
  2. 在“控制面板” 中,打开“程序”>“卸载程序” 。In the Control Panel, open Programs > Uninstall a program.
  3. 卸载程序“Azure Site Recovery 出行服务/主目标服务器” 。Uninstall the program Azure Site Recovery Mobility Service/Master Target Server.
  4. 卸载程序“Azure Site Recovery 配置/进程服务器” 。Uninstall the program Azure Site Recovery Configuration/Process Server.
  5. 卸载步骤 3 和步骤 4 中的程序后,卸载“Azure Site Recovery 配置/进程服务器依赖项” 。After the programs in steps 3 and 4 are uninstalled, uninstall Azure Site Recovery Configuration/Process Server Dependencies.

注销已断开连接的进程服务器Unregister a disconnected process server

仅当无法恢复安装了进程服务器的计算机时,才使用这些步骤。Only use these steps if there's no way to revive the machine on which the process server is installed.

  1. 以管理员身份登录配置服务器。Sign in the configuration server as an Administrator.

  2. 打开管理命令提示符,并浏览到 %ProgramData%\ASR\home\svsystems\binOpen an Administrative command prompt, and browse to %ProgramData%\ASR\home\svsystems\bin.

  3. 运行此命令以获取一个或多个进程服务器的列表。Run this command to get a list of one or more process servers.

    perl Unregister-ASRComponent.pl -IPAddress <IP_of_Process_Server> -Component PS
    
    • 序列S. 号:进程服务器序列号。No: the process server serial number.
    • IP/名称:运行进程服务器的计算机的 IP 地址和名称。IP/Name: The IP address and name of the machine running the process server.
    • 检测信号:进程服务器计算机发出的上一个检测信号。Heartbeat: Last heartbeat from the process server machine. Unregister-cmdUnregister-cmd
  4. 指定要注销的进程服务器的序列号。Specify the serial number of the process server you want to unregister.

  5. 注销进程服务器将从系统中删除其所有详细信息,并显示消息:已成功注销服务器名称> (服务器 IP 地址)Unregistering a process server remove all of its details from the system, and displays the message: Successfully unregistered server-name> (server-IP-address)

请从防病毒软件中排除文件夹Exclude folders from anti-virus software

如果防病毒软件在横向扩展进程服务器(或主目标服务器)上运行,请从防病毒操作中排除以下文件夹:If anti-virus software is running on a scale-out process server (or master target server), exclude the following folders from anti-virus operations:

  • C:\Program Files\Microsoft Azure Recovery Services AgentC:\Program Files\Microsoft Azure Recovery Services Agent
  • C:\ProgramData\ASRC:\ProgramData\ASR
  • C:\ProgramData\ASRLogsC:\ProgramData\ASRLogs
  • C:\ProgramData\ASRSetupLogsC:\ProgramData\ASRSetupLogs
  • C:\ProgramData\LogUploadServiceLogsC:\ProgramData\LogUploadServiceLogs
  • C:\ProgramData\Azure Site RecoveryC:\ProgramData\Azure Site Recovery
  • 进程服务器安装目录。Process server installation directory. 例如:C:\Program Files (x86)\Microsoft Azure Site RecoveryFor example: C:\Program Files (x86)\Microsoft Azure Site Recovery