Article ID: 282791 - Last Review: December 3, 2007 - Revision: 6.7 FRS: Disk defragmentation causes excessive FRS replication trafficThis article was previously published under Q282791 On This PageSYMPTOMS When you use disk defragmentation utilities to optimize
logical drives that host File Replication service (FRS) replicated content, the
following symptoms may occur:
CAUSE In Windows 2000, the file system APIs that support
defragmentation use the file cache to do a mapped file write of the file data
to the new set of assigned disk clusters. Because a mapped file may not be
associated with any particular file handle, the NTFS journal code forces the
SourceInfo field in the USN record to zero. This behavior occurs because
defragmentation is an on-line operation (the volume is not locked) and the file
cache may actually contain modified data for a given byte range of the file if
a user was writing to the file while the defragmentation process was underway.
However, NTFS cannot tell that this operation has occurred. FSCTL_MARK_HANDLE
becomes a no-op. When you stop FRS while Diskkeeper is being run, NTFS still
writes the journal records and FRS reads them when it is later
restarted. In Windows Server 2003, NTFS no longer passes the data through the file cache and no USN records are generated. RESOLUTION You can use the FRS debug log files and the outbound log of
the FRS database to locate the source of FRS replicating files. To determine if
disk defragmentation utilities are causing excessive FRS replication traffic in
your environment, use either of the methods described in this section. Method One: Searching the FRS Debug LogsTo search the FRS debug logs to determine the reason for replication:
The "Content|ContentCmd" string in the FINDSTR output displays the change that took place for files on NTFS formatted partitions. The FINDSTR output for files replicated by disk defragmentation utilities have lines at the "[DatOvrWrt ]" or the [StrmOvrWrt] string. For example: d:\>FINDSTR /i "ContentCmd" ntfrs_00??.log ---------- D:\WINNT\DEBUG\NTFRS_0001.LOG <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd c0/ 0, 00000001 Flags [DatOvrWrt ] <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd c0/ 0, 00000001 Flags [StrmOvrWrt ] <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd c0/ 0, 00000001 Flags [DatOvrWrt ] <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd c0/ 0, 00000001 Flags [DatOvrWrt ] <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd c0/ 0, 00000001 Flags [DatOvrWrt ] <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd c0/ 0, 00000001 Flags [DatOvrWrt ] <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd c0/ 0, 00000001 Flags [StrmOvrWrt ] <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd c0/ 0, 00000001 Flags [DatOvrWrt ] <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd c0/ 0, 00000001 Flags [DatOvrWrt ] <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd c0/ 0, 00000001 Flags [DatOvrWrt ] <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd c0/ 0, 00000001 Flags [DatOvrWrt ] <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd c0/ 0, 00000001 Flags [DatOvrWrt ] <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd c0/ 0, 00000001 Flags [DatOvrWrt ] <ChgOrdRetryWorker: 648: 11585: S4: HH:MM:SS> ContentCmd
Close - Change log close record
Create - File or folder was created
Delete - File or folder was deleted
RenNew - File or folder was renamed
DatOvrWrt - Main file data stream was overwritten
DatExt - Main file data stream was extended
DatTrunc - Main file data stream was truncated
Info - Basic info change (attrib, last write time, etc.)
Oid - Object Id change
StreamNam - Alternate data stream name change
StrmOvrWrt - Alternate data stream was overwritten
StrmExt - Alternate data stream was extended
StrmTrunc - Alternate data stream was truncated
EAChg - Extended file attribute was changed
Security - File access permissions changes
IndexableChg - File change requires re-indexing.
HLink - Hardlink change
CompressChg - File commpression attribute changed
EncryptChg - File encryption changed
Reparse - Reparse point changed
221111
(http://support.microsoft.com/kb/221111/EN-US/
)
Description of FRS Entries in the Registry
Method Two: Searching the NTFRS Outbound LogTo search the NTFRS Outbound Log by using the Ntfrsutl (Ntfrsutl.exe) utility and Iologsum.cmd:
Workarounds to Excessive Replication by Disk Defragmentation UtilitiesTo prevent disk defragmentation problems from causing excessive replication of FRS files:
MORE INFORMATION FRS is a multiple-threaded, multiple-master replication
engine that replaces the LanMan Replication (LMREPL) service in Microsoft
Windows NT versions 3.x and 4.0. Windows 2000 domain controllers and servers
use FRS to replicate system policy and logon scripts for Windows 2000 and
down-level clients that reside in the SYSVOL. FRS can also replicate content between Windows 2000-based servers that host the same fault-tolerant DFS roots or child node replicas. FRS replicates files based on version changes or changes to permissions on files and replicated folders. APPLIES TO
| Article Translations
|
Back to the top
