Greetings- Is it possible to mount multiple block devices (or network devices over NFS/CIFS) such that the contents of the mounts appear in one location? For example, lets say I have these shares available: \\server1\volume1\ \\server1\volume2\ \\server1\volume3\ All three contain a directory called data, with different subdirectories. Typically, these would be mounted like so: mount \\server1\volume1\ /mnt/s1v1 mount \\server1\volume2\ /mnt/s1v2 mount \\server1\volume3\ /mnt/s1v3 And, each would have a corresponding 'data' dir at those mounts: /mnt/s1v1/data /mnt/s1v2/data /mnt/s1v3/data However, it is possible to mount all of the shares to one location, such that there is one 'data' dir, with the combined contents of each of the three shares? So, all shares are mounted at /mnt/s1, and the contents of the multiple data dirs appears in one single data dir? The only time I've seen such functionality is within the XBMC media center application. It allows you to mount multiple network shares, but shows them all in one location as a sort of 'overlay' view. Duplicate directories are shown have their contents merged, but remain intact on the actual shares/filesystem. Does any of this make sense? Is it possible with CentOS (pref. 6) ? --Tim
Vreme: 11/15/2011 05:44 PM, Tim Nelson pi?e:> > However, it is possible to mount all of the shares to one location, such that there is one 'data' dir, with the combined contents of each of the three shares? So, all shares are mounted at /mnt/s1, and the contents of the multiple data dirs appears in one single data dir? > > The only time I've seen such functionality is within the XBMC media center application. It allows you to mount multiple network shares, but shows them all in one location as a sort of 'overlay' view. Duplicate directories are shown have their contents merged, but remain intact on the actual shares/filesystem. > > Does any of this make sense? Is it possible with CentOS (pref. 6) ? >If nothing else, you could create ans script that would create symlinks from all files in those directories into single one. I use that technique to create combined repository directory for mrepo. -- Ljubomir Ljubojevic (Love is in the Air) PL Computers Serbia, Europe Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman... StarOS, Mikrotik and CentOS/RHEL/Linux consultant