Re: autofs-5.1.8: fail to mount certain /net shares

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

 



On 20:24 Fri 21 Jan     , Ian Kent wrote:
> On Fri, 2022-01-21 at 08:07 +0100, Fabian Groffen wrote:
> > On 20-01-2022 19:41:11 +0800, Ian Kent wrote:
> > > > If it's not using the expected location for autofs.conf that's a
> > > > build
> > > > problem.
> > > > 
> > > > Can you get me a build log.
> > > 
> > > And what does "automount -V" say?
> > 
> > Linux automount version 5.1.8
> > 
> > Directories:
> >         config dir:     /etc/conf.d
> >         maps dir:       /etc/autofs
> >         modules dir:    /usr/lib64/autofs
> > 
> > Compile options:
> >   DISABLE_MOUNT_LOCKING ENABLE_FORCED_SHUTDOWN
> > ENABLE_IGNORE_BUSY_MOUNTS 
> >   LIBXML2_WORKAROUND WITH_LIBTIRPC 
> > 
> > (this is identical to the 5.1.6 output)
> > 
> > build-log attached
> 
> That all looks good, including the build log.
> 
> How about we try stopping the autofs service and run automount
> manually and see what we get.
> 
> Stop the service then run "automount -fd | tee autofs.log".
> 
> It might be useful to add a stderr redirect too but I usually
> don't need it, eg. "automount -fd 2>&1 | tee autofs.log".
> 
> Ian
Hi Fabian:
  Any update on this?

Hi ALL:
  I've also give it a shot locally, and still can't reproduce this..

=========== here is logs

$ sudo rc-service autofs start
  * Starting automounter ... [ ok ]

$ sudo  grep automount /var/log/messages | tee automout.log
Jan 26 16:47:30 serv0 automount[21256]: Starting automounter version 5.1.8, master map auto.master
Jan 26 16:47:30 serv0 automount[21256]: using kernel protocol version 5.05
Jan 26 16:47:30 serv0 automount[21256]: lookup_nss_read_master: reading master files auto.master
Jan 26 16:47:30 serv0 automount[21256]: do_init: parse(sun): init gathered global options: (null)
Jan 26 16:47:30 serv0 automount[21256]: spawn_mount: mtab link detected, passing -n to mount
Jan 26 16:47:30 serv0 automount[21256]: spawn_umount: mtab link detected, passing -n to mount
Jan 26 16:47:30 serv0 automount[21256]: lookup_read_master: lookup(file): read entry /net
Jan 26 16:47:30 serv0 automount[21256]: master_do_mount: mounting /net
Jan 26 16:47:30 serv0 automount[21256]: automount_path_to_fifo: fifo name /run/autofs.fifo-net
Jan 26 16:47:30 serv0 automount[21256]: lookup_nss_read_map: reading map file /etc/autofs/auto.net
Jan 26 16:47:30 serv0 automount[21256]: do_init: parse(sun): init gathered global options: (null)
Jan 26 16:47:30 serv0 automount[21256]: spawn_mount: mtab link detected, passing -n to mount
Jan 26 16:47:30 serv0 automount[21256]: spawn_umount: mtab link detected, passing -n to mount
Jan 26 16:47:30 serv0 automount[21256]: mounted indirect on /net with timeout 300, freq 75 seconds
Jan 26 16:47:30 serv0 automount[21256]: st_ready: st_ready(): state = 0 path /net

serv0 ~ $ grep  "^opts" /etc/autofs/auto.net
opts="-fstype=nfs4,hard,sec=sys,nodev,nosuid,wsize=32768,rsize=32768"

serv0 ~ $ mount |grep net
net_cls on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
net_prio on /sys/fs/cgroup/net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio)
/etc/autofs/auto.net on /net type autofs (rw,relatime,fd=7,pgrp=21256,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=11850419)
serv0 ~ $ ls /net/serv2/home/gentoo
distfiles 
serv0 ~ $ mount |grep net
net_cls on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
net_prio on /sys/fs/cgroup/net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio)
/etc/autofs/auto.net on /net type autofs (rw,relatime,fd=7,pgrp=21256,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=11850419)
/etc/autofs/auto.net on /net/serv2/home/gentoo type autofs (rw,relatime,fd=7,pgrp=21256,timeout=300,minproto=5,maxproto=5,offset,pipe_ino=11850419)
serv2:/home/gentoo on /net/serv2/home/gentoo type nfs4 (rw,nosuid,nodev,relatime,vers=4.1,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.90.150,local_lock=none,addr=192.168.90.159)

$ automount -V

Linux automount version 5.1.8

Directories:
        config dir:     /etc/conf.d
        maps dir:       /etc/autofs
        modules dir:    /usr/lib64/autofs

Compile options:
  DISABLE_MOUNT_LOCKING ENABLE_FORCED_SHUTDOWN ENABLE_IGNORE_BUSY_MOUNTS
  LIBXML2_WORKAROUND WITH_LIBTIRPC
-- 
Yixun Lan (dlan)
Gentoo Linux Developer
GPG Key ID AABEFD55



[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