Is it possible to have multiple default shares for CIFS homes?
Not at the moment, although some enhancements are currently being made in this area. For people who have UNIX though, there is a workaround. Here's the gig...
The idea is that you create a single home directories directory and populate it with symbolic links to the real home directories which can be anywhere on the filer.
So, if:
options cifs.home_dir {/vol/vol0}/home
and joe and bill have home directories in /vol/vol5/home, then from a UNIX client you can:
% cd /filer/vol0/home % ln -s /vol/vol5/home/joe ./joe % ln -s /vol/vol5/home/bill ./bill
and bill and joe will get to play on the autoshare world even though their home directories are not in the cifs.home_dir directory. You might be forgiven for thinking "What about the not-following-symlinks-out-of-a-share rule?". Well, this doesn't apply here because the symlink *is* the share.
Also beware:
% cd /filer/vol0/home % ln -s /filer/vol5/home/joe ./joe % ln -s /filer/vol5/home/bill ./bill
won't do the job, because if you do this, you set the symlinks to match the NFS *clients* view of where the directories are, not the filer's view. You would then have to engage the /etc/symlink.translations mechanism to translate the symlinks betwixt views, and you probably don't want to get into that.
Keith
Keith Brown wrote:
Is it possible to have multiple default shares for CIFS homes?
Not at the moment, although some enhancements are currently being made in this area. For people who have UNIX though, there is a workaround. Here's the gig...
The idea is that you create a single home directories directory and populate it with symbolic links to the real home directories which can be anywhere on the filer.
So, if:
options cifs.home_dir {/vol/vol0}/home
and joe and bill have home directories in /vol/vol5/home, then from a UNIX client you can:
% cd /filer/vol0/home % ln -s /vol/vol5/home/joe ./joe % ln -s /vol/vol5/home/bill ./bill
We do this and it works very well. One thing that has always confused me though - the cifs.homedir works - but if i set up /filer/vol0/home as a share and browse to it all i see are the unresolved links. How come it can do one and not the other? It'd be nice to be able to browse to one spot on the filer and see all the home dirs....
Graham