Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'd like to create something like Windows' DFS system for sharing files on a network on Linux.

Is there a similar offering somewhere?

share|improve this question
    
AFACT, DFS is just file sharing with more flexible path naming. that's standard on any file system on Unix-like systems. NFS would do –  Javier Oct 20 '10 at 17:40
3  
@Javier That may apply to DFSN (DFS Namespaces), but DFS also includes replication as part of the system. –  phoebus Oct 20 '10 at 18:36

3 Answers 3

Samba can do it through special symbolic link files. Samba has to be compiled with the --with-msdfs option to make it work. Then you need to modify the smb.conf file to turn it on.

[global]
    host msdfs = yes

 #Add DFS as a share definition
[dfs]
    path = /srv/smb/dfsroot
    msdfs root = yes

Once it does, you can make symlinks with this syntax to emulate linking to a remote host:

ln -s 'msdfs:server\volume` accounting

Lower-case is key. If you're replicating the data somehow (Samba, unlike Microsoft, doesn't bundle replication in with DFS) you can emulate that as well.

ln -s 'msdfs:server1\acct,msdfs:server2\acct' accounting

It's a good idea to ensure the links are owned by root. You don't want stray users redirecting other users to places nefarious.

share|improve this answer

A quick trip to your search engine of choice would bring up Ceph, Lustre and gFarm to name but three, obviously you're free to discover more options via the same route.

share|improve this answer

yes, you have the global file system (GFS) red hat link

share|improve this answer
    
I don't think that's anything like Windows' DFS. GFS sounds like a filesystem for clusters, based on shared storage, e.g. a SAN LUN. Windows DFS provides an abstraction layer for UNC paths, so that \\domain\share\somefolder may reside on multiple servers, with the client selecting one based on various criteria. It also provides for replication of the data between servers. DFS works quite well even over WAN links. –  ThatGraemeGuy Oct 20 '10 at 19:03
    
you're right, thanks for the correction –  natxo asenjo Oct 20 '10 at 19:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.