All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: autofs {3, 4, 5} and bind mounts which point to other automount points
@ 2006-08-25 16:18 Joe Pruett
  2006-08-25 17:25 ` Ian Kent
  0 siblings, 1 reply; 32+ messages in thread
From: Joe Pruett @ 2006-08-25 16:18 UTC (permalink / raw)
  To: raven; +Cc: autofs

The ability to have automount point to automount is something I use heavily as well.  Otherwise I end up with many hundreds of nfs mounts on the server at a time. having hundreds of bind mounts on the client is preferrable. The old sun method of doing this was:
host:/path/name:dir
which would mount host:/path/name and then symlink dir.  Now we' d use bind/loopback mounts.  But that syntax has been gone a long time.

It doesn't seem like threading should inherently cause a problem.  Each request should be a new thread and wait for the underlying mount (which might be recursive) to finish.

^ permalink raw reply	[flat|nested] 32+ messages in thread
* autofs {3, 4, 5} and bind mounts which point to other automount points
@ 2006-08-24 14:44 Matt Bernstein
  2006-08-25  1:29 ` Ian Kent
  2006-08-25 14:46 ` Ian Kent
  0 siblings, 2 replies; 32+ messages in thread
From: Matt Bernstein @ 2006-08-24 14:44 UTC (permalink / raw)
  To: autofs

Hi,

We like to preconfigure an number of our (1000ish) users' applications. 
Typically, this might necessitate hard-coding their home directories in 
dot-files, so we specify their home directory in the passwd map as 
/homes/$LOGNAME, and make this an (LDAP) automount map which might point 
to ":/server/{servername}/{volumename}/$LOGNAME" (via a bind mount), where 
/server/{servername}/{volumename} would be the "real" NFS mount.

This allows us to move the physical location of any user's home directory 
without upsetting their application settings. (Some applications seem to 
prefer using full paths.)

Our scheme all worked fine in autofs 3.

In autofs 4, it worked but with a 10 or 15s delay which we got around via 
the following patch:

--- modules/mount_bind.c.orig   2004-10-29 14:46:11.000000000 +0100
+++ modules/mount_bind.c        2004-11-01 12:49:54.000000000 +0000
@@ -126,7 +126,10 @@
                 }

                 debug(MODPREFIX "calling mount --bind %s %s", what, fullpath);
-
+/* 'what' may itself be on an automounted file system so we need to access it */
+/* to ensure it gets mounted before calling wait_for_lock() inorder to avoid a*/
+/* long delay */
+               (void)access(what,F_OK);
                 wait_for_lock();
                 err = spawnl(LOG_NOTICE, MOUNTED_LOCK,
                              PATH_MOUNT, PATH_MOUNT, "--bind",


In autofs 5, it doesn't work at all, claiming no hostname was supplied. Is 
there any way we can achieve what we want? I can't find any documentation.

Matt

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2006-09-16  6:13 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-25 16:18 autofs {3, 4, 5} and bind mounts which point to other automount points Joe Pruett
2006-08-25 17:25 ` Ian Kent
  -- strict thread matches above, loose matches on Subject: below --
2006-08-24 14:44 Matt Bernstein
2006-08-25  1:29 ` Ian Kent
2006-08-25  6:45   ` Matt Bernstein
2006-08-25  6:58     ` Ian Kent
2006-08-25  7:07     ` Ian Kent
2006-08-25 11:18       ` Ian Kent
2006-08-25 13:09         ` Matt Bernstein
2006-08-25 13:22           ` Matt Bernstein
2006-08-25 14:37             ` Ian Kent
2006-08-27  7:52               ` Ian Kent
2006-08-29 11:11                 ` Ian Kent
2006-08-30 19:44                   ` Matt Bernstein
2006-08-31  3:18                     ` Ian Kent
2006-08-31  9:45                       ` Matt Bernstein
2006-08-31 10:25                         ` Ian Kent
2006-08-31 11:18                           ` Ian Kent
2006-08-31 11:54                             ` Matt Bernstein
2006-09-03 21:31                               ` autofs {3, 4, 5} and bind mounts which point to therr " Matt Bernstein
2006-09-15  9:57                                 ` autofs {3, 4, 5} and bind mounts which point to other " Matt Bernstein
2006-09-15 11:54                                   ` Ian Kent
2006-09-15 12:06                                     ` Matt Bernstein
2006-09-16  6:13                                       ` Ian Kent
2006-08-31 11:57                             ` Ian Kent
2006-08-31 12:10                               ` Matt Bernstein
2006-08-25 14:29           ` Ian Kent
2006-08-25 14:49             ` Matt Bernstein
2006-08-25 14:46 ` Ian Kent
2006-08-25 14:47   ` Matt Bernstein
2006-08-25 15:55     ` Ian Kent
2006-08-25 16:19       ` Matt Bernstein
2006-08-26  3:24         ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.