Skip to contentSkip to conversation

autofs default behavior on syminks?

DISCUSSION idiot)_) supreme 2 participants 2 messages Apr 10, 2004 – Apr 11, 2004 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Hi all

We are running autofs4.1.0 with 2.4.22 on about 100 machines, and 2.6.5 on about 100 machines with all of the the kernel patches for both.

What is autofs's behavior trying to cross symlinks when you type 'ls'? autofs seems to time out a lot faster than AMD for example.

We are occasionally seeing problems timeouts trying to cross symlinks. If I type 'ls' it might show

abc -> /net/emc/u11

as a broken symlink

but if I type 'ls /net/emc/u11'
the symlink comes back.

My auto.master line contains
/net/emc auto.emc --timeout 3600 --ghost

my auto.emc line contains

u11 -rw,hard,intr,wsize=32768,rsize=32768,vers=3,proto=tcp,retry=2000,timeo=1000,retrans=500 emc1.bbn.com:/&

I know some of these options do not apply for 'tcp', but I did not know how autofs treated broken symlinks. I am not sure if this is an nfs problem or an automount problem. Any insight would be appreciated.

Thanks

Eric

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/

#1 lore raw
Quoted 4 lines · idiot)_) supreme

Hi all

We are running autofs4.1.0 with 2.4.22 on about 100 machines, and 2.6.5 on about 100 machines with all of the the kernel patches for both.

Cool. I'm keen to hear how things go. Especially with 2.6. A note to the list from time to time would be appreciated.

Quoted 8 lines

What is autofs's behavior trying to cross symlinks when you type 'ls'? autofs seems to time out a lot faster than AMD for example.

We are occasionally seeing problems timeouts trying to cross symlinks. If I type 'ls' it might show

Quoted 7 lines

abc -> /net/emc/u11

as a broken symlink

but if I type 'ls /net/emc/u11'
the symlink comes back.

In this case autofs doesn't do anything special with symlinks. The colour ls does the 'stat'ing and the results are shown.

This does sound like an autofs bug or lilitation perhaps. Indeed 'stat'ing the mountpoint itself should not mount it, otherwise we would get undesired mounts, so autofs lies and gives the stat of the autofs directory instead of the mounted. Actually autofs just doesn't do anything.

It's interesting that the symlink shows broken occasionally and not all the time. There must be a bad return coming back for some reason. So how occasionally?

Perhaps the 'stat' occurs during an expire sometimes. That could cause a fail return.

Ian