Hello,
I just need a word of advice on how to structure /home if you use automount, have 5-10 home directory servers (NetApp filers) and around 1000 users.
I'm personally is looking for /home/homeserver-vol#/user-name scheme, so my automount maps will be nice, small and manageble:
#auto_home NIS map filer1-0 filer1:/vol/vol0 filer1-1 filer1:/vol/vol1 ... filer5-5 filer5:/vol/vol5
But it seems like users prefer /home/username scheme and it leads to 1000+ NIS automount map for /home, like
#auto_home NIS map user1 filer2:/vol/vol1/& .... user9999 filer3:/vol/vol4/&
Do you know if there is more elegant solution for this problem? Can you tell me, what is your preference for /home layout?
Thank you.
You've seen a couple votes for a large auto_home map. If you would still like to avoid that, then instead create a directory of 1000 symlinks on one of your filers like this:
/vol/vol0/home/usera -> /net/filer1-0/usera /vol/vol0/home/userb -> /net/filer2-1/userb
etc.
Automount this directory of 1000 symlinks using this symlink on each workstation:
/home -> /net/filer1-0/home
As a result, /home/usera is a symlink to /net/filer1-0/usera.
Now whenever you add a user or move a user to a different volume, just add or change a symlink. No need to mess with the automount map at all.
If you're worried about setting up those 1000 symlinks, it's quite trivial:
for vol in filer1-0 filer1-1 filer2-0 ... do cd /net/$vol for loginid in *; do ln -s /net/$vol/$loginid /home/$loginid done done
Steve Losen scl@virginia.edu phone: 804-924-0640
University of Virginia ITC Unix Support