Dfs for Windows 2000 Server provides users with convenient access to shared folders that are distributed throughout a network. A single Dfs shared folder serves as an access point to other shared folders in the network.
After this lesson, you will be able to
Estimated lesson time: 35 minutes
Dfs is a single, logical, hierarchical file system. It organizes shared folders on different computers in a network to provide a logical tree structure for file system resources. Figure 24.1 shows how Dfs can organize resources that reside on different components of a network.
Figure 24.1 An example of a Dfs share
Because the Dfs tree is a single point of reference, users can easily gain access to network resources regardless of the actual location of the underlying resources,. As Figure 24.1 demonstrates, accounting file system resources from multiple servers are organized in one logical Dfs root named Accounting.
A user who navigates a Dfs-managed shared folder does not need to know the name of the server on which the folder is shared. This simplifies network access because users no longer need to locate the server on which a specific resource resides. After connecting to a Dfs root, users can browse and gain access to all resources below the root, regardless of the location of the server on which the resource resides. In the example above, users needing access to accounting file resources would be able to find them in this one location.
A Dfs share uses a tree structure containing a root and Dfs links. To create a Dfs share, you must first create a Dfs root. Each Dfs root can have multiple Dfs links beneath it, each of which points to a shared folder on the network. The Dfs links of the Dfs root represent shared folders (<computer_name>\<share_name>) that can be physically located on different file servers.
The Table 24.1 describes the advantages of using Dfs.
Table 24.1 Dfs Advantages
Function | Advantages |
---|---|
Network administration | Dfs simplifies network administration. If a server fails, you can move a Dfs link from one server to another without users being aware of the change. All that is required to move a Dfs link is to modify the Dfs folder to refer to the new server location of the shared folders. Users continue to use the same Dfs path for the Dfs link. |
Namespace | Clients access file resources by using a single namespace (the Dfs root), as opposed to mapping logical drive letters throughout the enterprise. |
Memory overhead | Windows 2000 and Windows NT 4.0 clients use no additional memory because Dfs support is integrated with the Microsoft client redirector for both Windows 2000 and Windows NT 4.0. The Dfs Service for Microsoft Network Client must be installed on top of the Windows 95- and Windows 98-based Microsoft client redirector for this Windows 32-bit client to access a Dfs share. Without this service installed, Windows 95 and Windows 98 clients can access standard shares that are Dfs links of a Dfs root share. |
Server replacement | Administrators can replace file servers without affecting the namespace used by network clients simply by updating the path for the new server in the Distributed File System snap-in. |
Load balancing and fault tolerance | Dfs provides a level of load balancing and fault tolerance since clients randomly select a physical server to connect to from the list of alternates returned by the Dfs server. |
Extensibility | The Dfs namespace can be extended at any time to incorporate additional disk space or new business requirements. |
Network permissions | Dfs preserves network permissions. No additional permissions or security are required because Dfs volumes use existing Windows 2000 file and directory permissions. Access compatibility lists (ACLs) on Windows 2000 fault-tolerant replicas are replicated. |
Client caching | Dfs clients cache frequently used network resources without experiencing delays locating servers. The first access to a new area of the Dfs tree incurs a slight performance loss (analogous to performing a Net Use command). Caching this data eliminates any performance penalty for subsequent accesses until the client is rebooted or the cache expires. |
Internet Services (IIS) integration | Dfs works with IIS. Links made to other pages stored in Dfs Information do not have to be updated if the initial page is physically moved from one server to another, provided an administrator reconfigures Dfs accordingly. If the server hosting an Internet page is removed and the page is republished elsewhere, the links on that page do not have to be reconfigured. |
Table 24.2 details the limitations of Dfs.
Table 24.2 Dfs limitations
Description | Limit |
---|---|
Maximum number of characters per file path | 260 |
Maximum number of alternates per volume | 32 |
Maximum number of Dfs roots per server | 1 |
Maximum number of Dfs roots per domain | Unlimited |
Maximum number of volumes hosted in a domain or enterprise | Limited by system resources. Six thousand have been successfully tested in standalone roots. |
The Dfs Service is automatically installed with the installation of Windows 2000 Server. The service can be paused, stopped, and started but not removed from the operating system.
Two types of Dfs roots can be configured on Windows 2000 Servers: standalone Dfs roots and domain Dfs roots (sometimes called fault-tolerant Dfs roots).
The following characteristics are common to standalone Dfs roots:
The following characteristics are common to Dfs fault-tolerant roots:
Windows 2000 allows you to configure standalone Dfs roots, Dfs links, and domain Dfs roots.
Standalone Dfs stores the Dfs topology on a single computer. This type of Dfs provides no fault tolerance if the computer that stores the Dfs topology or any of the shared folders that Dfs uses fails.
A standalone Dfs root is physically located on the server to which users initially connect. The first step in setting up standalone Dfs is to create the Dfs root.
To create a standalone Dfs root, use the Distributed File System snap-in to start the New Dfs Root wizard. Figure 24.2 shows the Select The Dfs Root Type screen with the Create A Stand-Alone Dfs Root radio button selected.
Figure 24.2 Creating a standalone Dfs root from the Distributed File System snap-in
Table 24.3 describes the screens within the wizard and what actions you can take to configure the new Dfs root.
Table 24.3 Dfs Root Wizard Actions
Screen | Actions |
---|---|
Select The Dfs Root Type | Select the Create A Stand-Alone Dfs Root option (Figure 24.2). |
Specify The Host Server For The Dfs Root | Enter the initial connection point for all resources in the Dfs tree. You can create a Dfs root on any computer running Windows 2000 Server. |
Specify The Dfs Share | Enter a shared folder to host the Dfs root. You can choose an existing shared folder or create a new share. |
Name The Dfs Root | Enter a descriptive name in the Comment text box for the Dfs root. |
Completing The New Root wizard | Review the settings for the Host Server, Root Share, and Root Name text boxes. Click Back if you need to make changes, or click Finish to complete the setup process. |
Domain Dfs writes the Dfs topology to the Active Directory store. This type of Dfs allows Dfs links to point to multiple identical shared folders (also called replicas) for fault tolerance. In addition, it supports Domain Name System (DNS), multiple levels of child volumes, and file replication.
To create a fault-tolerant Dfs root, use the Distributed File System tool to start the New Dfs Root wizard.
Users can browse folders under a Dfs root without knowing where the referenced resources are physically located. After you create a Dfs root, you can create Dfs links (also known as Child nodes).
To create a Dfs link, open the Distributed File System snap-in, and click the Dfs root to which you will attach a Dfs link. On the Action menu, click New Dfs Link. The Create A New Dfs Link dialog box appears, as shown in Figure 24.3.
Figure 24.3 Creating a New Dfs Link off a public Dfs root for a human resources share
Table 24.4 describes the option in the dialog box.
Table 24.4 Create A New Dfs Link Dialog Box Options
Option | Description |
---|---|
Link Name | The name below the Dfs root that users will see when they connect to Dfs. |
Send the user to this shared folder | The UNC name for the actual location of the shared folder the Dfs link refers to. Note that the Dfs host server must be able to access any shared folders referred to in a Dfs link. |
Comment | Additional information (optional) to help keep track of the shared folder (for example, the actual name of the shared folder). |
Clients cache this Dfs referral for x seconds | Length of time for which clients cache a referral to a Dfs link. After the referral time expires, a client queries the Dfs server about the location of the Dfs link, even if the client has previously established a connection with the Dfs link. |
The Dfs link appears below the Dfs root volume in the Distributed File System tool and appears to a Dfs-enabled client as a folder below the Dfs root. Figure 24.4 shows the appearance of a Dfs root named \\Server02\Public and a Dfs link on another server.
Figure 24.4 A Dfs root and a Dfs link as they appear in the Distributed File System snap-in and how they appear on a Dfs-enabled client
In this practice, you configure shares, create a standalone Dfs root, and then create Dfs links.
In this exercise, you create or use existing folders and create shares for the folders. You can use any method you prefer to create folders and shares or follow the steps in this exercise.
The My Computer window appears.
A folder named New Folder appears in the Local Disk (H:) window, and the blinking cursor appears inside the New Folder box.
The Public Properties dialog box appears.
The Public folder appears with a hand underneath the folder.
Be aware that in some cases, the folders will be created on drive letters other than H:, and in one case a share will be created on Server02 to a folder that already exists.
Computer name | Drive | Folder | Share name | Purpose/ Comment |
---|---|---|---|---|
Server02 | C: | \Inetpub\wwwroot | internal | Internal Web content |
Server01 | H: | \Press | Press | Current press releases |
Server01 | C: | \Inetpub\ftproot | ftproot | FTP root directory mapped partition |
Server01 | I: | \dev\TechDocs | TechDocs | Technical documents area |
Server01 | C: | \Public\Press | PressRepl | Current press releases replica |
In this exercise, you create a standalone Dfs root to host the shares created in exercise 1.
The Distributed File System snap-in appears.
The New Dfs Root wizard appears.
Because you have not configured a domain controller at this point in your training, you will create a standalone Dfs root.
On the Specify The Dfs Root Share screen, specify a share you created in Exercise 1.
Notice that you can use an existing share for the Dfs root, or the wizard can create a new shared folder for you.
In the following exercise, you create Dfs links below the \\SERVER01\Public Dfs root.
The Create A New Dfs Link dialog box appears.
The Browse For Folder window appears.
The Send The User To This Shared Folder text box contains \\Server02\internal.
Link name | Send the user to this shared folder | Comment |
---|---|---|
news | \\Server01\Press | Current Press Releases |
ftp | \\Server01\ftproot | FTP Root Directory |
tech | \\Server01\TechDocs | Technical Documents Area |
NOTE
Rather than browsing for a share, you can enter the server and share name using standard UNC syntax.
In the following exercise, you create a replica of the News Dfs link. This Dfs link points to the H:\Press folder shared as Press, and the replica is stored on C:\Public\Press folder, which is shared as PressRepl.
NOTE
Because you created a standalone Dfs link, files must be manually copied or synchronized between the two folders. File replication services are not available for replicas created on a standalone Dfs link.
The Add A New Replica dialog box appears.
In the right pane both the \\SERVER01\Press and \\SERVER01\PressRepl shares appear.
In this exercise, you use the batch file provided with this training kit to copy files to Dfs links created in Exercises 1 to 3. After the files are copied, you access the files through Windows Explorer.
IMPORTANT
The batch file included with this training kit will work properly only if both servers are running, the shares are created exactly as specified in this practice, and the Administrator account password is password on both computers.
A command window opens as files are copied to the Dfs links, and then the command window closes.
Complete all of the remaining steps in this exercise from Server02.
The Computers Near Me windows appears showing all computers in the workgroup.
All shares and the Dfs root (Public) appear along with other objects on Server01. Notice that the Public folder appears like any share on Server01.
The four Dfs links created in Exercise 3 appear.
Folder | File(s) |
---|---|
ftp | dirmap.htm, dirmap.txt |
intranet | Q240126 - Best Practices for Using Sysprep with NTFS Volumes.htm |
news | press.wri |
tech | Dfsnew.doc, RFS 1777.txt |
Note that the intranet folder will contain additional files, since this folder points to a directory created during the installation of Windows 2000 Server.
Which folder represents a location on a server other than Server01?
Which folder represents a mounted drive to a previously empty folder?
Earlier in this exercise, you created a replica of the Press Dfs link. The name of that replica is \\SERVER01\PressRepl. This Dfs link is a shared folder by the name of PressRepl and is located in C:\Public\Press. If you examine the contents of this directory, you will notice that it is empty. However, when you view the News Dfs link, you will notice that there is a file named Press.wri. Why is the PressRepl Dfs replica empty?
TIP
You can use the Distributed File System snap-in to check the status of the Dfs links and to open a window to the contents of the link.
Dfs provides a convenient way for users to access shared folders that are distributed throughout a network. A single Dfs shared folder, called a Dfs root, serves as an access point to other shared folders in the network, called Dfs links. Dfs organizes shared folders on different computers in a network into a single, logical, hierarchical file system. Dfs facilitates network navigation and administration while preserving network permissions. Two types of Dfs roots can be configured on Windows 2000 Servers: standalone Dfs roots and domain Dfs roots. Standalone Dfs stores the Dfs topology on a single computer. This type of Dfs provides no fault tolerance if the computer that stores the Dfs topology or any of the shared folders that Dfs uses fail. Domain Dfs writes the Dfs topology to the Active Directory store. This type of Dfs allows Dfs links to point to multiple identical shared folders and supports file replication for fault tolerance. In addition, it supports DNS and multiple levels of Dfs links. Dfs uses the FRS to replicate data in domain Dfs roots and domain Dfs links. When changes are made to a Dfs link that is part of a domain Dfs root, the changes are automatically replicated to other replica members.