6.4. Microsoft Distributed File Systems
Microsoft's Distributed File System (MS-DFS), not to be
Figure 6-7. Redirection by MS-DFS
Configuring Samba to support MS-DFS root shares involves one global parameter,
host
[global]
host msdfs = yes
[common]
path = /data/dfs
read only = yes
msdfs root = yes
The MS-DFS referrals are stored on the server's filesystem as symbolic links. The link name is the name of the directory displayed by clients. The target of the link represents the destination UNC path for the MS-DFS referral. The link target
msdfs: server \ share [, server \ share ,...] The msdfs keyword is used by Samba to identify the link as a MS-DFS referral. The server \ share component is the path to the server and share returned to the client. Multiple paths can be defined; all will be returned the client, which then selects one based on internal heuristics. The following ln command creates a referral from staff to \\sleet\staff : $ ln -s 'msdfs:sleet\staff' staff $ ls -l staff lrwxrwxrwx 1 root root 17 2006-05-25 11:36 staff -> msdfs:sleet\staff After reconfiguring a server or share to support MS-DFS, you will likely have to reboot the Windows client in order for it to recognize the new functionality. Once this is done, you will be able to test the MS-DFS share by browsing to the staff directory and viewing its contents. If you experience any problems at this point, verify the following:
If you verify these items and are still having difficulties,
In addition to supporting MS-DFS referrals for directories, it is possible to define a share that solely refers to another share by specifying a path in the msdfs proxy parameter, which can be helpful when migrating services from one server to another. For example, suppose that we have moved \\RAIN\templates to \\SNOW\templates but some clients are still trying to access it in the original location. The following share redirects users to the correct share without any client modifications:
[global]
netbios name = RAIN
[templates]
msdfs proxy = \snow\templates
Table 6-11 lists the various MS-DFS
Table 6-11. MS-DFS options
|