在 Lync Server 2013 中还原承载中央管理存储的服务器Restoring the server hosting the Central Management store in Lync Server 2013

 

上次修改的主题: 2013-02-21Topic Last Modified: 2013-02-21

Lync Server 部署具有一个中央管理存储,该存储将复制到运行 Lync Server 服务器角色的每台服务器。A Lync Server deployment has a single Central Management store, a copy of which is replicated to each server running a Lync Server server role. 本主题介绍如何还原承载中央管理存储的后端服务器或 Standard Edition 服务器。This topic describes how to restore a Back End Server or Standard Edition server that hosts the Central Management store.

若要查找中央管理服务器所在的池,请打开拓扑生成器,单击 " Lync Server",并在 " 中央管理服务器" 下查找右侧窗格。To find the pool where the Central Management Server is located, open Topology Builder, click Lync Server, and look in the right pane under Central Management Server.

如果承载中央管理存储的后端服务器在镜像安装中,并且镜像数据库仍正常运行,我们建议您对此仍正常的镜像进行备份,然后通过执行以下还原过程,对主数据库和镜像数据库执行完全还原。If the Back End Server that hosts the Central Management store is in a mirrored setup and the mirror database is still functional, we recommend that you make a backup of this still-functioning mirror, and then perform a full restore on both the primary database and the mirror database, using this backup, by following the restoration procedure below. 这是必要的,因为后端还原需要修改和发布拓扑,并且只能在主数据库托管 CMS 运行时执行此操作。This is necessary because Back End restore requires modifying and publishing the topology, and this can be done only if the primary database hosting CMS is operational. 另请注意,如果无法发布拓扑,主数据库角色和镜像数据库角色将无法互换。Also note that the primary and mirror database roles cannot be interchanged if the topology cannot be published.

备注

如果未承载中央管理存储的后端服务器或 Standard Edition 服务器出现故障,请参阅 在 lync server 2013 中还原企业版后端服务器在 lync Server 2013 中还原 Standard edition serverIf a Back End Server or Standard Edition server that does not host the Central Management store failed, see Restoring an Enterprise Edition Back End Server in Lync Server 2013 or Restoring a Standard Edition server in Lync Server 2013. 如果承载中央管理存储的后端服务器在镜像配置中,并且只有镜像失败,请参阅 在 Lync Server 2013-镜像中还原镜像的企业版后端服务器If a Back End Server that hosts the Central Management store is in a mirrored configuration and only the mirror failed, see Restoring a mirrored Enterprise Edition Back End Server in Lync Server 2013 - mirror. 如果任何其他服务器发生故障,请参阅 在 Lync server 2013 中还原企业版成员服务器If any other server failed, see Restoring an Enterprise Edition member server in Lync Server 2013.

提示

我们建议您先获取系统的图像副本,然后再开始还原。We recommend that you take an image copy of the system before you start restoration. 您可以将此图像用作回滚点,以防还原过程中出现问题。You can use this image as a rollback point, in case something goes wrong during restoration. 您可能需要在安装操作系统和 SQL Server 后拍摄图像副本,并还原或重新注册证书。You might want to take the image copy after you install the operating system and SQL Server, and restore or reenroll the certificates.

还原中央管理存储To restore the Central Management store

  1. 从具有相同完全限定的域名 (FQDN) 为故障计算机的干净或新服务器开始,安装操作系统,然后还原或重新注册证书。Start with a clean or new server that has the same fully qualified domain name (FQDN) as the failed computer, install the operating system, and then restore or reenroll the certificates.

    备注

    按照您组织的服务器部署过程来执行该步骤。Follow your organization's server deployment procedures to perform this step.

  2. 从作为 RTCUniversalServerAdmins 组成员和本地 Administrators 组成员的用户帐户,登录到要还原的服务器。From a user account that is a member of the RTCUniversalServerAdmins group and the Local Administrators group, log on to the server that you are restoring.

  3. 如果要还原 Standard Edition server,请通过将相应的文件存储从 $Backup 复制到服务器上的文件存储位置来还原文件存储,然后共享该文件夹。If you are restoring a Standard Edition server, restore the File Store by copying the appropriate File Store from $Backup to the File Store location on the server, and then share the folder.

    重要

    已还原文件存储的路径和文件名应与备份的文件存储完全相同,以便使用这些文件的组件可以访问它们。The path and file name for the restored File Store should be exactly the same as the backed up File Store so that components that use the files can access them.

  4. 执行下列操作之一:Do one of the following:

    • 如果要安装 Standard Edition server,请浏览到 Lync Server 安装文件夹或媒体,然后启动位于 \ setup amd64Setup.exe 的 Lync Server 部署向导 \ \ 。If you are installing a Standard Edition server, browse to the Lync Server installation folder or media, and then start the Lync Server Deployment Wizard located at \setup\amd64\Setup.exe. 在部署向导中,单击 " 准备第一个 Standard Edition server ",然后按照向导安装中央管理存储。In the Deployment Wizard, click Prepare first Standard Edition server and follow the wizard to install the Central Management store.

    • 如果要安装企业后端服务器,请安装 SQL Server 2012 或 SQL Server 2008 R2,并保持实例名称与故障前相同。If you are installing an Enterprise Back End Server, install SQL Server 2012 or SQL Server 2008 R2, keeping the instance names the same as before the failure.

      备注

      根据要还原的服务器和部署,服务器可能包含多个并置或单独的数据库。Depending on the server that you are restoring and on your deployment, the server might include multiple collocated or separate databases. 按照先前部署服务器时使用的过程来安装 SQL Server,包括 SQL Server 权限和登录名。Follow the same procedure to install SQL Server that you used originally to deploy the server, including SQL Server permissions and logins.

  5. 在前端服务器中,启动 Lync Server 命令行管理程序:依次单击 " 开始"、" 所有程序"、" Microsoft Lync server 2013",然后单击 " Lync server Management Shell"。From a Front End Server, Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2013, and then click Lync Server Management Shell.

  6. 重新创建中央管理存储。Re-create the Central Management store. 在命令行中键入:At the command line, type:

    Install-CsDatabase -CentralManagementDatabase -Clean -SqlServerFqdn <FQDN> -SqlInstanceName <instance name> -Verbose
    

    例如:For example:

    Install-CsDatabase -CentralManagementDatabase -Clean -SqlServerFqdn Server01.contoso.com -SqlInstanceName cms -Verbose
    
  7. 为中央管理存储设置 Active Directory 域服务控制点。Set the Active Directory Domain Services control point for the Central Management store. 在命令行中键入:At the command line, type:

    Set-CsConfigurationStoreLocation -SqlServerFqdn <FQDN> -SqlInstanceName <instance name> -Verbose
    

    例如:For example:

    Set-CsConfigurationStoreLocation -SqlServerFqdn Server01.contoso.com -SqlInstanceName cms -Verbose
    

    备注

    如果失去了连接点,可重新运行此 cmdlet。If you lose the connection point, you can rerun this cmdlet.

  8. 从 $Backup 导入中央管理存储数据。Import the Central Management store data from $Backup. 在命令行中键入:At the command line, type:

    Import-CsConfiguration -FileName <CMS backup file name>
    

    例如:For example:

    Import-CsConfiguration -FileName "C:\Config.zip"
    
  9. 启用刚刚所做的更改。在命令行中键入:Enable the changes you have just made. At the command line, type:

    Enable-CsTopology
    

    备注

    启用拓扑后,可在数据库中找到拓扑文档。After you enable the topology, you can find the topology document in the database.

  10. 如果要还原同时托管 CMS 的企业版后端服务器,或者如果需要重新创建 CMS 的镜像,请执行此步骤。If you are restoring an Enterprise Edition Back End Server that also hosted the CMS, or if you need to re-create a mirror of the CMS, then follow this step. 否则,请跳至步骤11。Otherwise, skip to step 11.

    通过执行以下操作来安装独立数据库:Install the stand-alone databases by doing the following:

    1. 启动拓扑生成器:依次单击 " 开始"、" 所有程序"、" Microsoft Lync server 2013",然后单击 " Lync server 拓扑生成器"。Start Topology Builder: Click Start, click All Programs, click Microsoft Lync Server 2013, and then click Lync Server Topology Builder.

    2. 单击“从现有部署下载拓扑”****,然后单击“确定”****。Click Download Topology from existing deployment, and then click OK.

    3. 选择拓扑,然后单击“保存”****。单击“是”**** 确认您的选择。Select the topology, and then click Save. Click Yes to confirm your selection.

    4. 右键单击 " Lync Server 2013 " 节点,然后单击 " 安装数据库"。Right-click the Lync Server 2013 node, and then click Install Database.

    5. 按照 " 安装数据库 " 向导操作。Follow the Install Database wizard. 如果要在此服务器上还原中央管理存储之外的数据库,请在 " 创建数据库 " 页上,选择要重新创建的数据库。If you are restoring a database other than the Central Management store on this server, on the Create databases page, select the databases you want to recreate.

      备注

      只有独立数据库会显示在“创建数据库”页上。Only stand-alone databases are displayed on the Create databases page. 并置数据库是在运行 Lync Server 部署向导时创建的。Collocated databases are created when you run the Lync Server Deployment Wizard.

    6. 如果要还原镜像后端服务器,请继续按照向导的其余部分操作,直到您进入创建镜像数据库的提示。If you are restoring a mirrored Back End Server, continue to follow the rest of the wizard until you come to a prompt of Create Mirror Database. 选择要安装的数据库,并完成此过程。Select the database you want to install, and complete the process.

    7. 按照向导的其余部分操作,然后单击“完成”****。Follow the rest of the wizard, and then click Finish.

    提示

    除了运行拓扑生成器之外,您还可以使用 CsDatabase cmdlet 来创建每个数据库,并使用 CsMirrorDatabase cmdlet 来配置镜像。Instead of running Topology Builder, you can use the Install-CsDatabase cmdlet to create each database, and the Install-CsMirrorDatabase cmdlet to configure mirroring. 有关详细信息,请参阅 install-CsDatabase and install-CsMirrorDatabaseFor details, see Install-CsDatabase and Install-CsMirrorDatabase.

  11. 如果要还原 Standard Edition server,请浏览到 Lync Server 安装文件夹或媒体,然后启动位于 \ setup amd64Setup.exe 的 Lync Server 部署向导 \ \ 。If you are restoring a Standard Edition server, browse to the Lync Server installation folder or media, and start the Lync Server Deployment Wizard located at \setup\amd64\Setup.exe. 使用 Lync Server 部署向导执行以下操作:Use the Lync Server Deployment Wizard to do the following:

    1. 运行“步骤 1: 安装本地配置存储”**** 以安装本地配置文件。Run Step 1: Install Local Configuration Store to install the local configuration files.

    2. 运行 步骤2:安装或删除 Lync Server 组件 以安装 lync server 服务器角色。Run Step 2: Setup or Remove Lync Server Components to install the Lync Server server roles.

    3. 运行“步骤 3: 请求、安装或分配证书”**** 以分配证书。Run Step 3: Request, Install or Assign Certificates to assign the certificates.

    4. 运行“步骤 4: 启动服务”**** 以在服务器上启动服务。Run Step 4: Start Services to start services on the server.

    有关运行部署向导的详细信息,请参阅部署文档以了解要还原的服务器角色。For details about running the Deployment Wizard, see the Deployment documentation for the server role that you are restoring.

  12. 执行以下操作以还原用户数据:Restore user data by performing the following:

    1. 将 ExportedUserData.zip 从 $Backup 复制 \ 到本地目录。Copy ExportedUserData.zip from $Backup\ to a local directory.

    2. 在还原用户数据之前,必须停止 Lync 服务。Before you restore the user data, you must stop Lync services. 为此,请键入:To do so, type:

      Stop-CsWindowsService
      
    3. 若要还原用户数据,请在命令行中键入:To restore the user data, at the command line, type:

      Import-CsUserData -PoolFqdn <Fqdn> -FileName <String>
      

      例如:For example:

      Import-CsUserData -PoolFqdn "atl0cs-001.litwareinc.com" -FileName "C:\Logs\ExportedUserDatal.zip"
      
    4. 通过键入以下命令重新启动 Lync 服务:Restart Lync services by typing:

      Start-CsWindowsService
      
  13. 将位置信息数据还原到中央管理存储。Restore Location Information data to the Central Management store. 在命令行中键入:At the command line, type:

    Import-CsLisConfiguration -FileName <LIS backup file name>
    

    例如:For example:

    Import-CsLisConfiguration -FileName "D:\E911Config.zip"
    
  14. 如果已在此池或 Standard Edition server 上部署响应组,请还原响应组配置数据。If you deployed Response Group on this pool or Standard Edition server, restore the Response Group configuration data. 有关详细信息,请参阅 在 Lync Server 2013 中还原响应组设置For details, see Restoring Response Group settings in Lync Server 2013.

  15. 如果要还原包括存档或监控数据库的后端服务器,请使用 SQL Server 管理工具(如 SQL Server Management Studio)还原存档或监视数据。If you are restoring a Back End Server that includes Archiving or Monitoring databases, restore the Archiving or Monitoring data by using a SQL Server management tool, such as SQL Server Management Studio. 有关详细信息,请参阅 在 Lync Server 2013 中还原监视或存档数据For details, see Restoring monitoring or archiving data in Lync Server 2013.