分散式快取主機可能會導致快取可靠性問題 (SharePoint Server)This Distributed Cache host may cause cache reliability problems (SharePoint Server)

摘要: 了解如何在 SharePoint Server 2016 和 SharePoint 2013 中解決 SharePoint Health Analyzer 規則「此分散式快取主機可能會造成快取可靠性問題」。Summary: Learn how to resolve the SharePoint Health Analyzer rule "This Distributed Cache host may cause cache reliability problems", in SharePoint Server 2016 and SharePoint 2013.

規則名稱: 分散式快取主機可能會導致快取可靠性問題。Rule Name: This Distributed Cache host may cause cache reliability problems.

摘要: 此快取主機上的分散式快取服務已停止,但尚未從伺服器陣列中取消登錄。為了避免發生可靠性問題,我們建議您在伺服器上啟動分散式快取服務,或從快取叢集中移除快取主機。Summary: The Distributed Cache service on this cache host has been stopped but has not been unregistered from the farm. To avoid reliability issues, we recommend that you either start the Distributed Cache service on the server, or remove the cache host from the cache cluster.

原因: 此分散式快取主機上的分散式快取服務已停止,但尚未從伺服器陣列中取消登錄。Cause: The Distributed Cache service on this Distributed Cache host has been stopped but not unregistered from the farm.

解決方案: 使用 Microsoft PowerShell 在伺服器上啟動分散式快取服務。Resolution: Start the Distributed Cache service on the server by using Microsoft PowerShell.

  1. 確認您具備下列成員身分:Verify that you have the following memberships:

    • SQL Server 執行個體上的 securityadmin 固定伺服器角色。securityadmin fixed server role on the SQL Server instance.

    • 所有要更新之資料庫上的 db_owner 固定資料庫角色。db_owner fixed database role on all databases that are to be updated.

    • 正在執行 PowerShell Cmdlet 之所在伺服器上的系統管理員群組。Administrators group on the server on which you are running the PowerShell cmdlets.

    • 伺服器陣列管理員群組。Farm Administrators group.

      系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server Cmdlet 的權限。An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets.

      注意

      如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。如需 PowerShell 權限的其他資訊,請參閱 Add-SPShellAdminIf you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about PowerShell permissions, see Add-SPShellAdmin.

  2. 啟動 SharePoint 管理命令介面。Start the SharePoint Management Shell.

  3. 在想要啟動分散式快取服務的伺服器上,於 PowerShell 命令提示字元處輸入下列命令:On the server on which you want to start the Distributed Cache service, type the following command at the PowerShell command prompt:

    Add-SPDistributedCacheServiceInstance
    
  4. 在 SharePoint 管理中心網站上,按一下 [應用程式管理]*。在 [服務應用程式]* 區段中按一下 [管理伺服器上的服務]*In the SharePoint Central Administration website, click *Application Management. In the Service Applications section, click Manage services on server.

  5. 在 [伺服器上的服務]**** 頁面上,確認已列出分散式快取服務,且狀態為 [已啟動]*On the *Services on Server page, verify that the Distributed Cache service is listed and the status is Started.

解決方案: 使用 Windows PowerShell,從快取叢集移除快取主機。Resolution: Remove the cache host from the cache cluster by using Windows PowerShell.

  1. 確認您具備下列成員身分:Verify that you have the following memberships:

    • SQL Server 執行個體上的 securityadmin 固定伺服器角色。securityadmin fixed server role on the SQL Server instance.

    • 所有要更新之資料庫上的 db_owner 固定資料庫角色。db_owner fixed database role on all databases that are to be updated.

    • 正在執行 PowerShell Cmdlet 之所在伺服器上的系統管理員群組。Administrators group on the server on which you are running the PowerShell cmdlets.

    • 伺服器陣列管理員群組。Farm Administrators group.

      系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server Cmdlet 的權限。An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets.

      注意

      如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。如需 PowerShell 權限的其他資訊,請參閱 Add-SPShellAdminIf you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about PowerShell permissions, see Add-SPShellAdmin.

  2. 啟動 SharePoint 管理命令介面。Start the SharePoint Management Shell.

  3. 在 PowerShell 命令提示字元處,輸入下列命令:Type the following command at the PowerShell command prompt:

    Remove-SPDistributedCacheServiceInstance
    

    注意

    此命令會停止快取服務,而非留存的快取資料將會遺失。如果您想要保存快取資料,請使用在 SharePoint Server 中管理分散式快取服務說明的正常關機程序,然後執行 Remove-SPDistributedCacheServiceInstance Cmdlet。Remove-SPDistributedCacheServiceInstance Cmdlet 會停止並停用基礎 AppFabric 快取服務。請勿使用執行 Add-SPDistributedCacheServiceInstance Cmdlet 以外的方式來重新啟動 AppFabric 快取服務。This command stops the cache service and nonpersisted cached data will be lost. If you want to keep the cached data, use the graceful shutdown procedure that is described in Manage the Distributed Cache service in SharePoint Server, and then run the Remove-SPDistributedCacheServiceInstance cmdlet. The Remove-SPDistributedCacheServiceInstance cmdlet involves stopping and disabling the underlying AppFabric Caching service. Do not restart the AppFabric Caching service other than by running the Add-SPDistributedCacheServiceInstance cmdlet.

    如需詳細資訊,請參閱 Remove-SPDistributedCacheServiceInstanceFor more information, see Remove-SPDistributedCacheServiceInstance.

  4. 確認從快取叢集移除伺服器。若要執行這項操作,請在管理中心中按一下 [管理伺服器上的服務]*,然後確定 [伺服器上的服務]* 頁面未列出分散式快取服務。Verify that the server is removed from the cache cluster. To do this, in CentralAdmin_2nd, click Manage services on server, and then, on the Services on Server page, make sure that the Distributed Cache service is not listed.

另請參閱See also

概念Concepts

規劃 SharePoint Server 中的摘要和分散式快取服務Plan for feeds and the Distributed Cache service in SharePoint Server

其他資源Other Resources

規劃與使用分散式快取服務Planning and using the Distributed Cache service