Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
@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

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.

    host msdfs = yes

 #Add DFS as a share definition
    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


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