Fix DFS Replication Problems

1. Remove failed server from Replication Group
2. Right-click “System Volume Information” >> Properties >> Security tab >> Grant Domain Admins full control of “System Volume Information”
3. Run CMD as Administrator >> navigate to “System Volume Information” >> mkdir empty >> robocopy empty DFSR /mir >> rmdir DFSR >> rmdir empty
4. Restart DFSR Service. If it comes stuck in “stopping” stage run the follow commands as Administrator:
sc queryex dfsr  ==> copy the PID from the result
taskkill /f /pid [PID]
5. Recreate Replication connections – remember to set staging folder sizes to exceed actual folder sizes!
6. Check DFS status on each member server
CMD as Administrator >> wmic /namespace:\\root\microsoftdfs path dfsrreplicatedfolderinfo get replicationgroupname, replicatedfoldername, state
State values are:
0: Uninitialized
1: Initialized
2: Initial Sync
3: Auto Recovery
4: Normal
5: In Error
7. Monitor DFS with additional Cmdlets: https://technet.microsoft.com/en-us/library/Dn296591.aspx
 
 
Alternative solution:
Run a batch file with one of these lines:
ROBOCOPY D:\ \\SRVI-FILE02\D$ /E /R:0 /NP /XD “$RECYCLE.BIN” “System Volume Information” “RECYCLER”
ROBOCOPY D:\ \\SRVI-FILE02\D$ /MIR /XD “$RECYCLE.BIN” “System Volume Information” “RECYCLER”
emcopy  D:\ \\SRVI-FILE02\D$ /o /s /d /q /secfix /purge /stream /c /r:0 /w:0 /xd “$RECYCLE.BIN” “System Volume Information” “RECYCLER” /log:c:\copylog.txt
emcopy  D:\ \\SRVI-FILE02\D$ /o /secfix /sd /s /q /d /purge /stream /c /r:0 /w:0 /xjd /xd “$RECYCLE.BIN” “System Volume Information” “RECYCLER” /log:c:\copylog.txt

Leave a Reply

Your email address will not be published. Required fields are marked *