- Published on
DFS and DFS-R
- Authors
- Name
- Jackson Chen
Windows Server Storage Documentation
https://docs.microsoft.com/en-us/windows-server/storage/storage
DFS Namespace Overview
https://docs.microsoft.com/en-us/windows-server/storage/dfs-namespaces/dfs-overview
Tune a DFS Namespace
DFS Replication Overiew
https://docs.microsoft.com/en-us/windows-server/storage/dfs-replication/dfsr-overview
Use Robocopy to pre-seed files for DFS Replication
robocopy "<source replicated folder path>" "<destination replicated folder path>"
/e /b /copyall /r:6 /w:5 /MT:64 /xd , DfsrPrivate /tee /log:<log file path> /v
/tee Writes status output to the console window, as well as to the log file
# Install DFS by using PowerShell
Install-WindowsFeature "FS-DFS-Namespace" # Install DFS Namespace
Install-WindowsFeature "RSAT-DFS-Mgmt-Con" # Install Remote Server Administration Tool
Install-WindowsFeature "FS-DFS-Replication" # Install DFS Replication
How to Create DFS Namespaces
1. Open DFS Management console
2. Right click on Namespaces in the left panel and click New Namespace.
3. Enter the name of the server. Click next.
4. Provide a name for the Namespace, such as Systems
5. You can choose to edit the local path of the shared folder, such as D:\DFSRoots\Systems
DFS Namespace will be \\<AD-Domain-FQDN>\<Namespace-Name>
Example: \\lab.local\Systems
6. Choose either a Domain-based or Stand-alone Namespace.
a. Choose domain-based
b. Select "Enable Winodws Server 2008 Mode"
The Namespace will support increased scalability and access based emmuneration
7. Lastly, a summary will be displayed. Click create to finish configuring your new Namespace.
How to Create DFS Folder
1. Access DFS Management console
2. Navigate to the DFS namespace, or folder path
3. Right click and select New Folder
4. Enter the name of the DFS folder, and continue to select the server and the shared folder
5. When prompt to change permission
a. Keep default, everyone has Read access
This will prevent users/admin to create folder within the Namespace.
All DFS folder creation would need to be from DFS management console
6. Select the DFS file server and the shared folder
Robocopy
Run robocopy with WhatIf
# switch /L which means List Only
robocopy //source-dir //dest-dir /S /E /XO /MT:16 /L