Sunday, July 27, 2014

How to Set Up DFS Replication in Windows Server 2012 R2


DFS Replication is an effective way to replicate data between servers across a room or on the other side of the world. DFS Replication uses remote differential compression (RDC) to replicate only the changes in a file on a block by block basis instead of replicating the entire file. Consequently, replication is very efficient even across limited bandwidth connections.

Before setting up replication between servers, the DFS Replication roles need to be installed on each server that is going to participate in the replication group.

Installing the DFS Replication Role

Open Server Manger by clicking on the Server Manager icon on the task bar


On the Welcome Tile, under Quick Start, click on Add roles and features to start the Add Roles and Features Wizard. If there's no Welcome Tile, it might be hidden. Click View on the menu bar and click Show Welcome Tile.


Read and click Next.


Select Roll-based or feature-based installation and click Next.


Select Select a server from the server pool and select the server on which you want to install DFS Replication. Click Next.


Under Roles, expand File and Storage Services, expand File and iSCSI Services, select DFS Replication and click Next.

If you have not already installed the features required for DFS Replication, the following box will pop up explaining which features and roles will be installed along with DFS Replication.


Click Add Features.


Back to the Select server roles dialog. It should now show DFS Replication as checked along with the other roles required for DFS Replication. If everything looks ok, click Next.


The Select features dialog shows the features that will be added along with the DFS Replication role. Click Next.


Review and confirm what's being installed and click Install.


Click Close when the installation completes.

Now that the DFS Replication role is installed, we can set up replication.


Configuring Replication Between Two Servers

Go to the start menu.


Click on Administrative Tools.


Double click DFS Management to launch the DFS Management management console.



Right click on Replication in the left pane of the DFS Replication management console.


Select New Replication Group to launch the New Replication Group Wizard.


Click the Replication group for data collection radio button and click Next.


Enter a descriptive and unique name in the Name of replication group text box. By default the Domain box contains the domain name of the server you're working with. Enter a different domain name if necessary.


Enter the name of the server containing the data you wish to replicate in the Name text box and click Next.


Click Add to define the folders that contain the data you want to replicate.


Enter or browse to the path of a folder to replicate in the Local path of folder to replicate text box. You can enter a custom name to represent the folder or leave it set as the default. Click OK.


The folder just added should be in the Replicated folders box. Click Add to add more folders to replicate (folders can be added later). When all the folders are added, click Next.


Enter the name of the server that will be the target for the replicated data. Servers in replication groups must be in the same Active Directory domain. Click Next.


Enter or browse to the path on the destination server where the replicated data is to reside in the Target folder text box. Verify the replication flow in the Source and target locations box and click Next.


There are two methods of bandwidth utilization that DFS Replication can use.

The first is continuous replication. Where replication takes place 24/7. The amount of bandwidth that replication consumes can bet set to full or one of few selections.

The second method is to schedule replication. Scheduled replication can be set to not replicate data during certain times and/or days of the week or at full or limited bandwidths. Replication can be set to replicate at a lower bandwidth during business hours, when network utilization is high, and full bandwidth at night and weekends for example.

Replication bandwidth tuning can be broad with continuous replication or finely tuned by scheduling. It should not be needlessly complex. Try and keep it as simple as possible and only as complex as needed.

Once the replication bandwidth is set, click Next.


Review the replication group settings and click Create.


Read the dialog about replication delay and click OK.


Back in the DFS Management management console we see the newly created replication group. Replication will begin once the changes have been pushed to all the servers. Eventually, depending on bandwidth, etc., data will start showing up in the target folder on the destination server. Enjoy!

31 comments:

  1. Thanks for that information. I tested this in my lab and am trying to determine what role AD plays in this. After creating the Replication Group I found that it creates the following objects in AD:
    /System/DFSR-GlobalSettings//Content

    /System/DFSR-GlobalSettings//Topology

    What role do these play in the replication group from a supportability perspective? I am trying to determine any type of troubleshooting required that involves those objects? Thank you.

    ReplyDelete
  2. Hi, Thanks for the steps.
    Couple of questions,

    a) Is there any possible to force a Full Sync from One server to the other server ?
    b) What happens if we we keep the connection status from remote/second server to the main/first server disabled and then few files got deleted from the second server ?

    ReplyDelete
  3. could you please tell pe how to add different servers to the same active directory ???!!!!

    ReplyDelete
    Replies
    1. Promote the servers as backups in the same forest in case you never found your answer

      Delete
  4. Excellent and clear to understand.

    ReplyDelete
  5. thank you so much! first DFS just worked!

    ReplyDelete
  6. Very Help full clear and right to the point i give all stars ;-)Just follow instructions and it works. TU

    ReplyDelete
  7. its very good technical inputs for beginners to understand easily.

    ReplyDelete
  8. Very nice blog and articles. I am realy very happy to visit your blog. Now I am found which I actually want. I check your blog everyday and try to learn something from your blog. Thank you and waiting for your new post.

    Data Science Course

    ReplyDelete
  9. I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job !

    Data Science Training

    ReplyDelete
  10. I found a great article here.I are certain to become straight back. I only added your website on my own bookmark websites. thanks. Quality articles could be your vital to encourage the traffic to see the internet page, so which is exactly what this internet site is currently providing.
    Learn PMP training in Hyderabad

    ReplyDelete
  11. Fantastic blog with top quality information found very valuable thanks for sharing.
    Data Science Training in Hyderabad

    ReplyDelete
  12. I will very much appreciate the writer's choice for choosing this excellent article suitable for my topic. Here is a detailed description of the topic of the article that helped me the most.
    unindent does not match any outer indentation level

    ReplyDelete
  13. I'm glad I found this blog! Occasionally, students want to know the keys to writing productive literary essays. Your first-class knowledge of this great job can become a suitable foundation for these people. Good
    unindent does not match any outer indentation level python

    ReplyDelete
  14. I am a new user of this site, so here I saw several articles and posts published on this site, I am more interested in some of them, hope you will provide more information on these topics in your next articles. PMP Certification in Hyderabad

    ReplyDelete
  15. Amazing article with very informative information found very useful and enjoyed reading it thanks for sharing.
    Data Analytics Course Online

    ReplyDelete
  16. On this site https://soclikes.com/ I always buy youtube views for my video. And advise you to make video tutorial and buy yutube views too

    ReplyDelete
  17. Really impressed! Everything is a very open and very clear clarification of the issues. It contains true facts. Your website is very valuable. Thanks for sharing.

    Business Analytics Course in Bangalore

    ReplyDelete
  18. This post is great. I really admire your post. Your post was awesome. data science course in Hyderabad

    ReplyDelete
  19. Thank you so much for shearing this type of post.
    This is very much helpful for me. Keep up for this type of good post.
    please visit us below
    data science training in Hyderabad

    ReplyDelete

  20. I finally found a great article here. I just added your blog to my bookmarking thank you.
    Data Science Course in Bangalore

    ReplyDelete
  21. Top quality blog with unique content and information shared was valuable looking forward for next updated thank you
    Ethical Hacking Course in Bangalore

    ReplyDelete