DFS Replication RRS feed

  • Question

  • Dear All,

    We have setup DFS replication between 2 server, replication group for data collection as we want to replicate our file server data to DR site. Now when intiail sync is done we are facing below challange:

    1. The no. of folder on source server (branch) is more then target (hub)

    2. The no. of files on source server is more than target

    Note: We are checking above by going to the respective folder and clicking on the properties of same which whows the no. of files and folder, ofcource exclusding dfsprivate.

    Can someone help us to understand why this difference is there? If we generate the DFS diagnostic report, then the no. of file/folder in replicted folder are matching.

    Please help!!!!!!

    Tuesday, March 13, 2012 8:12 AM

All replies

  • HI,

    Can someone help here please?


    Thursday, March 15, 2012 10:18 AM
  • Have you tried running some dif checking software to see if that highlights the changes.. Theres plenty of freeware out there that will do the job. I've just installed diffdaff on my windows 7 x64 machine and pointed it at 2 mapped DFS shares. Once you know what the difs are that might lead you onto the next step.
    Thursday, March 15, 2012 3:24 PM
  • Hi Matt,

    Thanks for the reply. We didnt checked the difference but we tried with double take availability software for replication and there count is matching. Not sure may be DFS is yet to mature as replication s/w..

    Saturday, March 17, 2012 9:26 AM
  • DFS is pretty good technology and works very well provided its configured correctly. There could be multiple different reasons why  DFS replication is failing between 2 servers. 

    With limited information its hard to predict the things.

    I would suggest you to go through similar threads and see if they help in your case. 





    This posting is provided "AS IS" with no warranties or guarantees and confers no rights.

    Most of the downtime's are caused because of SysAdmin's curiosity ! - Santosh

    Saturday, March 17, 2012 10:11 AM
  • Hi,

    Though the number of files and folders are not same, please still test to create a new file (like a txt file) and see if it could be still replicated. If so then the replication is still working, so we may need to find out the root cause.

    First, Please see this article about "temp file will not be replicated", which may be a possible cause:


    Meanwhile, for initial replication, actually it is recommanded to use a tool like robocopy instead of waiting for DFSR.

    Also large files may not be replicated if staging folder is not large enough. You could also have a check.

    In addition, the following article provided some general issues related to DFSR:


    TechNet Subscriber Support in forum |If you have any feedback on our support, please contact tnmff@microsoft.com.

    Monday, March 19, 2012 7:03 AM
  • Hi Santosh/Shaon,

    Thanks for replying. We are ready to accept that some temp file will not be replicated, so difference in no. of files not that critical but why there is difference in no. of folders? Also when we replicate the same with Double Take Avaialbility replication software, the folder and file difference was not there. This is what is making us loose confidence in DFSR. I was just thinking of something from someone which can tell reasons why the difference in no. of folders from source to target and why that differnce vanish when we used double take. Also the DFSR diagnostic report doesnt show any backup and report the no. of files and folders on source and target as same, which is in case of folder is higher as per actual, e.g. report says 16044 folder whereas if we go and see the property of folder it shows 16005 folder.

    Hope someone have the answer. Also can someone let me know how to find the latest version of DFSR.exe which i should have on my servers..


    Monday, March 19, 2012 7:46 AM
  • ROBOCOPY can compare the files and folders for you and produce a list of differences...

    Lastest version of DFS is here:


    • Edited by rt3465345 Monday, March 26, 2012 12:31 AM
    • Proposed as answer by rt3465345 Tuesday, March 27, 2012 8:13 PM
    Monday, March 26, 2012 12:29 AM
  • My experience with circa 30TB of data replicated through DFS shows some ideas to you

    Problem roots -- not the same number of files:

    1. Staging Quota to small (this can generate many conflicts, file count differences, permissions broken on other side, etc) put a large (really large) Staging Quota when performing the Initial Sync (the same size from the data is perfect, 50% at least, depending the size of the files --> many small files, you can put a smaller Staging Quota, few big files, put a big Staging Quota).

    2. Temp Files: per default DFS excludes some tmp file extensions. If these extensions are important for you you can remove them in the DFS Repl group properties.

    3. Deep paths: I had problems with very deep paths that were not replicated properly.

    Problem roots -- not the same number of folders:

    1. Staging Quota (see above)

    2. Permissions - sometimes the folders are there, but for some reason, even permissions being right, just by script I could get the exact number of folders.


    Next Steps: I am attaching one of mine scripts, this script gets the folder name, number of folders and number of files on each folder in the volume or path informed. Run it on both folders and see what comes out. Run it on a Administrative Powershell

    # Get-Numbers.ps1
    function Get-Numbers
    	# Get Files
    	$files = ls -Path $path -Recurse | ?{ $_.Mode[0] -ne "d" }
    	# Get Folders
    	$folders = ls -Path $path -Recurse | ?{ $_.Mode[0] -eq "d" }
    	$obj = New-Object System.Object
    	$obj | Add-Member -type NoteProperty -Name Path -Value $path
    	$obj | Add-Member -type NoteProperty -Name Files -Value $files.count
    	$obj | Add-Member -type NoteProperty -Name Folders -Value $folders.count
    	return $obj
    # Get top level sub directories
    $folders = dir -Path $path | ?{$_.psIsContainer -eq $true} | ForEach-Object { $_.FullName }
    $numbers = @()
    foreach ($path in $folders)
    	$numbers += Get-Numbers -path $path
    $numbers > .\list.txt


    Thank you,

    F. Schubert
    System Administrator

    MCP | Microsoft Certified Professional
    MCTS 70-640 | Microsoft Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
    MCTS 70-642 | Microsoft Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration

    Tuesday, April 24, 2012 6:28 PM