Re: autofs linux 3.8.13 and "Too many levels of symbolic links"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 29, 2014 at 2:02 PM, Donald Buczek <buczek@xxxxxxxxxxxxx> wrote:
> Hello,
>
> we are trying to switch from amd to autofs. After successfully testing and
> rolling it out to the first several machines, from time to time we get
> directories stuck with "Too many levels of symbolic links" on a path which
> should be automounted via an indirect map.
>
> linux 3.8.13
> autofs 5.0.8
>
> As an example, here is data from a system where the path /scratch/tmp is
> stuck:
>
> http://www.molgen.mpg.de/~buczek/autofs-demo/
>
>   auto.master    # master map
>   auto.scratch    # indirect map for /scratch
>   autofs            # from /etc/defaults
>   typescript       # shows the problem and a bit of gdb dump of kernel
> structures
>   typescript.l     # same with line numbers for reference
>   gdb-macros     # macros used in the gdb session
>
> From typescript.l , line 122ff it is clear, that /scratch/tmp is not
> currently mounted. On the other hand, the gdb session finds the dentry of
> /scratch/tmp which has d_flags 0x70080 (line 99,120). This is
> DCACHE_MANAGE_TRANSIT+DCACHE_NEED_AUTOMOUNT+DCACHE_MOUNTED+DCACHE_RCUACCESS
> with DCACHE_MOUNTED indicating that there should be something mounted
> there(?). I think, this state is faulty and necessarily leads to ELOOP
> during path walk. Probably the situation is known by the gurus here?
>
> Is there any known bug which can lead to this situation? Any advice?

I've seen this case at least once while investigating another problem, but
unfortunately haven't had the time to dig into it. In the case I've seen, it
failed to trigger the mount (with the "Too many levels of symbolic links"
error) but worked a few minutes (seconds?) later if I tried again without
any other action in between. Seems to suggest some race condition.

Can you reproduce the problem at will? Have you tried with a more
recent 3.13+ kernel?

Thanks,
Leonardo
--
To unsubscribe from this list: send the line "unsubscribe autofs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux