Select the product you need help with
FRS Encounters "ERROR_SHARING_VIOLATION" Errors When It Tries to Replicate Data That Is Still in UseArticle ID: 822300 - View products that this article applies to. On This PageSYMPTOMSOn Distributed File System (DFS) replica members or on
domain controllers that are hosting a SYSVOL replica set, you may find an event
that is similar to the following in the File Replication service (FRS) area of
Event Viewer: Event Type: Warning CAUSEThis issue may occur for either of the following reasons:
RESOLUTIONTo resolve this issue, use one of the following methods. Method 1: Use the Install Override FeatureYou can use the Install Override feature in Windows Server 2003 to rename the locked file. This allows FRS to replicate the file. For additional information about how to turn on this feature and use it, click the following article number to view the article in the Microsoft Knowledge Base:816493
(http://support.microsoft.com/kb/816493/EN-US/
)
How to Configure the File Replication Service to Allow Fewer Sharing Violations That Block Replication
Method 2: Identify the Locked Files and Release the HandlesIf you are not using Windows Server 2003 or if you do not want to turn on the Install Override feature, the only way to prevent the issue from occurring is to release the handles of the locked files. However, because the 13573 event is only reported for the number of times per hour that is specified in the Max Sharing Violation Event setting, files in the same situation may not have been reported yet. Therefore, to release the handles of all locked files, you must first identify the complete set of open files.To track the problem in Windows 2000, download and install the fix that is documented in the following Microsoft Knowledge Base article: 815473 With this hotfix, you can set the options to control
the logging of event 13573. This hotfix does not contain the "Install Override
Feature" that Windows Server 2003 has.
(http://support.microsoft.com/kb/815473/
)
File Replication Service Does Not Log Errors on Sharing Violations
To identify the complete set of files in the INSTALL_RETRY state, run the ntfrsutl.exe inlog command, and then look for all file entries with a state that is marked IBCO_INSTALL_RETRY. To find out the full path of the file that is being held, follow these steps:
Find the Path of a File That Is Being Held OpenTo find the path of a file that is being held open, follow these steps:
After you determine which file is being held open, you can
use Process Explorer from Sysinternals to find out which process has the file
locked. To download Process Explorer, visit the following Sysinternals Web
site: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx To use Process Explorer, follow these steps:
(http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx)
The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products. If you determine that keeping this file open is the expected behavior for your environment, either disable logging of this event, or increase or decrease the number of reported events per hour. To do this, follow these steps to edit the designated registry subkeys. Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows
REFERENCES For additional
information, click the following article numbers to view the articles in the
Microsoft Knowledge Base: 284947
(http://support.microsoft.com/kb/284947/EN-US/
)
Antivirus Programs May Modify Security Descriptors and Cause Excessive Replication of FRS Data in Sysvol and DFS279156
(http://support.microsoft.com/kb/279156/
)
The Effects of Setting the File System Policy on a Disk Drive or Folder Replicated by the File Replication Service815263
(http://support.microsoft.com/kb/815263/
)
Antivirus, Backup, and Disk Optimization Programs That Are Compatible with the File Replication
ServicePropertiesArticle ID: 822300 - Last Review: December 3, 2007 - Revision: 7.6 APPLIES TO
| Article Translations |


Back to the top








