在 SharePoint Server 中管理已暫停的 Search Service 應用程式Manage a paused Search service application in SharePoint Server

摘要:了解 Search Service 應用程式的暫停原因以及在 SharePoint Server 2016 和 SharePoint Server 2013 中繼續執行它的方式。Summary: Learn why the Search service application is paused and what you can do to resume it in SharePoint Server 2016 and SharePoint Server 2013.

必須先完成大部分需要暫停 Search Service 應用程式的作業,Search Service 應用程式才會自動繼續。Most operations that require the Search service application to be paused have to complete before the Search service application automatically resumes.

我們將顯示如何發現是否暫停 Search Service 應用程式和其原因。有多個可暫停 Search Service 應用程式的原因;我們只列出最常見的狀況。We'll show you how you can find out if and why the Search service application is paused. There are many reasons why the Search service application can be paused -- we'll list only the most common situations.

管理已暫停的 Search Service 應用程式To manage a paused search service application

  1. 確認執行此程序的使用者帳戶是伺服器陣列管理員群組的成員。Verify that the user account that is performing this procedure is a member of the Farm Administrators group.

  2. 在伺服器陣列中的其一伺服器上啟動 SharePoint 管理命令介面。Start a SharePoint Management Shell on one of the servers in the farm.

  3. 在 Microsoft PowerShell 命令提示字元處,輸入下列命令以找出 Search Service 應用程式是否已暫停。At the Microsoft PowerShell command prompt, type the following command(s) to find out if the Search service application is paused.

    $ssa.IsPaused() -ne 0
    

    若此命令傳回 False,則 Search Service 應用程式正在執行。If this command returns False, the Search service application is running.

    如果此命令傳回 True,則 Search Service 應用程式已暫停。請移至步驟 4,了解原因以及您應該採取的動作。If this command returns True, the Search service application is paused. Go to step 4 to find out why, and what action you should take.

  4. 在 Microsoft PowerShell 命令提示字元處,輸入下列命令,直到找到 Search Service 應用程式暫停的原因。At the Microsoft PowerShell command prompt, type the following command(s) until you find the reason why the Search service application is paused.

命令Command 如果命令傳回 True,則 Search Service 應用程式已因此原因而暫停:If the command returns True, the Search service application is paused for this reason: 動作Action
($ssa.IsPaused() -band 0x01) -ne 0 編目元件或編目資料庫數目的變更正在進行中。A change in the number of crawl components or crawl databases is in progress. 等到拓撲變更完成。Wait until the topology change completes.
($ssa.IsPaused() -band 0x02) -ne 0 備份或還原程序正在進行中。A backup or restore procedure is in progress. 等到備份或還原完成。程序完成之後,請執行命令 $ssa.ForceResume(0x02) 進行驗證。如需詳細資訊,請參閱 在 SharePoint Server 中還原搜尋服務應用程式Wait until the backup or restore completes. After the procedure completes, run the command $ssa.ForceResume(0x02) to verify. For more information, see Restore Search service applications in SharePoint Server.
($ssa.IsPaused() -band 0x04) -ne 0 磁碟區陰影複製服務 (VSS) 的備份正在進行中。A backup of the Volume Shadow Copy Service (VSS) is in progress. 等到備份完成。VSS 備份完成之後,請執行命令 $ssa.ForceResume(0x02) 進行驗證。 Wait until the backup completes. After the VSS backup completes, run the command $ssa.ForceResume(0x02) to verify.
($ssa.IsPaused() -band 0x08) -ne 0 搜尋拓撲中裝載查詢元件的一或多部伺服器離線。One or more servers in the search topology that host query components are offline. 等到伺服器再次可供使用。Wait until the servers are available again.
($ssa.IsPaused() -band 0x20) -ne 0 正在重新平衡搜尋拓撲中的一或多個編目資料庫。One or more crawl databases in the search topology are being rebalanced. 等到作業完成。Wait until the operation completes.
($ssa.IsPaused() -band 0x40) -ne 0 正在重新平衡搜尋拓撲中的一或多個連結資料庫。One or more link databases in the search topology are being rebalanced. 等到作業完成。Wait until the operation completes.
($ssa.IsPaused() -band 0x80) -ne 0 管理員已手動暫停 Search Service 應用程式。An administrator has manually paused the Search service application. 如果您知道原因,則可以繼續 Search Service 應用程式。請執行命令 $ssa.resume() 來繼續 Search Service 應用程式。 If you know the reason, you can resume the Search service application. Run the command $ssa.resume() to resume the Search service application.

如果您不知道原因,請了解為何有人手動暫停 Search Service 應用程式。If you don't know the reason, find out why someone has manually paused the Search service application.
($ssa.IsPaused() -band 0x100) -ne 0 正在刪除搜尋索引。The search index is being deleted. 等到刪除搜尋索引。Wait until the search index is deleted.
($ssa.IsPaused() -band 0x200) -ne 0 正在重新分割搜尋索引。The search index is being repartitioned. 等到作業完成。如需詳細資訊,請參閱<在 SharePoint Server 中管理索引元件>。 Wait until the operation completes. For more information, see Manage the index component in SharePoint Server.

等到作業完成之後,請在 Microsoft PowerShell 命令提示字元處,輸入下列 命令,確定 Search Service 應用程式執行中:After you've waited until the operation completes, at the Microsoft PowerShell command prompt, type the following command to make sure that the Search service application is running:

$ssa.IsPaused() -ne 0

若此命令傳回 False,則 Search Service 應用程式正在執行。If this command returns False, the Search service application is running.

如果此命令傳回 True,則 Search Service 應用程式已暫停。請從步驟 4 重新執行命令來了解原因。If this command returns True, the Search service application is paused. Re-run the commands from step 4 to find out why.