MicrosoftDfs is one of the DistributedFilesystems for MicrosoftWindows, it is available as part of the standard resource kit.

DFS allows you to build a Unix style filesystem and then share it out, this means that directories within this filesystem can actually be pointers to remote filesystems (eg. W:\spack is actually a link to /spack which is provide via an SMB mount form the Samba servers smbsrv01 and smbsrv02). As an additional bonus it can manage redundancy and load balancing features.

The easiest way to configure it is via a DOS prompt. You can dump out the current configuration like this, the trailing /batch means that it generates all of the DOS commands needed to regenerate the current configuration (really useful for making changes).

C:\> dfscmd /view \\winsrv\dfsshare /batch 

Since the terminal sucks and you can't scroll up you probably want to redirect it to a file and then view it from Linux. Eg.

C:\> dfscmd /view \\winsrv\dfsshare /batch > W:\home\adam\dfs.bat 

To add new directory called "\spack" which links to a share on smbsrv01 called "spack" you would run this command:

C:\> dfscmd /map \\winsrv\dfsshare\spack \\smbsrv01\spack "A comment about /spack" 

From the moment you run the above command \spack will appear and be usable for users. If the share is also available from smbsrv02 and you want DFS to load balance and fail over between the two you would do this:

C:\> dfscmd /add \\winsrv\dfsshare\spack \\smbsrv02\spack 

Now that you've added smbsrv02 as a replica there is no practical difference between the share from smbsrv01 or the share from smbsrv02. Either one can break and either one can be removed and everything will keep on working (ie. just because you added smbsrv01 first doesn't mean that it's the master or key or anything).

To remove one of the replica's from a DFS map you would do this:

C:\> dfscmd /remove \\winsrv\dfsshare\spack \\smbsrv01\spack 

Now the \dfsshare\spack share is still up and running by linking to the share on smbsrv02. If you want to completely remove \spack from DFS you do this:

C:\> dfscmd /unmap \\winsrv\dfsshare\spack 


CategorySoftware

MicrosoftDfs (last edited 2003-12-05 06:39:36 by AdamShand)