Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have 2 sets of data in separate sites that are mirrors of each other. The 2nd set is a clone of the 1st set. However, the 1st set will be the live data and therefore will be changing going forward. We need to setup DFS between the two, with the second set acting as a receive only. This is fine, we can do that. My query is, when I initiate DFS, is it going to try and re-copy everything over again, or will it realise that most stuff already exists and is the same and therefore no need to copy / change it? Thanks

share|improve this question

1 Answer 1

up vote 3 down vote accepted

If your data truly IS identical, it will not. If you have slight differences, it will. DFS calculates a hash of the file to determine if replication needs to occur.

You can use the dfsrdiag tool to check a few files on either side to determine if they calculate the same hash. If they both come out to have the same hash, then DFS will not try to re-copy the data over. Keep in mind that since it uses a hash, things like security permissions and last access times, etc will all be included in that calculation.

E.g.

dfsrdiag filehash /path:"\\server1\file.txt"

File Hash: CEA2C36A-266B5774-3557A3F4-E735EFE1

Operation Succeeded


dfsrdiag filehash /path:"\\server2\file.txt"

File Hash: CEA2C36A-266B5774-3557A3F4-E735EFE1

Operation Succeeded

In this example both files came out with the same hash so they are truly identical.

share|improve this answer
    
Great - that's the info I needed and DFSRDIAG should allow me to confirm. Thanks. –  Kip Oct 9 '12 at 14:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.