On Fri, 23 Mar 2007, Victor Danilchenko wrote: > The problem is this. We have individual systems indirectly automounting > each other. As such, it is useful for them to be able to keep both the > automounted and the local mountpoints in the same tree, for performance > reasons (rather than mount self over NFS from the /exports/myhost > directory into the /nfs/myhost directory, for example). With automount
Which operating system is this? We're running Linux (with autofs-4), and autofs is smart enough to recognize and do a bind mount of local filesystems, so there is no overhead. We don't do anything special; however, the local filesystems are in one place (/h[1-9], /m[1-9]) while the automounted references are elsewhere (/net/$HOSTNAME). Here's an excerpt from /etc/mtab on a typical host, Sunset: /dev/sdb2 /m1 ext3 rw,acl,user_xattr,quota 0 0 automount(pid4220) /net autofs rw,fd=4,pgrp=4220,minproto=2,maxproto=4 0 0 automount(pid4094) /net/sunset autofs rw,fd=4,pgrp=4220... /m1 /net/sunset/m1 none rw,bind 0 0 <== Bind mount here automount(pid21051) /net/julia autofs rw,fd=4,pgrp=4220... julia:/h1 /net/julia/h1 nfs rw,,addr=128.97.4.5... <== NFS mount here So at least on Linux you don't need to exclude local filesystems from the automount map. I believe Solaris also has this situation covered but I can't remember just what it does. James F. Carter Voice 310 825 2897 FAX 310 206 6673 UCLA-Mathnet; 6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA 90095-1555 Email: [EMAIL PROTECTED] http://www.math.ucla.edu/~jimc (q.v. for PGP key) _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
