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

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

 



Hmmm, so I did this, and the only thing I see:

Jan 19 08:40:38 hera automount[15228]: Starting automounter version
5.1.8, master map auto.master
Jan 19 08:40:38 hera automount[15228]: using kernel protocol version
5.05
Jan 19 08:40:38 hera automount[15228]: lookup_nss_read_master: reading
master files auto.master
Jan 19 08:40:38 hera automount[15228]: do_init: parse(sun): init
gathered global options: (null)
Jan 19 08:40:38 hera automount[15228]: spawn_mount: mtab link detected,
passing -n to mount
Jan 19 08:40:38 hera automount[15228]: spawn_umount: mtab link detected,
passing -n to mount
Jan 19 08:40:38 hera automount[15228]: no mounts in table

then:

# mount | grep autofs
/etc/autofs/auto.home on /home type autofs
(rw,relatime,fd=-1,pgrp=29000,timeout=300,minproto=5,maxproto=5,indirect)

the /net isn't mounted at all

reverting back to 5.1.6, I see this:

Jan 19 08:43:30 hera automount[16125]: Starting automounter version 5.1.6, master map auto.master
Jan 19 08:43:30 hera automount[16125]: using kernel protocol version 5.05
Jan 19 08:43:30 hera automount[16125]: lookup_nss_read_master: reading master files auto.master
Jan 19 08:43:30 hera automount[16125]: do_init: parse(sun): init gathered global options: (null)
Jan 19 08:43:30 hera automount[16125]: spawn_mount: mtab link detected, passing -n to mount
Jan 19 08:43:30 hera automount[16125]: spawn_umount: mtab link detected, passing -n to mount
Jan 19 08:43:30 hera automount[16125]: lookup_read_master: lookup(file): read entry /home
Jan 19 08:43:30 hera automount[16125]: lookup_read_master: lookup(file): read entry /net
Jan 19 08:43:30 hera automount[16125]: master_do_mount: mounting /home
Jan 19 08:43:30 hera automount[16125]: automount_path_to_fifo: fifo name /run/autofs.fifo-home
Jan 19 08:43:30 hera automount[16125]: lookup_nss_read_map: reading map file /etc/autofs/auto.home
Jan 19 08:43:30 hera automount[16125]: do_init: parse(sun): init gathered global options: (null)
Jan 19 08:43:30 hera automount[16125]: spawn_mount: mtab link detected, passing -n to mount
Jan 19 08:43:30 hera automount[16125]: spawn_umount: mtab link detected, passing -n to mount
Jan 19 08:43:30 hera automount[16125]: remount_active_mount: trying to re-connect to mount /home
Jan 19 08:43:30 hera automount[16125]: mounted indirect on /home with timeout 300, freq 75 seconds
Jan 19 08:43:30 hera automount[16125]: lookup_mount: lookup(program): looking up user
Jan 19 08:43:30 hera automount[16125]: lookup_mount: lookup(program): user -> -fstype=nfs4,hard,sec=sys,nodev,nosuid,wsize=32768,rsize=32768 / hera:/export/home/user
Jan 19 08:43:30 hera automount[16125]: parse_mount: parse(sun): expanded entry: -fstype=nfs4,hard,sec=sys,nodev,nosuid,wsize=32768,rsize=32768 / hera:/export/home/user
Jan 19 08:43:30 hera automount[16125]: parse_mount: parse(sun): gathered options: fstype=nfs4,hard,sec=sys,nodev,nosuid,wsize=32768,rsize=32768
Jan 19 08:43:30 hera automount[16125]: parse_mount: parse(sun): dequote("/") -> /
Jan 19 08:43:30 hera automount[16125]: parse_mapent: parse(sun): gathered options: fstype=nfs4,hard,sec=sys,nodev,nosuid,wsize=32768,rsize=32768
Jan 19 08:43:30 hera automount[16125]: parse_mapent: parse(sun): dequote("hera:/export/home/user") -> hera:/export/home/user
Jan 19 08:43:30 hera automount[16125]: update_offset_entry: parse(sun): updated multi-mount offset / -> -fstype=nfs4,hard,sec=sys,nodev,nosuid,wsize=32768,rsize=32768 hera:/export/home/user
Jan 19 08:43:30 hera automount[16125]: parse_mapent: parse(sun): gathered options: fstype=nfs4,hard,sec=sys,nodev,nosuid,wsize=32768,rsize=32768
Jan 19 08:43:30 hera automount[16125]: parse_mapent: parse(sun): dequote("hera:/export/home/user") -> hera:/export/home/user
Jan 19 08:43:30 hera automount[16125]: sun_mount: parse(sun): mounting root /home/user/, mountpoint user, what hera:/export/home/user, fstype nfs4, options hard,sec=sys,nodev,nosuid,wsize=32768,rsize=32768
Jan 19 08:43:30 hera automount[16125]: re-connected to /home/user
Jan 19 08:43:30 hera automount[16125]: remount_active_mount: re-connected to mount /home
Jan 19 08:43:30 hera automount[16125]: st_ready: st_ready(): state = 0 path /home
Jan 19 08:43:30 hera automount[16125]: master_do_mount: mounting /net
Jan 19 08:43:30 hera automount[16125]: automount_path_to_fifo: fifo name /run/autofs.fifo-net
Jan 19 08:43:30 hera automount[16125]: lookup_nss_read_map: reading map file /etc/autofs/auto.net
Jan 19 08:43:30 hera automount[16125]: do_init: parse(sun): init gathered global options: (null)
Jan 19 08:43:30 hera automount[16125]: mounted indirect on /net with timeout 300, freq 75 seconds
Jan 19 08:43:30 hera automount[16125]: st_ready: st_ready(): state = 0 path /net

So it appears that 5.1.8 for some reason doesn't eat my auto.net at all?

I posted my conf in https://bugs.gentoo.org/831014

Fabian

On 18-01-2022 18:24:11 +0800, Ian Kent wrote:
> On Tue, 2022-01-18 at 17:00 +0800, Yixun Lan wrote:
> > Hi Ian Kent:
> > 
> > thanks for your quick reply
> > 
> > On 16:44 Tue 18 Jan     , Ian Kent wrote:
> > > On Tue, 2022-01-18 at 16:27 +0800, Yixun Lan wrote:
> > > > Hi Ian Kent:
> > > > 
> > > > Fabian reported a bug about failing to mount /net with autofs-
> > > > 5.1.8,
> > > > but have no problem with previous 5.1.6
> > > > 
> > > > I'm not able to reproduce this error (need more info about the
> > > > settings)
> > > > So write to the mailinglist to see if you can shed some light on
> > > > this..
> > > > 
> > > > 
> > > > The most verbose error messages like this:
> > > > 
> > > > Jan 11 13:53:09 khnum automount[3614]: mount_autofs_offset:
> > > > failed to
> > > > mount offset trigger  at 
> > > > Jan 11 13:56:24 khnum automount[3614]: set_tsd_user_vars: failed
> > > > to
> > > > get
> > > > buffer size for getpwuid_r
> > > > Jan 11 14:56:52 khnum kernel:
> > > > autofs4:pid:10191:validate_dev_ioctl:
> > > > invalid path supplied for cmd(0xc018937e)
> > > 
> > > I've had several bug reports which have been mostly fixed now but
> > > these
> > > log entries don't look like anything I have seen so far.
> > > 
> > > I haven't yet pushed those changes to the repository either.
> > > How would you like to proceed?
> > > I could post a patch series to you or the list to try if you wish.
> > either way work for me, but I need to be able to reproduce this first
> > I will leave Fabian for comments..
> 
> A debug log is almost always what I ask for.
> 
> Setting "logging = debug" in /etc/autofs.conf will do it.
> You need to get a log from start of automount to after the problem
> occurs.
> 
> 
> Ian
> 

-- 
Fabian Groffen
Gentoo on a different level

Attachment: signature.asc
Description: PGP signature


[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