Taiwan CSS Platform Team

Your Potential, Our Passion.

DFS無法複製特定檔案

DFS無法複製特定檔案

  • Comments 1
  • Likes

問題:在特定DFS Server上無法複製

收集 fsutil USN readdata <Filelocation> > result.txt

Findings
======

Major Version    : 0x2
Minor Version    : 0x0
FileRef#         : 0x000c00000001425a
Parent FileRef#  : 0x00a8000000006575
Usn              : 0x0000000146be00a0
Time Stamp       : 0x0000000000000000 12:00:00 AM 1/1/1601
Reason           : 0x0
Source Info      : 0x0
Security Id      : 0x1675
File Attributes  : 0x120
File Name Length : 0x62
File Name Offset : 0x3c

Regarding MSDN: http://msdn.microsoft.com/en-us/library/aa365535(VS.85).aspx
The Flag of FILE_ATTRIBUTE_TEMPORARY is set, 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.

An application can use FILE_ATTRIBUTE_TEMPORARY when calling the CreateFile function if they want a temporary file.

Solution
======
Create a new doc file then copy the content to the new file

Reference
========
DFSR Does Not Replicate Temporary Files
http://blogs.technet.com/askds/archive/2008/11/11/dfsr-does-not-replicate-temporary-files.aspx

Comments
  • In the Value data box, type the numeric value that you want, and then click OK. For example, type 2.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment