* simple automount question @ 2008-03-03 4:17 chris barry 2008-03-03 10:08 ` Massimo Mongardini 2008-03-03 11:18 ` Ian Kent 0 siblings, 2 replies; 6+ messages in thread From: chris barry @ 2008-03-03 4:17 UTC (permalink / raw) To: autofs mailing list I've googled, but have not found an answer to this seemingly simple question. I'm automounting /foo from box1 on box2. /foo has no files, just other directories, one of which is bar. box2 $ cd /foo box2 $ ls box2 $ (nothing shows up) box2 $ cd bar box2 $ cd .. box2 $ ls bar box2 $ Q: how do I get all of the directories under /foo to show up after it's automounted? /etc/auto.master /foo /etc/auto.foo --timeout=60 /etc/auto.foo (all on one line) * / -fstype=nfs,rsize=32768,wsize=32768,tcp,rw,bg,hard,intr,noacl,nocto,async 10.20.30.40:/foo/& Is my auto.foo wrong for this application? Thanks, -C ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: simple automount question 2008-03-03 4:17 simple automount question chris barry @ 2008-03-03 10:08 ` Massimo Mongardini 2008-03-03 11:18 ` Ian Kent 1 sibling, 0 replies; 6+ messages in thread From: Massimo Mongardini @ 2008-03-03 10:08 UTC (permalink / raw) To: autofs Chris, if I understood your question right, you just want the folders to be fisible. If that's the case you could try the -g (--ghost) option of automount. cheers Massimo chris barry wrote: > I've googled, but have not found an answer to this seemingly simple > question. > > I'm automounting /foo from box1 on box2. /foo has no files, just other > directories, one of which is bar. > > box2 $ cd /foo > box2 $ ls > box2 $ (nothing shows up) > box2 $ cd bar > box2 $ cd .. > box2 $ ls > bar > box2 $ > > > Q: how do I get all of the directories under /foo to show up after it's > automounted? > > /etc/auto.master > /foo /etc/auto.foo --timeout=60 > > /etc/auto.foo > (all on one line) > * / > -fstype=nfs,rsize=32768,wsize=32768,tcp,rw,bg,hard,intr,noacl,nocto,async 10.20.30.40:/foo/& > > Is my auto.foo wrong for this application? > > > Thanks, > -C > > > _______________________________________________ > autofs mailing list > autofs@linux.kernel.org > http://linux.kernel.org/mailman/listinfo/autofs > -- Massimo Mongardini _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ echo 'Jg!J!hjwf!zpv!bo!bqqmf!boe!zpv!hjwf!nf!bo!bqqmf-!uifo!xf!xjmm!ibwf!bo!bqqmf!fbdi/!Cvu!jg!J!hjwf!zpv!bo!jefb!boe!zpv!hjwf!nf!bo!jefb-!xf!xjmm!ibwf!uxp!jefbt!fbdi!' | perl -pe 's/(.)/chr(ord($1)-1)/ge' #--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--# Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: simple automount question 2008-03-03 4:17 simple automount question chris barry 2008-03-03 10:08 ` Massimo Mongardini @ 2008-03-03 11:18 ` Ian Kent 2008-03-03 14:59 ` chris barry 1 sibling, 1 reply; 6+ messages in thread From: Ian Kent @ 2008-03-03 11:18 UTC (permalink / raw) To: chris barry; +Cc: autofs mailing list On Sun, 2008-03-02 at 23:17 -0500, chris barry wrote: > I've googled, but have not found an answer to this seemingly simple > question. > > I'm automounting /foo from box1 on box2. /foo has no files, just other > directories, one of which is bar. No you're not. You're mounting individual directories from box2. Things like, /foo/bar, /foo/baz, etc, are mounted individually, as requests to access them come in. > > box2 $ cd /foo > box2 $ ls > box2 $ (nothing shows up) > box2 $ cd bar > box2 $ cd .. > box2 $ ls > bar > box2 $ > > > Q: how do I get all of the directories under /foo to show up after it's > automounted? > > /etc/auto.master > /foo /etc/auto.foo --timeout=60 > > /etc/auto.foo > (all on one line) > * / > -fstype=nfs,rsize=32768,wsize=32768,tcp,rw,bg,hard,intr,noacl,nocto,async 10.20.30.40:/foo/& How would autofs know what these directories are, to create them, from that map, * doesn't really say much and, even though this map has an ip address in the location others may not? Ian ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: simple automount question 2008-03-03 11:18 ` Ian Kent @ 2008-03-03 14:59 ` chris barry 2008-03-05 3:01 ` Ian Kent 0 siblings, 1 reply; 6+ messages in thread From: chris barry @ 2008-03-03 14:59 UTC (permalink / raw) To: autofs mailing list On Mon, 2008-03-03 at 20:18 +0900, Ian Kent wrote: > On Sun, 2008-03-02 at 23:17 -0500, chris barry wrote: > > I've googled, but have not found an answer to this seemingly simple > > question. > > > > I'm automounting /foo from box1 on box2. /foo has no files, just other > > directories, one of which is bar. > > No you're not. > > You're mounting individual directories from box2. > Things like, /foo/bar, /foo/baz, etc, are mounted individually, as > requests to access them come in. > > > > > box2 $ cd /foo > > box2 $ ls > > box2 $ (nothing shows up) > > box2 $ cd bar > > box2 $ cd .. > > box2 $ ls > > bar > > box2 $ > > > > > > Q: how do I get all of the directories under /foo to show up after it's > > automounted? > > > > /etc/auto.master > > /foo /etc/auto.foo --timeout=60 > > > > /etc/auto.foo > > (all on one line) > > * / > > -fstype=nfs,rsize=32768,wsize=32768,tcp,rw,bg,hard,intr,noacl,nocto,async 10.20.30.40:/foo/& > > How would autofs know what these directories are, to create them, from > that map, * doesn't really say much and, even though this map has an ip > address in the location others may not? I though '*' said everything ;) > > Ian > So, the problem is auto.foo. I don't want it to make individual mounts to every dir in /foo, I just want it to mount /foo when someone accesses /foo/whatever. I'm assuming it should look like: (all on one line) /foo / -fstype=nfs,rsize=32768,wsize=32768,tcp,rw,bg,hard,intr,noacl,nocto,async 10.20.30.40:/foo/ I like the fact that /foo is disconnected automatically, so I don't want to use fstab. Thanks, -C ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: simple automount question 2008-03-03 14:59 ` chris barry @ 2008-03-05 3:01 ` Ian Kent 2008-03-05 7:04 ` chris barry 0 siblings, 1 reply; 6+ messages in thread From: Ian Kent @ 2008-03-05 3:01 UTC (permalink / raw) To: chris barry; +Cc: autofs mailing list On Mon, 2008-03-03 at 09:59 -0500, chris barry wrote: > On Mon, 2008-03-03 at 20:18 +0900, Ian Kent wrote: > > On Sun, 2008-03-02 at 23:17 -0500, chris barry wrote: > > > I've googled, but have not found an answer to this seemingly simple > > > question. > > > > > > I'm automounting /foo from box1 on box2. /foo has no files, just other > > > directories, one of which is bar. > > > > No you're not. > > > > You're mounting individual directories from box2. > > Things like, /foo/bar, /foo/baz, etc, are mounted individually, as > > requests to access them come in. > > > > > > > > box2 $ cd /foo > > > box2 $ ls > > > box2 $ (nothing shows up) > > > box2 $ cd bar > > > box2 $ cd .. > > > box2 $ ls > > > bar > > > box2 $ > > > > > > > > > Q: how do I get all of the directories under /foo to show up after it's > > > automounted? > > > > > > /etc/auto.master > > > /foo /etc/auto.foo --timeout=60 > > > > > > /etc/auto.foo > > > (all on one line) > > > * / > > > -fstype=nfs,rsize=32768,wsize=32768,tcp,rw,bg,hard,intr,noacl,nocto,async 10.20.30.40:/foo/& > > > > How would autofs know what these directories are, to create them, from > > that map, * doesn't really say much and, even though this map has an ip > > address in the location others may not? > > I though '*' said everything ;) Read what I said again and ask yourself this question (again). How does autofs know what these directories are, since it can only rely on the map, not what may be inferred from the mount location (it could include macros that aren't known till mount time! > > > > > Ian > > > > So, the problem is auto.foo. I don't want it to make individual mounts > to every dir in /foo, I just want it to mount /foo when someone > accesses /foo/whatever. I'm assuming it should look like: > > (all on one line) > /foo / > -fstype=nfs,rsize=32768,wsize=32768,tcp,rw,bg,hard,intr,noacl,nocto,async 10.20.30.40:/foo/ What are you trying to say? Describe what you are asking and include the version of autofs. If you are saying that 10.20.30.40:/foo is an export that you want to mount on a single level directory path, /foo in this case, then you will need to use a direct mount and version 5 of autofs. This won't work in version 4 and never will. For example, in the master map /- /etc/auto.direct and in auto.direct /foo 10.20.30.40:/foo will do this. Ian ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: simple automount question 2008-03-05 3:01 ` Ian Kent @ 2008-03-05 7:04 ` chris barry 0 siblings, 0 replies; 6+ messages in thread From: chris barry @ 2008-03-05 7:04 UTC (permalink / raw) To: Ian Kent; +Cc: autofs mailing list On Wed, 2008-03-05 at 12:01 +0900, Ian Kent wrote: > If you are saying that 10.20.30.40:/foo is an export that you want to > mount on a single level directory path, /foo in this case, then you > will > need to use a direct mount and version 5 of autofs. This won't work in > version 4 and never will. > > For example, in the master map > /- /etc/auto.direct > > and in auto.direct > /foo 10.20.30.40:/foo > > will do this. > > Ian Ian, That was the answer I was looking for. Thank You, -C ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-03-05 7:04 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-03-03 4:17 simple automount question chris barry 2008-03-03 10:08 ` Massimo Mongardini 2008-03-03 11:18 ` Ian Kent 2008-03-03 14:59 ` chris barry 2008-03-05 3:01 ` Ian Kent 2008-03-05 7:04 ` chris barry
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.