Installing DFS
To install DFS, an administrator of a file server on the network needs to install the File System role and select the necessary DFS-related role services. Also, when the DFS role services are selected, the necessary DFS tools will be installed as part of the installation. To install the DFS services, please refer to the steps detailed in the "Adding the File Services Role" section earlier in this tutorial, but on the Select Role Services page, select Distributed File System, DFS Namespaces, and DFS Replication. When installing the DFS services, a new namespace can be created. Skip namespace creation during installation to ensure a successful installation and create the namespace later to ensure proper configuration.
Creating the DFS Namespace and Root
When creating a DFS namespace, the administrator requires local Administrator group access on each of the servers hosting the namespace, and if a domain namespace is selected, the administrator also requires domain-level permissions because the domainnamespace information is stored in Active Directory.
A DFS namespace root requires a file share. When the DFS root is created, the name can be matched to an existing file share name or a custom name can be selected. The wizard searches the specified server for an existing file share matching the DFS root name; if it does not locate one, the wizard can create the share as part of the process.
As a best practice, the file share should be created and have share and NTFS permissions configured prior to the DFS namespace creation. One thing to keep in mind, though, is that the share name must match the DFS namespace name. Preconfiguring the NTFS permission will help simplify troubleshooting and administration of the namespace.
To create a file share for a DFS root, follow the steps outlined in the "Managing Folder Shares" section earlier in this tutorial.
Before attempting to create a new DFS namespace, if the DFS services have just been installed, ensure that the DFS services are running. In addition, for the DFS Management console to appear in Server Manager, all instances of Server Manager might have to be closed and reopened before following the proceeding steps.
To create a DFS namespace and root, follow these steps:
- Log on to the Windows Server 2008 R2 system with an account with local server administrator privileges. If a domain DFS namespace and root will be created, ensure that the account has the necessary permissions to the DFS-Configuration container in Active Directory.
- Pre-create the share and set share and NTFS permissions on the servers and shares that will host the DFS namespace root.
- Click Start, click All Programs, click Administrative Tools, and select DFS Management.
- Select the Namespaces node, and in the Actions pane, click on the New Namespace link.
- When the New Namespace Wizard opens, type in the name of the server that will host the namespace, and click Next.
- On the Namespace Name and Settings page, type in the name of the share previously created, and click Next.
- A pop-up window opens, asking whether the existing share should be used. Click Yes to use the previously configured share.
NOTE: The initial DFS root name must match the name of the file share created previously. If the share does not exist, the wizard will prompt you to create a file share from an existing folder or a new folder. Although the wizard can simplify the process by automating this task, it does not provide a method of configuring NTFS permissions. - On the Namespace Type page, to create a domain-based namespace, select the appropriate option button and check the Enable Windows Server 2008 Mode check box to enable scalability and allow for access-based enumeration within the namespace.
- On the Review Settings and Create Namespace page, review the namespace settings and if everything looks correct, click Create to start the namespace creation.
- On the Confirmation page, if the result status is reported as a success, click Close to complete the process. If the creation failed, select the Errors tab to review the issues, repair the problems, and attempt the namespace creation again.
Adding an Additional Namespace Server to a Domain-Based Namespace
After a domain namespace has been successfully created, it is a best practice to add an additional server to host the namespace. To add an additional server to an existing domain-based namespace, perform the following steps:
- Log on to the Windows Server 2008 R2 system with an account with local server administrator privileges. If a domain DFS namespace and root will be configured, ensure that the account has the necessary permissions to the DFS-Configuration container and child objects in Active Directory.
- Pre-create and set NTFS permissions on the servers and shares that will host the DFS namespace root.
- Click Start, click All Programs, click Administrative Tools, and select DFS Management.
- Select the Namespaces node, and then double-click the Namespaces node to expose the existing namespaces.
- If the desired namespace does not appear, in the Actions pane, click on the Add Namespaces to Display link and follow the steps to search for and add an existing namespace to the console view.
- Select the desired existing namespace, and in the Actions pane, click on the Add Namespace Server link.
- Type in the name of the server, and click OK to continue.
- If the share already exists, click OK on the pop-up window to use the existing share and existing share permissions. If the share does not exist, it will be created under c:\DFSRoots\ by default.
- In the tasks pane, select the Namespace Servers tab to verify that the additional namespace server was successfully added. Also note that at the top of the pane, it shows that the namespace is a domain-based in Windows Server 2008 mode.
In this tutorial:
- File System Management
- Windows Server 2008 R2 File System/Technologies
- File Classification Infrastructure
- Remote Storage Service (RSS)
- File System Access Services and Technologies
- Windows Server 2008 R2 Disks
- Utilizing External Disk Subsystems
- Managing Windows Server 2008 R2 Disks
- Creating Fault-Tolerant Volumes Using Disk Management
- System File Reliability
- Adding the File Services Role
- Managing Data Access Using Windows Server 2008 R2 Shares
- Install BranchCache
- Volume-Based NTFS Quota Management
- File Server Resource Manager (FSRM)
- Installing the File Server Resource Manager Tools
- Adjusting Quotas
- Creating File Screens
- Generating Storage Reports with FSRM
- File Classification Management
- File Management Tasks
- The Distributed File System
- DFS Replication
- Planning a DFS Deployment
- Planning for DFS Replication
- Installing DFS
- Creating a DFS Folder and Replication Group
- Managing and Troubleshooting DFS
- Backing Up DFS
- Using the Volume Shadow Copy Service