Directory Naming Schemes Among Many Linked Machines

Matt Landau mlandau at bbn.com
Tue Jul 19 07:44:31 AEST 1988


Well, the convention most people around here have adopted is to give each 
machine a /nfs directory on which remote filesystems get mounted, and then
mount things on /nfs/{machine}/{filesystem}.  

Each machine also has its *own* filesystems linked into /nfs/{ownname},
and all symbolic links point into the /nfs hierarchy for the local 
machine.  This scheme provides and unambiguous name for every point in
every filesystem on every machine, and prevents you from inadvertantly 
pointing links into the wrong filesystem.

If you don't understand how this can happen, consider what happens if you 
mount /usr from red, and it has a symbolic link to /usr/local.  If you've 
mounted /usr/local from blue, the link is valid, but what's pointed to isn't 
what the link's creator on red expected.  If the link is instead made to
point to /nfs/red/usr/local, you don't trip across this problem.

For compatibility with SunOS 4.0, you might want to use /net as the NFS
mount point instead of /nfs.  SunOS 4 by default uses /net as the mount
point for hostname-based mounts performed by the automounter.
--
 Matt Landau		    The happiest cold and lonely guy 
 mlandau at bbn.com	          stuck in the Yukon without a dog.



More information about the Comp.unix.questions mailing list