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:
错误消息中的驱动器盘符和 GUID 依赖于系统。
受影响的服务器不能再与其合作伙伴一起参与 DFS 复制。如果它是域控制器,则不再复制 SYSVOL 数据,但仍可复制 Active Directory 数据。
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。
DFSR 使用可扩展存储引擎 (ESE) 数据库存储要复制的数据的元数据。如果在尚未提交到此数据库的元数据发生更改时 DFSR 服务停止,则数据库将进入“脏关机”状态。这表示数据库中的元数据可能无法准确反映复制数据的状态。下次 DFSR 服务启动时,将检测到此脏关机,并记录事件 2213。
Resolution
如上所示,事件 2213 的描述包括可运行以启动恢复过程的命令:
此命令可以从事件描述中按原样复制,并粘贴到提升的命令提示符中。(事件描述包含正确的卷 GUID,而不是上面所示的 X。)
如果数据库恢复成功,则命令的输出包括以下内容:
任何其他返回值都表示某种错误,但这很少见。要确认恢复已成功,请检查受影响服务器的 DFSR 事件日志以了解事件 2214:
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 R2Article 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.