Skip to contentSkip to conversation

Simple direct mout problem

DISCUSSION Dana Wellen 2 participants 4 messages Sep 26, 2006 – Oct 2, 2006 Kernel automounter

lore
Share & tools
lore
#0 lore raw

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.

maintainer
#1 lore raw
Quoted 6 lines · Dana Wellen

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.

Quoted 9 lines

/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.

Quoted 9 lines

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

Quoted 7 lines

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.

Quoted 2 lines

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

Huh ????

Quoted 10 lines

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

Quoted 7 lines

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

maintainer
#3 lore raw
Quoted 7 lines · Dana Wellen

Ian,
Finally figured it out, simply put:

auto.master

/- yp:auto.linux

Quoted 7 lines

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.

Quoted 8 lines

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.

Quoted 5 lines

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/&

Quoted 123 lines

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

Quoted 82 lines · Ian Kent
Quoted 7 lines · Dana Wellen

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.

Quoted 9 lines

/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.

Quoted 8 lines

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

Quoted 8 lines

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.

Quoted 2 lines

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

Huh ????

Quoted 8 lines

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

Quoted 8 lines

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

Signature · 4 lines
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs