To resolve this issue, use one of the following methods.
Method 1: Use the Install Override Feature
You 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 How to Configure the File Replication Service to Allow Fewer Sharing Violations That Block Replication
Method 2: Identify the Locked Files and Release the Handles
If 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 File Replication Service Does Not Log Errors on Sharing Violations
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.
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 out the file GUID from either the description of the event ID or from the inlog data that is retrieved. The inlog data will look similar to the following example:
Table Type : Inbound Log Table for DOMAIN SYSTEM VOLUME (SYSVOL SHARE) (1)
Flags : 010000c6 Flags [VVAct Content Retry InstallInc CmpresStage ]
IFlags : 00000001 Flags [IFlagVVRetireExec ]
State : 0000000d CO STATE: IBCO_INSTALL_RETRY
FileGuid : 36a42f7e-b3a9-494c-ae0cef2929771d6e
EventTime : Thu May 29, 2003 19:13:40
FileName : Filename.txt
- Convert the file GUID to a full path by using available tools or by parsing data from the IDTable entries. You can extract this data by using the ntfrsutl idtable command.
Find the Path of a File That Is Being Held Open
To find the path of a file that is being held open, follow these steps:
- Obtain FRSDiag.exe, and then run it. To obtain FRSDiag.exe, visit the following Microsoft Web site:
- Type the name of the target server that contains the error, or click Browse, and then locate the server.
- On the Selections menu, click
Uncheck All. - Click to select the IDTable Parser check box.
- Click Go.
A file that is named FRSDiag.txt under the %USERPROFILE%\Desktop\Logs folder is created. - Look up the file GUID and the file's date in FRSDiag.txt.