File Replication Server 2008 - not all files are replicated

Answered File Replication Server 2008 - not all files are replicated

  • Monday, January 26, 2009 11:19 AM
     
     

    Hi

    My file replication between two 2008 server doesn't replicate all files. I have a directory with .pdf files, some of

    the files are replicated, some not. All of them have the same rights, no anti  virus software is installed at the moment.

    If I make a status report, I got error messages that there is same sharing violence.  The files have no temporary attribute

    and they are not symbolic links.

     

    Any ideas?

    Best regards,

    Peter

All Replies

  • Monday, January 26, 2009 2:18 PM
     
     

    Hi Peter,

    Do you use DFS replication to replicate the files?

    Can you check if the .pdf file was configured in the filer type in the DFS replication scheduler?

    Could you please post the error message of the report so that we can help you out?

    Thanks and regards,
    Scorprio


    MCTS, MCITP:Enterprise Admin
  • Monday, January 26, 2009 3:02 PM
     
     

    Hi

    I use DFS (RFS) the Windows 2008 integrated service.

    There is no filter configured, alle file types (except .bak and .tmp) are replicated.

    I just can post the German error log, or try to translate!

    "I get an error  like: DFS-Service was not allowed to collect directory information becaue of sharing violence for the directory."

    It is strange, because as already mentioned, most of the files were replicated, but some even not. ...all files are .pdf Files.

    and another error message:

    "Some files were not replicated, because of temporary attribute or symbolic link.

    Best Regards

  • Monday, January 26, 2009 3:37 PM
     
     
    see: Event-ID: 4312, 4302 and 11004
  • Tuesday, January 27, 2009 9:07 AM
     
     Answered

    OK, problem seems to be solved.

    It was because of temporary flag, which was not visible in file properties.

    after delete the flag, files are replicated.

     

    Best Regards.

    • Marked As Answer by phoenigs Tuesday, January 27, 2009 9:08 AM
    •  
  • Monday, May 17, 2010 9:37 AM
     
     

    Morning Phoenigs

     

    Just wondering if you could explain your resolution, im having the same issue with two Server 2008 R2 machine, seems some files just wont replicate but some do in the same folder, it is really starting to bug me.

    Any help would be greatly appreciated

     

    Thanks

    Phil


    P Bailey
  • Wednesday, April 06, 2011 6:03 AM
     
     

    Hello Phoenigs

    Im facing the same issue with 2 server 2008 R2 machine, some files are not replicating.

    DFS report gives error "Some files were not replicated, because of temporary attribute or symbolic link.

    could you please provide the resolution in detail. how to delete the flag?

    Looking for your reply..

    Regards

    Yuvi

     

     

  • Wednesday, April 06, 2011 6:27 AM
     
     

    Hi

    I installed a software called "TCC LE 9.0", it's like a DOS prompt.

    Then you can use the "attrib" command like this: attrib -T ....    delets the temporary flag.

    Let me know if it helps.

    Best Regards.

    Peter

  • Wednesday, April 06, 2011 6:43 AM
     
     

    Hi Peter

    Thanks for your swift response..

    This seems to be non MS product, my security team will not allow me to install since the servers are in production.

    Is there any other alternate way..

    Regards

    Yuvi

  • Wednesday, April 06, 2011 6:47 AM
     
     

    Hi

    I don't know if "attrib" which is a MS DOS command is included in Windows Server 2008. Maybe it is a feature of PowerShell.

    Regards.

    Peter

  • Wednesday, April 06, 2011 6:52 AM
     
     Proposed

    Hi Peter

    Thanks for your swift response..

    This seems to be non MS product, my security team will not allow me to install since the servers are in production.

    Is there any other alternate way..

    Regards

    Yuvi


    Hi Yuvi,

    You may try setting the file attribute (remove Temporary attribute from file) by using Windows PowerShell.  (I found this inside of the blog that was reference earlier in the thread...maybe there is an easier way but this way worked).

    PS D:\temp> $a = get-childitem myfile.pdf
    PS D:\temp> $a.attributes
    Archive, Temporary
    PS D:\temp> $a.attributes = ($a.attributes -band 0xFEFF)
    PS D:\temp> $a.attributes
    Archive
    PS D:\temp>
    PS D:\temp> fsutil usn readdata myfile.pdf

    Major Version    : 0x2
    Minor Version    : 0x0
    FileRef#         : 0x011d00000000bc6e
    Parent FileRef#  : 0x0001000000000027
    Usn              : 0x0000000000000000
    Time Stamp       : 0x0000000000000000 12:00:00 AM 1/1/1601
    Reason           : 0x0
    Source Info      : 0x0
    Security Id      : 0x0
    File Attributes  : 0x20
    File Name Length : 0x14
    File Name Offset : 0x3c
    FileName         : myfile.pdf
    PS D:\temp>

    Once you remove the file attribute Temporary from the file and dropped the file back into DFS folder...it worked.  The file should replicate properly. 

    Hope it helps.

    Scorpio


    TechNet Software Assurance Managed Newsgroup | MCTS: Windows Vista | Exchange Server 2007 MCITP: Enterprise Support Technician | Server & Enterprise Administrator | Microsoft Infrastructure Consultant | Solution Architect
    • Proposed As Answer by Scorpio_MiloMVP Wednesday, April 06, 2011 6:54 AM
    •  
  • Wednesday, April 06, 2011 7:25 AM
     
     

    Hello Scorpio

    Thanks and This helps me little ... but i have nearly 300 files difference between the 2 servers...

    How can i manage this for all the missing files... Please advise

    Looking for your reply..

    Yuvi

     

  • Wednesday, April 06, 2011 7:30 AM
     
     Proposed

    Hi Yuvi,

    I am afraid that you may need to write a script or code for this multiple file task.


    TechNet Software Assurance Managed Newsgroup | MCTS: Windows Vista | Exchange Server 2007 MCITP: Enterprise Support Technician | Server & Enterprise Administrator | Microsoft Infrastructure Consultant | Solution Architect
    • Proposed As Answer by jassadah Thursday, April 07, 2011 11:18 AM
    •  
  • Thursday, April 14, 2011 11:52 AM
     
     

    Hello Scorpio

    We have executed the below powershel command for flag file clearing

    "get-childitem Z:\Share1$ -Recurse | ForEach-Object -Process {if (($_.attributes -band 0x100) -eq 0x100) {$_.attributes = ($_.attributes -band 0xFEFF)}}"

    we have many folders and file that are confidential dont have administrator rights, when we execute the above command we are getting access denied and the flag file type is not changing.

    Is there any other option to execute the command for all the folders.

    Yuvi