The DFSR Diagnostics Report shows "sharing violations" events in Windows Server even though the files have already been replicated

Article translations Article translations
Article ID: 973836 - View products that this article applies to.
Expand all | Collapse all

Symptoms

When you run the Distributed File System Replication (DFSR) Diagnostics Report (DFSR Health Report) on a Windows Server 2008-based computer or on a Windows Server 2003-based computer, the report contains many entries for the following event:

WARNINGS (There is 1 warning to report)
One or more replicated folders have sharing violations.
Affected replicated folders: Data
Description: Due to ongoing sharing violations, DFS Replication cannot replicate files in the replicated folders listed above. This problem is affecting 3 files in 1 replicated folders.
Event ID: 4302
Last occurred: Dienstag, 12. Mai 2009 at 07:48:05 (GMT1:00)
Suggested action: Verify that the files you want to replicate are closed and have no open handles to them. For information about troubleshooting sharing violations, see The Microsoft Web Site

However, when you check the files on the replication partner, you find that the files have already been replicated.

Cause

This issue occurs in the current implementation of DFSR because no anti-events are triggered when the files are replicated. Therefore, the reporting state of the files remains as "sharing violated."

Workaround

To determine the real state of the file, use the DFSRDIAG BACKLOG command to check for sharing violations. The command output provides a list of the first 100 files that are not replicated.

More information

There two kinds of DFSR events for sharing violations: Event ID 4302 and Event ID 4304. The DFSR Diagnostics combines both kinds of events, and reports them only as "Event ID 4302."

The following information explains more about these two kinds of events.

Event ID 4302: A local sharing violation occurs when the service cannot receive an updated file because the local file is being used. This occurs on the "receive" side of the file change. The file is already replicated. However, it cannot be moved from the installing directory to the final destination.

Event ID 4304: The service cannot stage a file for replication because of a sharing violation. This occurs on the "send" side of the file change. DFSR wants to stage or copy the file for replication. However, an exclusive lock prevents this.

Properties

Article ID: 973836 - Last Review: June 21, 2014 - Revision: 2.0
Applies to
  • Windows Server 2008 Standard
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Datacenter without Hyper-V
  • Windows Server 2008 Enterprise without Hyper-V
  • Windows Server 2008 for Itanium-Based Systems
  • Windows Server 2008 Standard without Hyper-V
  • Microsoft Windows Server 2003 R2 Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003 R2 Standard x64 Edition
  • Microsoft Windows Server 2003 R2 Enterprise Edition (32-Bit x86)
  • Microsoft Windows Server 2003 R2 Enterprise x64 Edition
  • Microsoft Windows Server 2003 R2 Datacenter Edition (32-Bit x86)
  • Microsoft Windows Server 2003 R2 Datacenter x64 Edition
Keywords: 
kbtshoot kbexpertiseinter kbsurveynew kbprb KB973836

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com