October 2008
| Table of Contents | |
Distributed File System (DFS) is one of the most useful and underutilized features of Active Directory (AD) and Windows file servers. With DFS, system administrators can make it easy for users to access and manage files that are physically distributed across a network. With DFS, you can make files distributed across multiple servers appear to users as if they reside in one place on the network. Users no longer need to know and specify the actual physical location of files in order to access them.
Here is a simple example of what you can do:
The Butterfly Science Department has three file shares on three different servers:
\\svc01\Users
\\svc02\Groups
\\svc03\Projects
The admin has mapped three drive letters for users to access the files on the different servers.
With DFS, all these can be combined under a single virtual file system using DFS and be mapped to a single drive. Additional file shares can be added or existing ones changed on the fly without users having to know about it.
You will need to supply the name of one or two "Namespace" servers to hold the DFS root or pointer. This information is stored in AD and is used by clients to find file shares. Two servers will provide redundancy. No files will be stored on these servers.
Servers can be Windows 2003 or Windows 2008.
(If you want to use advanced DFS features, the servers must be Windows 2003 R2 or Windows 2008 with the DFS Management snap-in.)
The DFS Service must be installed and started on these two servers.
There must not be a firewall blocking access from ITS servers.
Have the names of the file shares handy. You can create the file shares on the fly as you add them as folders. Sometimes this is easier because it allows you to set the necessary permissions.
Note: The text of the following documentation lists the root domain of the U-M Windows Forest correctly as adsroot.itcs.umich.edu. The screenshots, however, were taken from the test forest and thus show the adsroot.itd.umich.edu.
Contact ITS (windows.support@umich.edu) to set up the initial DFS folder for your unit. Once the initial Namespace setup is complete, it will be delegated to your OU Admin group.
ITS will create DFS Roots on one or two servers:
In our Butterfly Science Department example, we will use SVC01 and SVC02. These can be the same or different servers as the file shares.
A directory named C:\DFSRoots\ButterflyScience will be created on each server by ITS. (Do not make any changes to this directory or store files in it.)
(This step can be done by the OU Admin, but ITS can create the initial folder links for you)
Open the DFS Management Snap-in and the new Namespace:
Start the DFS Management Snap-in.
Select Action > Add Namespaces to Display from the menu.
Set scope to "adsroot.itcs.umich.edu" and click the Show Namespaces button.
Select \adsroot.itcs.umich.edu\ButterflyScience
Add folder targets:
Select Action > New Folder.
In the Name field, enter "Users".
Click the Add button to select the file share.
Enter the file share name or browse. You can also create file shares on the fly.
Repeat for additional file shares.
Your users can now map a drive to the following file share and see all the folder targets on the different servers:
\\adsroot.itcs.umich.edu\ButterflyScience
Your DFS hierarchy is a member of the campus DFS hierarchy in addition to your own DFS hierarchy. The campus DFS is accessed here:
\\adsroot.itcs.umich.edu\Dfs
For example, the Butterfly Science DFS is available at both:
\\adsroot.itcs.umich.edu\ButterflyScience
\\adsroot.itcs.umich.edu\Dfs\ButterflyScience
You can use your DFS Root as a target for remote access using WebDAV or SFTP. In this way, all your file storage is accessible from one place.
Perhaps you want a more complex file structure. For example, what if you wanted a Department Folder and each folder beneath that were a share on a separate server?
Open the DFS Management Snap-in and add your Namespace.
Add folders:
Select Action > New Folder.
In the Name field, enter "Department".
Click the OK button to finish. Do not add a file share.
Notice that Department does not have a shortcut icon because it is a DFS namespace folder.
Add folder targets under Department:
Right-click on "Department".
Select Action > New Folder.
In the Name field, enter "Marketing".
Click the Add button to select the file share.
Enter file share name or browse. You can also create file shares on the fly.
Repeat for additional file shares such as "Sales".
DFS now looks like this:
Users see this. Four folders at the root with a total of five folders with data on five different servers!
It is possible to specify multiple file shares for the same folder target and replicate data between them. This is only meant to be used for Read-Only file shares because users access a randomly selected file share. If two users write to the same file on different file shares, the last writer wins.