Installing and Deploying DFS with Replication

Intro

We will discuss here about how to install and configure a complete DFS architecture. I will stay simple, as I will only use two DFS servers.

The goal here is to provide High Availability for the Network Shares.

Indeed, in case that one of the two servers should fail the second would take over seamlessly.

Network diagram

Windows Sever | Network Diagram of a DFS Architecture

Installing DFS role (SRV01 and SRV02)

We need to install DFS roles on both server, we could do it with Graphical User Interface way or via PowerShell.

PowerShell

PS C:\Users\administrator.STD> Install-WindowsFeature "FS-DFS-Namespace","FS-DFS-Replication" -IncludeManagementTools

GUI

Windows Server | Server manager dashboard, Add Roles and Features Add Roles and Features | Select installation type Add Roles and Features | Select destination server Add Roles and Features | Select dfs roles Add Roles and Features | Select features Add Roles and Features | Confirm installation selections

DFS Namespace

Windows | run, dfsmgmt.msc

Create Namespace

DFS Management | New Namespace menu New Namespace Wizard | Steps : Namespace Server New Namespace Wizard | Steps : Select Computer New Namespace Wizard | Steps : Namespace Server New Namespace Wizard | Steps : Namespace Name and Settings New Namespace Wizard | Steps : Namespace Type New Namespace Wizard | Steps : Review Settings and Create Namespace New Namespace Wizard | Steps : Confirmation DFS Management | Add Namespace Server

Add Namespace Server

We now need to add our SRV02 as namespace server.

DFS Management | Add Namespace Server DFS Management | Add Namespace Server DFS Management | Select Computer DFS Management | Add Namespace Server DFS Management | std.local namespace with two servers

Create Folder Targets

DFS Management | New Folder menu DFS Management | New Folder, add folder target DFS Management | Add folder target, Path to folder target window DFS Management | Add folder target, Browse for Shared Folders window DFS Management | Add folder target, Create Share DFS Management | Add folder target, select folder DFS Management | Add folder target, create share window DFS Management | Add folder target, Browse for Shared Folders Window DFS Management | Add folder target window DFS Management | Add folder, New Folder Window DFS Management | Add folder target, New Folder Window with two folder targets DFS Management | Replication Window warning DFS Management | Target Folder with two servers configured windows explorer accessing to share via namespace

Share Permissions

Windows explorer warning window : You need permission to perform this action

That's because by default we only have read access. Let's see how to change this.

DFS Management | Folder target, properties menu DFS Management | Folder target, Properties window DFS Management | Folder target, Permissions for common window

Do the same for the SRV02 entrie.

Windows explorer with new text document Two Windows explorer opened on two servers share

That's perfectly normal, because now we have to set the DFS replication in order to have same files on our both servers. That what we will see in the next chapter.

DFS Replication

As we can see on this schema, DFS Replication will allow to synchronize our two Common folders which are localy present on our servers.

DFS Management | DFS Replication Schema DFS Management | Replication Menu, New Replication Group DFS Management | New Replication Group Wizard, Replication Group Type DFS Management | New Replication Group Wizard, Name and Domain DFS Management | New Replication Group Wizard, Replication Group Members DFS Management | New Replication Group Wizard, Select Computer DFS Management | New Replication Group Wizard, Replication Group Members DFS Management | New Replication Group Wizard, Topology Selection DFS Management | New Replication Group Wizard, Replication Group Schedule and Bandwidth DFS Management | New Replication Group Wizard, Primary Member DFS Management | New Replication Group Wizard, Folders to replicate DFS Management | New Replication Group Wizard, Add folder to replicate DFS Management | New Replication Group Wizard, Add folder to replicate, Browse For Folder DFS Management | New Replication Group Wizard, Add Folder to replicate DFS Management | New Replication Group Wizard, Folders to replicate DFS Management | New Replication Group Wizard, Local Path of Common on Others Members DFS Management | New Replication Group Wizard, Edit DFS Management | New Replication Group Wizard, Add folder to replicate, Browse for folder DFS Management | New Replication Group Wizard, Add folder to replicate, Edit window DFS Management | New Replication Group Wizard, Local Path of Common on Other Members DFS Management | New Replication Group Wizard, Review Settings and Create Replication Group DFS Management | New Replication Group Wizard, Confirmation DFS Management | Replication Group, with two servers Two Windows Explorer with two shares that are synchronized
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Contact :