Home | Site Map | Cisco How ToNet How To | Wireless |Search | Forums | Services | Donations | Careers | About Us | Contact Us|

DFS-A single file won't replicate

Active Directory, Domain, DNS, WINS, DHCP, SBS, New Releases.

DFS-A single file won't replicate

Postby guest » Thu Jul 29, 2010 12:11 pm

Hi there, I have a PDF file that just won't replicate.

I have two W2008 servers with replication turned on for a folder called Library with 84 files and 33 folders in it. I recently added a file to the Library folder and it won't replicate. The file is 2 MB large...I tried to renaming the file to a short name (mytest.pdf) and moving it to different folders underneath the library folder but it won't replicate. If I copy a different file to the Library folder, I can see that file replicate to the other server.

It seems that particular file just doesn't want to replicate. Any ideas why a single file won't replicate although other files in the same folder will replicate fine?

Event Log for DFS, Application and Setup doesn't show any errors or messages about DFS. The disk space is plenty on both servers.

Thanks in advance.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Re: DFS-A single file won't replicate

Postby guest » Thu Jul 29, 2010 12:11 pm

Hello,

Thanks for the reply.

To narrow down the issue, would you please create a new replication group which hold 2 replicated folders on both of the DFS member servers, and then run the following command line to test if the replication is normal?



Dfsrdiag propagationtest /RGName:<replication group name> /RFName:<replicated folder name> /TestFileName:test.xml /V > C:\replicationtest.txt



Please also create a diagnostic report on the new replication group to check if the if there is any error or warning message in it.



Create a diagnostic report for DFS Replication

http://technet.microsoft.com/en-us/library/cc778105.aspx



Please send the report to us via tfwst@microsoft.com

I appreciate your time and effort.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Re: DFS-A single file won't replicate

Postby guest » Thu Jul 29, 2010 12:12 pm

Hi Clay,

Thank you for sending us the information.

I perform a research on the Diagnostic report. Based on the report, I cannot found any error message or warning message on DFS replication between that 2 DFS member servers, and I can confirm with you that the DFS replication engine is healthy and normal.

However, for the issue you see, you may notice the files that cannot be replicated among DFS member servers are all with PDF file extension (mytest.pdf). Personally, I suspect that the PDF file has been set as File Filter on that replication group.

As we can prevent specific file types from replicating among DFS member servers by specifying a file filter in DFS management. If the PDF file has been set on the replication group, all of the PDF file cannot be replicated.

In this case, please check to verify what filters are configured, on the Properties dialog of a replicated folder, select the Replicated Folders tab, and then select the General Tab. You can view the file filter in the dialog box. By default, only ~*.*,*.bak, and *.tmp file types are filtered. In other words, if the *.PDF is also there, that means the PDF files is filtered out and cannot be replicated through this replication group.

If this is the key point, you may just remove the file filter in it, and wait for some while to test.

Hope this can be helpful.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Re: DFS-A single file won't replicate

Postby guest » Thu Jul 29, 2010 12:13 pm

Hi David, thanks for reviewing the data I sent.

Just a heads up.. I did not alter the file filter on the DFS Group. The test DFS Group I created was generic (I took all defaults)...Just for kicks, I copied another PDF file into the DFS enabled folder and it successfully replicated to the other folder.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Re: DFS-A single file won't replicate

Postby guest » Thu Jul 29, 2010 12:13 pm

Hello clay,

I'm glad to hear that the PDF files are successfully replicated.

If you have other question about file services and storage, please welcome to this forum.

Thanks again for using TechNet forum.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Re: DFS-A single file won't replicate

Postby guest » Thu Jul 29, 2010 12:13 pm

Hi David, sorry - I wasn't clear....

other PDF files are are replicating but one PDF file (mytest.pdf) still won't replicate.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Re: DFS-A single file won't replicate

Postby guest » Thu Jul 29, 2010 12:14 pm

Hi clay,

The issue seems to be unusual.

To troubleshoot the issue, please restart the DFS Replication service on both of the DFS members. Meanwhile, please try to reproduce the issue by putting the single PDF file in question to the local path.

And wait for some time to see if it is replicated, if it still doesn’t replicate to the other member, please collect the update DFSR debug log on your side.

For example, the update DFS debug log is Dfsr00015.log in the screenshot, you may send your update debug log to us so that we can check with it.


Thank you for your attention.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Re: DFS-A single file won't replicate

Postby guest » Thu Jul 29, 2010 12:15 pm

Hi David, I bounced the DFS Replication service and it is now working. I am able to replicate that file.

It was a strange one. That particular file, I copied to two different DFS replication folders that were in different domains and it didn't work.

Anyways, it appears to be working and I should be good to go.

Thanks for your assistance and sticking it out to the end.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Re: DFS-A single file won't replicate

Postby guest » Thu Jul 29, 2010 12:15 pm

Hi Clay,

Thanks for your reply.

Based on the DFS debug log analysis, I found there are several lines with the error information "The RPC server is too busy to complete this operation" and "There are no more endpoints available from the endpoint mapper". This indicates that the RPC was busy and the RPC endpoints were used up at that time. Because DFS Replication replicates information among DFS member server via RPC endpoints, if the endpoints were used up by some other services, the DFS replication could be failed, and the file cannot be propagated to the downstream partner.

+[Error:1723(0x6bb) DownstreamTransport::EstablishConnection downstreamtransport.cpp:3853 5860 W The RPC server is too busy to complete this operation.]

+[Error:1753(0x6d9) DownstreamTransport::EstablishConnection downstreamtransport.cpp:3853 5860 W There are no more endpoints available from the endpoint mapper.]

As you restarted DFS replication service, the service tried to rebuild the RPC endpoints for replication.

Thank you
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Re: DFS-A single file won't replicate

Postby guest » Thu Jul 29, 2010 12:16 pm

Hi clay,

I am sorry for my previous wrong idea.

To try to get the insight on what happen with this single file is not replicated, I performed a deep research on the DFS debug log you sent to me.

DFS debug log analysis:



20090903 15:11:57.395 3804 USNC 1244 UsnConsumer::ProcessUsnRecord Skipping USN_RECORD with FILE_ATTRIBUTE_TEMPORARY flag:

+ USN_RECORD:

+ RecordLength: 160

+ MajorVersion: 2

+ MinorVersion: 0

+ FileRefNumber: 0x300000000C39D

+ ParentFileRefNumber: 0x3000000004FA7

+ USN: 0x92e2568

+ TimeStamp: 20090903 15:11:57.379 Pacific Standard Time

+ Reason: Basic Info Change Close Data Extend Data Overwrite File Create Named Data Extend Named Data overwrite Stream Change

+ SourceInfo: 0x0

+ SecurityId: 0x0

+ FileAttributes: 0x120

+ FileNameLength: 100

+ FileNameOffset: 60

+ FileName: YY - XXXXXXXXXXXXXXXXXXXXXX.pdf



Please note: You can check the file is set as FileAttributes: 0x120

File Attributes is a bitmask that indicates which attributes on the File were set.

0x120 indicates the temporary attribute is set because that is 0x100 (TEMPORARY) and 0x20 (Archive) = 0x120.



Possible Root Cause:



Therefore, the possible cause of issue that single file is not replicated is because it is a temporary file. By design, DFSR does not replicate files if they have the temporary attribute set on them, and it cannot be configured to do so.



The reason DFSR does not replicate files with the temporary attribute set is that they are considered short-lived files that you would never actually want to replicate. Using the temporary attribute on a file keeps that file in memory and saves on disk I/O. Therefore applications can use it on short-lived files to improve performance.


Reference:



You may find more detailed explanation and solution to the issue from the following Directory Service team blog



DFSR Does Not Replicate Temporary Files

http://blogs.technet.com/askds/archive/2008/11/11/dfsr-does-not-replicate-temporary-files.aspx



Hope this can be clear for you. Thanks again for using the TechNet forum.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Re: DFS-A single file won't replicate

Postby guest » Thu Jul 29, 2010 12:16 pm

Hi David, thanks for the information. I was able to alter the file attribute (remove the Temporary file attribute) and that worked...I'm able to replicate the file now.

Here is what I did based on your previous message and the blog you reference.

(1) Looked at the file using FSUTIL utility and I see the File Attribute = 0x120

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 : 0x120
File Name Length : 0x14
File Name Offset : 0x3c
FileName : myfile.pdf
PS D:\temp>

(2) Set the file attribute (remove Temporary attribute from file) using 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 I removed the file attribute Temporary from the file and dropped the file back into DFS folder...it worked. The file will replicate now.

Thanks again for your assistance and sticking with it.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Re: DFS-A single file won't replicate

Postby guest » Thu Jul 29, 2010 12:17 pm

Hello clay,



I'm glad to hear that you have resolved the issue with the information.



Thank you also for the solution sharing, and I believe the other community members could be benefit from it.



If you have other question about Windows Server system, please welcome to the forum again.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Re: DFS-A single file won't replicate

Postby guest » Thu Jul 29, 2010 12:17 pm

This may explain the situation I face with a network share, which I just try to migrate from one server to another "abusing" DFS. The target directory is missing more than 10000 files from around 800000 - no chance to check them all and perform a manually fix of file attributes.
I also wonder, why I never before did hear about this attribute (the attrib command in Windows Server 2008R2 also did not) and why there is no documented easy way to handle this.
Best greetings from Germany
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm


Return to Windows

Your Ad Here

Who is online

Users browsing this forum: No registered users and 12 guests