DFSR 事件 2213 表示 Windows 伺服器上的資料庫並未完全關閉

Summary: DFSR 錯誤 2213 可能會記錄在 Windows 伺服器上,該伺服器會代機使用分散式文件系統復寫 (DFSR) 複寫的資料夾。這包括在 Active Directory 網域控制器上找到的 SYSVOL 資料夾。本文提供基本問題及其解決方式的相關信息。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

受影響伺服器的 DFS 複寫事件記錄中出現 DFSR 錯誤 2213:
The DFS Replication service stopped replication on volume X:. This occurs when a DFSR JET database is not shut down cleanly and Auto Recovery is disabled. To resolve this issue, back up the files in the affected replicated folders, and then use the ResumeReplication WMI method to resume replication.

Recovery Steps
1. Back up the files in all replicated folders on the volume. Failure to do so may result in data loss due to unexpected conflict resolution during the recovery of the replicated folders.
2. To resume the replication for this volume, use the WMI method ResumeReplication of the DfsrVolumeConfig class. For example, from an elevated command prompt, type the following command:

wmic /namespace:\\root\microsoftdfs path dfsrVolumeConfig where volumeGuid="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" call ResumeReplication

錯誤訊息中的磁碟驅動器號和 GUID 視系統而定。

受影響的伺服器已無法再與合作夥伴一起參與 DFS 複寫。如果是網域控制器,便無法再複製 SYSVOL 數據,但仍可複製 Active Directory 數據。

Cause

此問題最常見的原因是操作系統意外關機。這種情況可能會因多種原因而發生,例如斷電、操作系統當機或硬體故障。如果 DFSR 服務意外停止,也可能發生此問題。

DFSR 使用可擴充儲存引擎 (ESE) 資料庫來儲存要復本的數據元數據。如果 DFSR 服務在尚未提交至此資料庫的元數據變更時停止,資料庫會進入「髒關」狀態。這表示資料庫中的元數據可能無法準確反映複本數據的狀態。下次 DFSR 服務啟動時,會偵測到此臟污關機,並記錄事件 2213。

Resolution

如上所示,事件 2213 的說明包含可執行的命令,以啟動復原程式:
wmic /namespace:\\root\microsoftdfs path dfsrVolumeConfig where volumeGuid="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" call ResumeReplication

此命令可從事件說明複製為原樣,並貼至提升的命令提示字元。(事件說明包含正確的磁碟區 GUID,而非上述 X。)

如果資料庫復原成功,命令的輸出包括下列專案:
{
	ReturnValue=0;
};

任何其他傳回值都表示某種錯誤,但這很少見。若要確認復原已成功,請查看受影響伺服器的 DFSR 事件記錄,以瞭解事件 2214:
The DFS Replication service successfully recovered from an unexpected shutdown on volume X:. This can occur if the service terminated abnormally (due to a power loss, for example) or an error occurred on the volume. No user action is required.

Affected Products

Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows 2008 Server R2, Microsoft Windows 2012 Server, Microsoft Windows 2012 Server R2
Article Properties
Article Number: 000208669
Article Type: Solution
Last Modified: 10 Dec 2024
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.