Microsoft KB Archive/301588

= HOW TO: Use DFS on a Server Cluster to Maintain a Single Namespace =

Article ID: 301588

Article Last Modified on 10/31/2006

-

APPLIES TO


 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Datacenter Server

-



This article was previously published under Q301588





IN THIS TASK
SUMMARY
 * Scenario
 * Create Four Independent Virtual Servers
 * Create a DFS Root

REFERENCES



SUMMARY
This article describes how to configure Distributed File System (DFS) on a Windows server cluster to maintain a single namespace for file shares. This configuration makes it easier for users and administrators to remember where files are located, maintain highly available file servers, and host file shares across multiple nodes for scalability.

The scenario in this section describes how to create a clustered file server for four different groups while maintaining a single connection point.

back to the top

Scenario
This scenario describes how to maintain a single namespace for users home directories yet distribute the load between four cluster nodes for the EAST, WEST, NORTH, SOUTH sites. To do so, you can create a four-node Windows cluster that is comprised of six cluster groups:
 * Cluster Group
 * DFS Root Group
 * EAST FileShare Group
 * WEST FileShare Group
 * NORTH FileShare Group
 * SOUTH FileShare Group

The network name resource that is in the DFS root group is the resource that is used by all users (or login scripts) to connect. When users connect to this virtual server, they are presented with EAST, WEST, NORTH, and SOUTH folders. The different folders are hosted on one of the four nodes. This scenario requires a total of six disks on the shared bus. This configuration allows the optimal situation; it includes a disk in the cluster group and in the DFS root group, plus one for each of the site groups.

The following procedure describes how to create this distributed file server. This procedure assumes that the Cluster service is installed on all nodes, and that there are five default groups (the cluster group, Group 0, Group 1, Group 2, Group 3). Each group has a disk starting with the cluster group, with &quot;Disk Q&quot; going up to &quot;Disk V&quot; in Group 3.

back to the top

Create Four Independent Virtual Servers

 * 1) Create a folder on Disk S named &quot;EASTUSERS&quot;, and then create folders for each of the users in the EAST region under EASTUSERS.
 * 2) Start Cluster Administrator, and then click Configure Application on the File menu.
 * 3) In the Cluster Application Wizard, click Next, click Create a new virtual server, and then click Next.
 * 4) Click Use an existing resource group, click the first group (Group 0) in the list of groups that is displayed, and then click Next.
 * 5) In the Name box, type EAST FileShare Group, and then click Next.
 * 6) In the Network name and IP address boxes, enter a virtual server name and an IP address, such as &quot;EASTFILESERVER&quot;, and then click Next.

NOTE: End users cannot connect to this virtual server directly; this virtual server is only present for administrative purposes.
 * 1) In the Advanced Properties for the New Virtual Server page, click Next.
 * 2) Click Yes, create a cluster resource for my application now on the Create Application Cluster Resource page, and then click Next.
 * 3) In the Resource Type box, click File Share, and then click Next.
 * 4) In the Name box, type EAST FileShare, and then click Advanced Properties.
 * 5) Click the Dependencies tab, and then click Modify.
 * 6) Add the physical disk (Disk S) and the network name (EAST FileShare Group Name) as dependencies, and then click OK twice.
 * 7) Click Next.
 * 8) In the Share name box, type EASTUSERS$ (when you add the dollar sign [$], the share is hidden from casual browsing).
 * 9) In the Path box, type S:\EASTUSERS.
 * 10) Click Next, and then click Finish.
 * 11) Right-click the EAST FileShare Group, and then click Bring Online.
 * 12) Repeat steps 1 to 17 for the WEST, NORTH, and SOUTH regions using Group 1 with Disk T, Group 2 with Disk U, and Group 3 with Disk V.

back to the top

Create a DFS Root
You now have four independent virtual servers that can be failed back and forth between the four nodes. Next, you must create the DFS root that is used for users to connect to or login scripts to map drives to:
 * 1) Create a folder on Disk R named &quot;USERSHARE&quot;.
 * 2) In Cluster Administrator, click Configure Application on the File menu, and then click Next.
 * 3) Click Create a new virtual server, and then click Next.
 * 4) Leave the selection in the Create a new resource group box, and then click Next.
 * 5) In the Name box, type DFS Root Group, and then click Next.
 * 6) Type a network name and IP address for this virtual server, such as NORTHAMERICA, and then click Next.

NOTE: This virtual server is the virtual server that all users connect to regardless of their location.
 * 1) Click Next, verify that Yes, create a cluster resource for my application now is selected, and then click Next.
 * 2) In the Resource Type box, click File Share, and then click Next.
 * 3) In the Name box, type DFS Root FileShare, and then click Advanced Properties.
 * 4) Click the Dependencies tab, and then click Modify.
 * 5) Add DFS Root Group Name and Disk R as dependencies, and then click OK twice.
 * 6) Click Next.
 * 7) In the Share name box, type USERSHARE.
 * 8) In the Path box, type R:\USERSHARE.

NOTE: You can use the local disk in each node because there is no data being copied locally. DFS requires a share to be set up but does not copy any real data to it. A sixth shared disk could be used and would be preferable.
 * 1) Click Advanced, and then click DFS root.
 * 2) Click OK, click Next, and then click Finish.
 * 3) Right-click DFS Root Group, and then click Bring Online.
 * 4) Start the Distributed File System program. \\NORTHAMERICA\usershare is listed under the root.
 * 5) Right-click \\NORTHAMERICA\usershare, and then click New Link.
 * 6) Type EASTUSERS in the Link name box, in the Path to target (shared folder), type the path to the EASTUSERS virtual server and share name ( \\EASTFILESERVER\EASTUSERS$ ), and then click OK.
 * 7) Create links to the WEST, NORTH, and SOUTH regions by following the preceding two steps and pointing to the respected virtual servers and share names.
 * 8) Test the DFS share by connecting to \\NORTHAMERICA\USERSHARE. There are EAST, WEST, NORTH, and SOUTH shares to be connected as well.

Clients running Windows 2000 and later versions of Windows can map drives beyond the first share level. In the preceding example, the logon scripts could effectively map a drive letter to the following location:

NET USE Z: \\NORTHAMERICA\USERSHARE\EAST\

You can place the EAST, WEST, NORTH, SOUTH file share groups on the different cluster nodes for manual load balancing.

As with the Windows 2000 cluster, DFS domain roots are not supported as cluster resources. DFS domain roots are published in Active Directory, which implies some fault tolerance. See &quot;Help and Support&quot; for information about creating DFS domain roots.

back to the top

