Practical Uses of Dfs Trees
How Dfs Works
How Users See and Connect To Dfs Trees
Administering Dfs Trees
Microsoft® Distributed File System for Microsoft Windows NT® Server (Dfs) enables distributed file system capabilities on Windows NT Server. A distributed file system provides a single tree structure for multiple shared volumes located on different servers on a network. A user accessing a volume on a Dfs tree does not need to know the name of the server where the volume is actually shared.
With the Dfs software, you can create a Dfs tree root on any server running the Windows NT Server software released at the PDC. Windows NT Server version 4.0.
This document explains what Dfs is, why it is useful, and how to create and administer Dfs trees.
A Dfs tree makes network access easier for users, who no longer have to manually locate which server any particular resource is on. After connecting to the root of the Dfs tree, they can then browse for and access all resources contained within the tree, no matter which server on which the resource is physically located.
With Dfs, if a server goes down and you need to replace it, or you need to move a volume from one server to another, you can do so without informing users of the change. Instead, you modify the Dfs tree to refer to the new server location for the resource, and users can continue to use the same Dfs path to access the volume.
Because you can have multiple Dfs trees on your network, you can create a different Dfs tree for each type of user on your network. For example, an engineering firm could create one Dfs tree containing all the volumes needed by their engineers, another for payroll and benefits people, and so on. Any particular volume can be included in one or more Dfs trees, ensuring that every user can access all the resources they need.
With Dfs, you can increase data availability and transparently distribute load across multiple servers. This is because multiple servers can serve as duplicate storage points for a single volume.
Dfs gives you the flexibility to expand your network as smoothly as possible. When you add disk storage to your network, the physical server on which you add it can be independent of where in the logical namespace the new storage is made available.
Dfs also complements Microsoft Internet Information Server. For example, if you set up a World Wide Web site on your network, you could have the root of the web site be the root of a Dfs tree. If you later move a resource within the Dfs tree, all HTML links will continue to work.
Dfs organizes your shared-file resources into a tree structure. A shared-file resource that is part of a Dfs tree can be accessed by either its Dfs path name or its \\servername\sharename path.
Each Dfs tree has one or more root volumes. In this release, you can have one level of volumes, called leaf volumes, beneath the root level. Leaf volumes can be physically located on different servers than the root volume. (Future releases of Dfs will include support for multiple levels of volumes under a root).
A Dfs tree that has more than one root volume is called a fault tolerant dfs tree. The contents of the multiple root volumes are identical, and provide multiple points of failure for the entire tree. A Dfs tree that is configured to always have only one root volume is called a standalone Dfs tree.
The root volumes of Dfs trees must be hosted on a server running the PDC release of Windows NT Server.
Figure 1 shows a sample standalone Dfs tree. The Dfs paths to each volume are shown in bold, while the network paths are shown in italics.
Figure 1-- A sample Dfs tree structure
You can have multiple Dfs trees on your network. Any shared folder can be a volume in multiple Dfs trees.
The various folders on a particular server can be made volumes on different Dfs trees, but a server can have only one folder that serves as a Dfs root.
Dfs automatically creates short file and directory names for long names, so that 16-bit applications can use Dfs paths to access files.
Although each particular Dfs tree in this release is limited to two levels of volumes, each volume can contain multiple levels of folders. Additionally, you can create a multileveled tree by nesting Dfs trees inside of each other. You do this by adding the root volume of one Dfs tree as a leaf volume in another Dfs. Creating a multilevel tree this way is transparent to users; they do not know when they have crossed from one Dfs tree to another.
You can also add levels to a Dfs tree by using the local storage of the server hosting the root volume. Any files and folders under the Dfs root volume will be visible through the Dfs tree. In addition, when you add leaf volumes to a Dfs tree, you can add them under folders at any level under the Dfs volume directory. In the sample in Figure 1, info is a folder added locally at the server under the folder shared as dfs. The reports and releases volumes are added under the info folder.
Note that some volumes on a Dfs tree (such as \\human_resources\dfs\benefits in the example in Figure 1) can use one or more shared folders for storage. If a volume uses more than one shared folder, it has alternate paths.
Alternate paths provide load balancing, and allow the volume to be accessed even if one of the volume servers goes down. However, the Dfs software does not replicate information between the two servers; network administrators must ensure that the data on the servers stays synchronized through other means.
Because the Dfs software does not synchronize alternate paths automatically (without third-party replication software), alternate paths are best suited for read-only volumes, where users will not be adding files or modifying existing files.
The Dfs software does not add any permissions or security limitations beyond those already assigned to the files or shares themselves. A user can access a volume through the Dfs tree as long as the user has permission to access the shared folder directly.
It is not necessary for a user to have permissions for a root volume in order to access leaf volumes. For example, in the tree in Figure 1, if a user has permissions for the share \\insurance\public (located in the Dfs as \\human_resources\dfs\insurance), then the user can access that share through the Dfs tree, even if the user does not have permissions for the \\human_resources\dfs share.
Only administrators can administer a Dfs tree.
When you add a leaf volume to a Dfs tree, a blank folder is automatically created in the root volume directory. This blank folder serves as a junction point to the leaf volume.
Dfs prevents you from deleting any of these folders manually. If you use Dfs Administrator to remove a volume, the junction point folder is automatically removed.
If you delete the Dfs software from a root server without first removing the leaf volumes from the Dfs tree it hosted, you can then delete the junction point folders manually.
Users view and access resources through a Dfs tree just as they view and access other resources on the network. When browsing a network, a Dfs root appears just like a share name of a shared folder. Fault-tolerant Dfs trees appear as \\domain_name\dfsname, while standalone Dfs trees appear as \\servername\dfsname. For example, with the sample Dfs tree in Figure 1, a user browsing the network would see dfs as a shared directory available under the human_resources server.
Users can browse through a tree transparently, no matter the location of each volume or the file system used for that volume. Users can make connections to and assign local drive letters to the any folder of a Dfs tree.
When a user views the contents of the root volume through its Dfs name, they see both the Dfs volumes located under that volume, as well as any contents of the shared folder that comprises the root volume. For example, in Figure 1, when a user views the contents of \\human_resources\dfs, they see the benefits, insurance, and health Dfs volumes, as well as any files and folders located in the \\human_resources\dfs folder.
Users of computers with the PDC Windows NT software can see and access Dfs trees.
You administer Dfs trees by using the Dfsadmin tool.
With Dfsadmin, you can add and remove volumes to a Dfs tree, modify volumes, create alternate paths to a volume, and view and configure information about the volumes contained in a tree. You can remotely administer any Dfs tree on the network that you have permissions for.
If the local server already hosts a Dfs tree, you can begin administering it. Otherwise, you can either create a Dfs tree on the local server, or remotely administer another Dfs tree. To remotely administer a Dfs tree, click No when prompted whether to host a Dfs, then select the tree to administer.
If you want to create a Dfs root on the local computer, see the following section, "Creating a New Dfs Tree Root."
To create a Dfs tree root in this release, you must work physically at the server on which you want to create the root.
If you click No when prompted whether to host a Dfs, you can choose an existing Dfs tree to remotely administer. If, during this time, you then decide to start hosting a Dfs tree on the local computer, use the following procedure:
Fault-tolerant Dfs trees can have multiple servers which all host identical copies of a root volume of a Dfs tree. This provides multiple point of failure for the entire tree.
To configure this, first create the original root volume by following the procedure in "Creating a New Dfs Tree Root" (and be sure to select Create a new Fault Tolerant Dfs in this domain). Then create the other root-level participants by using the following procedure.
To create another root-level participant
Use this procedure to stop hosting a Dfs root on a server.
To stop hosting a Dfs root volume
Any folder you want to add to a Dfs tree must already be shared.
A volume can use one or more shared folders for its storage. If the volume uses more than one, it has alternate paths.
When a volume includes alternate paths, user requests to access the volume are distributed among the alternate paths.
The Dfs software does not ensure that the contents of the alternate paths of a volume are replicated. Network administrators must manually ensure that the alternates stay synchronized.
You can save the current structure of the Dfs tree to a file, which you can later reload to restore the Dfs volume structure. Note that this saves only the links between volumes, not any volume contents. The save files are server-specific comma separate files, with a .csv file extension
You can filter the list of volumes shown in the Dfsadmin main window. You can filter volumes by name, comment, and the number of alternate servers that provide storage for the volume.
For more information on any of the filtering options, right-click the option and then click What's This?
Dfs is implemented as a service (the Distributed File Service).
You can start and stop the service manually by using either Services in Control Panel or the command line. The commands are net stop dfs and net start dfs.
DFS provides the following commands you can use from the command prompt.
Microsoft, Windows, and Windows NT are registered trademarks of Microsoft Corporation in the U.S. and/or other countries.
Other companies and product names may be trademarks of their respective companies.