在 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 Server。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 中還原 Enterprise Edition 後端伺服器還原 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-鏡像中還原鏡像的 Enterprise Edition 後端伺服器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 中還原 Enterprise Edition 成員伺服器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 管理命令介面]。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. 如果您要還原的 Enterprise Edition 後端伺服器也是主控 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.

    提示

    您可以使用 Install-CsDatabase Cmdlet 來建立每個資料庫,並使用 Install-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-CsDatabaseInstall-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.