All of lore.kernel.org
 help / color / mirror / Atom feed
* Simple direct mout problem
@ 2006-09-26 18:02 Dana Wellen
  2006-09-27  2:33 ` Ian Kent
  0 siblings, 1 reply; 4+ messages in thread
From: Dana Wellen @ 2006-09-26 18:02 UTC (permalink / raw)
  To: autofs

Hello,

   Trying to setup a simple direct map using nis and the autofs automounter:

automount -V
Linux automount version 4.1.3-67

/etc/auto.master

/-      yp:auto.linux


ypcat -k auto.linux

/proj server2:/vol/proj/xx_proj

This is documented in the readme file in 
/usr/share/doc/aufofs-4.1.3/README.direct

When the autofs is started or restarted in the /var/log/messages I get :

automount[25461]: cache_ghost: entry in yp:auto.linux not valid map 
format, key /proj

If I use indirect mounts it works however direct mounts would be a lot 
easier for my users in that
they will be able to see the directories in the mounted directory.  The 
ghost function doesn't work
well because it will only show the mounted directories or the 
directories that have been mounted
since the last restart of the autofs.

  If I copy the file to the /etc directory it still has a similar error.


aufofs-4.1.3/README.direct
-- For example if we were using NIS we might have something like
the map entries below.

In the master map:

/-      autofs.global

and in autofs.global:

/nfs/apps/mozilla       bogus:/usr/local/moxilla
/nfs/data/budgets       tiger:/usr/local/budgets
/tst/sbin               bogus:/usr/sbin

and so on.

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

* Re: Simple direct mout problem
  2006-09-26 18:02 Simple direct mout problem Dana Wellen
@ 2006-09-27  2:33 ` Ian Kent
  2006-09-27 18:05   ` Dana Wellen
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Kent @ 2006-09-27  2:33 UTC (permalink / raw)
  To: Dana Wellen; +Cc: autofs

On Tue, 2006-09-26 at 14:02 -0400, Dana Wellen wrote:
> Hello,
> 
>    Trying to setup a simple direct map using nis and the autofs automounter:
> 
> automount -V
> Linux automount version 4.1.3-67

This version is way to old.
Update it.

> 
> /etc/auto.master
> 
> /-      yp:auto.linux
> 
> 
> ypcat -k auto.linux
> 
> /proj server2:/vol/proj/xx_proj

Nop.
There are an number of limitations with direct mounts in version 4.
Single level direct mounts is one.

> 
> This is documented in the readme file in 
> /usr/share/doc/aufofs-4.1.3/README.direct
> 
> When the autofs is started or restarted in the /var/log/messages I get :
> 
> automount[25461]: cache_ghost: entry in yp:auto.linux not valid map 
> format, key /proj
> 
> If I use indirect mounts it works however direct mounts would be a lot 
> easier for my users in that
> they will be able to see the directories in the mounted directory.  The 
> ghost function doesn't work
> well because it will only show the mounted directories or the 
> directories that have been mounted
> since the last restart of the autofs.

That's not correct.

> 
>   If I copy the file to the /etc directory it still has a similar error.

Huh ????

> 
> 
> aufofs-4.1.3/README.direct
> -- For example if we were using NIS we might have something like
> the map entries below.
> 
> In the master map:
> 
> /-      autofs.global
> 
> and in autofs.global:
> 
> /nfs/apps/mozilla       bogus:/usr/local/moxilla
> /nfs/data/budgets       tiger:/usr/local/budgets
> /tst/sbin               bogus:/usr/sbin
> 
> and so on.

Note that the RedHat package has a config entry that disables direct
mounts by default because of the limitations.

Change it if you wish to try using them (in /etc/sysconfig/autofs).

Ian

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

* Re: Simple direct mout problem
  2006-09-27  2:33 ` Ian Kent
@ 2006-09-27 18:05   ` Dana Wellen
  2006-10-02 17:11     ` Ian Kent
  0 siblings, 1 reply; 4+ messages in thread
From: Dana Wellen @ 2006-09-27 18:05 UTC (permalink / raw)
  To: autofs

[-- Attachment #1: Type: text/html, Size: 4682 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

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

* Re: Simple direct mout problem
  2006-09-27 18:05   ` Dana Wellen
@ 2006-10-02 17:11     ` Ian Kent
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Kent @ 2006-10-02 17:11 UTC (permalink / raw)
  To: Dana Wellen; +Cc: autofs

On Wed, 2006-09-27 at 14:05 -0400, Dana Wellen wrote:
> Ian,
>   Finally figured it out, simply put:
> 
> auto.master
> 
> /-      yp:auto.linux
> 
> auto.linux
> 
> /some_mount_directory/example                   server:/nfs_export
> 
> works.  However if the yp map is changed to
> 
> /example                  server:/nsf_export 

That's what I said before.

> 
> it fails.  The error in the messages file aren't very helpful in
> figuring this simple error out.  
> 
> Will the next version (5) work more like the Sun automounter? I know
> in our case we are moving off of standard 
> Unix to Linux due to support being dropped for our main platform
> (HP-UX) for our CAD software vendors.

Yes. It does.

> 
> What I am seeing with indirect mounts and ghosting is that the only
> directories visible in the mount directory
> are directories that are mounted or been mounted but won't show the
> directories never mounted, examples:

No. It only creates directories that it can know about in advance.

For example, what directories would you create for a map entry:

*	&:/server/&

> 
> Before any mounts:
> 
> ls -la /proj
> total 8
> drwxr-xr-x   2 root root    0 Sep 27 14:02 .
> drwxr-xr-x  29 root root 4096 Sep 27 14:01 ..
> 
> ls /proj/some_directory
> file1 file2 directory1 directory2 etc..
> 
> ls -la /proj
> total 12
> drwxr-xr-x   3 root   root    0 Sep 27 14:03 .
> drwxr-xr-x  29 root   root 4096 Sep 27 14:01 ..
> drwxrwxr-x   9 root root  4096 Nov  3  2005 some_directory
> 
> Well after the 60 second timeout
> ls -la /proj
> total 12
> drwxr-xr-x   3 root   root    0 Sep 27 14:03 .
> drwxr-xr-x  29 root   root 4096 Sep 27 14:01 ..
> drwxrwxr-x   9 root root  4096 Nov  3  2005 some_directory
> 
> This directory holds over 100 subdirectories that the user can't see
> and can only be accessed if
> they know the name of the subdirectory.
> 
> Thanks,
> Dana
> 
> 
> Ian Kent wrote: 
> > On Tue, 2006-09-26 at 14:02 -0400, Dana Wellen wrote:
> >   
> > > Hello,
> > > 
> > >    Trying to setup a simple direct map using nis and the autofs automounter:
> > > 
> > > automount -V
> > > Linux automount version 4.1.3-67
> > >     
> > 
> > This version is way to old.
> > Update it.
> > 
> >   
> > > /etc/auto.master
> > > 
> > > /-      yp:auto.linux
> > > 
> > > 
> > > ypcat -k auto.linux
> > > 
> > > /proj server2:/vol/proj/xx_proj
> > >     
> > 
> > Nop.
> > There are an number of limitations with direct mounts in version 4.
> > Single level direct mounts is one.
> > 
> >   
> > > This is documented in the readme file in 
> > > /usr/share/doc/aufofs-4.1.3/README.direct
> > > 
> > > When the autofs is started or restarted in the /var/log/messages I get :
> > > 
> > > automount[25461]: cache_ghost: entry in yp:auto.linux not valid map 
> > > format, key /proj
> > > 
> > > If I use indirect mounts it works however direct mounts would be a lot 
> > > easier for my users in that
> > > they will be able to see the directories in the mounted directory.  The 
> > > ghost function doesn't work
> > > well because it will only show the mounted directories or the 
> > > directories that have been mounted
> > > since the last restart of the autofs.
> > >     
> > 
> > That's not correct.
> > 
> >   
> > >   If I copy the file to the /etc directory it still has a similar error.
> > >     
> > 
> > Huh ????
> > 
> >   
> > > aufofs-4.1.3/README.direct
> > > -- For example if we were using NIS we might have something like
> > > the map entries below.
> > > 
> > > In the master map:
> > > 
> > > /-      autofs.global
> > > 
> > > and in autofs.global:
> > > 
> > > /nfs/apps/mozilla       bogus:/usr/local/moxilla
> > > /nfs/data/budgets       tiger:/usr/local/budgets
> > > /tst/sbin               bogus:/usr/sbin
> > > 
> > > and so on.
> > >     
> > 
> > Note that the RedHat package has a config entry that disables direct
> > mounts by default because of the limitations.
> > 
> > Change it if you wish to try using them (in /etc/sysconfig/autofs).
> > 
> > Ian
> > 
> > 
> > 
> >   
> 
> -- 
> 
> 
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs

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

end of thread, other threads:[~2006-10-02 17:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 18:02 Simple direct mout problem Dana Wellen
2006-09-27  2:33 ` Ian Kent
2006-09-27 18:05   ` Dana Wellen
2006-10-02 17:11     ` 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.