Re: Options from auto.master are not passed to included maps

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

 



On Tue, 2012-03-27 at 15:10 -0400, Leonardo Chiquitto wrote:
> Ian, list
> 
> I'm debugging a problem in AutoFS where map options defined in
> auto.master are not being passed over to included maps. Please
> consider the following AutoFS configuration:

fyi, I started working on this but found that, after an update, mounts
are not expiring on my system any more. That's bad so I have to work on
that. I'll get back to this when I can.

> 
>   # /etc/auto.master:
>   /test   file:/etc/auto.test     nfsvers=4,rw
> 
>   # /etc/auto.test:
>   zzzz    server:/zzzz
>   +file:/etc/auto.test1
>   +file:/etc/auto.test2
> 
>   # /etc/auto.test1:
>   aaaa    server:/aaaa
> 
>   # /etc/auto.test2:
>   bbbb    server:/bbbb
> 
> The options "nfsvers=4,rw" are correctly used when mounting
> /test/zzzz, but not when mounting /test/aaaa or /test/bbbb.
> 
> It looks like the code to pass the options is not yet implemented.
> This is exactly what the TODO comment is prepare_plus_include()
> is saying, right? Do you know if there's any way to workaround this
> limitation with a configuration change?
> 
> Here are the debug logs, for reference, first from the attempt to mount
> /test/zzzz:
> 
> Mar 27 15:00:55 lotus automount[20901]: handle_packet: type = 3
> Mar 27 15:00:55 lotus automount[20901]:
> handle_packet_missing_indirect: token 19, name zzzz, request pid 20961
> Mar 27 15:00:55 lotus automount[20901]: attempting to mount entry /test/zzzz
> Mar 27 15:00:55 lotus automount[20901]: lookup_mount: lookup(file):
> looking up zzzz
> Mar 27 15:00:55 lotus automount[20901]: lookup_mount: lookup(file):
> zzzz -> server:/zzzz
> Mar 27 15:00:55 lotus automount[20901]: parse_mount: parse(sun):
> expanded entry: server:/zzzz
> Mar 27 15:00:55 lotus automount[20901]: parse_mount: parse(sun):
> gathered options: nfsvers=4,rw
> Mar 27 15:00:55 lotus automount[20901]: parse_mount: parse(sun):
> dequote("server:/zzzz") -> server:/zzzz
> Mar 27 15:00:55 lotus automount[20901]: parse_mount: parse(sun): core
> of entry: options=nfsvers=4,rw, loc=server:/zzzz
> Mar 27 15:00:55 lotus automount[20901]: sun_mount: parse(sun):
> mounting root /test, mountpoint zzzz, what server:/zzzz, fstype nfs,
> options nfsvers=4,rw
> Mar 27 15:00:55 lotus automount[20901]: mount_mount: mount(nfs):
> root=/test name=zzzz what=server:/zzzz, fstype=nfs,
> options=nfsvers=4,rw
> Mar 27 15:00:55 lotus automount[20901]: mount_mount: mount(nfs): nfs
> options="nfsvers=4,rw", nobind=0, nosymlink=0, ro=0
> Mar 27 15:00:55 lotus automount[20901]: get_nfs_info: called with host
> server(10.1.1.4) proto tcp version 0x30
> Mar 27 15:00:55 lotus automount[20901]: get_nfs_info: nfs v3 rpc ping
> time: 0.000215
> Mar 27 15:00:55 lotus automount[20901]: get_nfs_info: nfs v2 rpc ping
> time: 0.000248
> Mar 27 15:00:55 lotus automount[20901]: get_nfs_info: host server cost
> 231 weight 0
> Mar 27 15:00:55 lotus automount[20901]: get_nfs_info: called with host
> server(10.1.1.4) proto udp version 0x30
> Mar 27 15:00:55 lotus automount[20901]: get_nfs_info: nfs v3 rpc ping
> time: 0.000119
> Mar 27 15:00:55 lotus automount[20901]: get_nfs_info: nfs v2 rpc ping
> time: 0.000566
> Mar 27 15:00:55 lotus automount[20901]: get_nfs_info: host server cost
> 342 weight 0
> Mar 27 15:00:55 lotus automount[20901]: prune_host_list: selected
> subset of hosts that support NFS3 over TCP
> Mar 27 15:00:55 lotus automount[20901]: mount_mount: mount(nfs):
> calling mkdir_path /test/zzzz
> 
> Mar 27 15:00:55 lotus automount[20901]: mount_mount: mount(nfs):
> calling mount -t nfs -s -o nfsvers=4,rw server:/zzzz /test/zzzz  <==
> options here
> 
> Mar 27 15:00:55 lotus automount[20901]: >> mount.nfs: mounting
> server:/zzzz failed, reason given by server:
> Mar 27 15:00:55 lotus automount[20901]: >>   No such file or directory
> Mar 27 15:00:55 lotus automount[20901]: mount(nfs): nfs: mount failure
> server:/zzzz on /test/zzzz
> Mar 27 15:00:55 lotus automount[20901]: dev_ioctl_send_fail: token = 19
> Mar 27 15:00:55 lotus automount[20901]: failed to mount /test/zzzz
> 
> And from an attempt to mount /test/aaaa:
> 
> Mar 27 15:01:44 lotus automount[20901]: handle_packet: type = 3
> Mar 27 15:01:44 lotus automount[20901]:
> handle_packet_missing_indirect: token 20, name aaaa, request pid 21030
> Mar 27 15:01:44 lotus automount[20901]: attempting to mount entry /test/aaaa
> Mar 27 15:01:44 lotus automount[20901]: lookup_mount: lookup(file):
> looking up aaaa
> Mar 27 15:01:44 lotus automount[20901]: lookup_one: lookup(file):
> lookup included map +file:/etc/auto.test1
> Mar 27 15:01:44 lotus automount[20901]: lookup_mount: lookup(file):
> looking up aaaa
> Mar 27 15:01:44 lotus automount[20901]: lookup_mount: lookup(file):
> aaaa -> server:/aaaa
> Mar 27 15:01:44 lotus automount[20901]: parse_mount: parse(sun):
> expanded entry: server:/aaaa
> Mar 27 15:01:44 lotus automount[20901]: parse_mount: parse(sun):
> gathered options:
> Mar 27 15:01:44 lotus automount[20901]: parse_mount: parse(sun):
> dequote("server:/aaaa") -> server:/aaaa
> Mar 27 15:01:44 lotus automount[20901]: parse_mount: parse(sun): core
> of entry: options=, loc=server:/aaaa
> Mar 27 15:01:44 lotus automount[20901]: sun_mount: parse(sun):
> mounting root /test, mountpoint aaaa, what server:/aaaa, fstype nfs,
> options (null)
> Mar 27 15:01:44 lotus automount[20901]: mount_mount: mount(nfs):
> root=/test name=aaaa what=server:/aaaa, fstype=nfs, options=(null)
> Mar 27 15:01:44 lotus automount[20901]: get_nfs_info: called with host
> server(10.1.1.4) proto tcp version 0x30
> Mar 27 15:01:44 lotus automount[20901]: get_nfs_info: nfs v3 rpc ping
> time: 0.000277
> Mar 27 15:01:44 lotus automount[20901]: get_nfs_info: nfs v2 rpc ping
> time: 0.000143
> Mar 27 15:01:44 lotus automount[20901]: get_nfs_info: host server cost
> 210 weight 0
> Mar 27 15:01:44 lotus automount[20901]: get_nfs_info: called with host
> server(10.1.1.4) proto udp version 0x30
> Mar 27 15:01:44 lotus automount[20901]: get_nfs_info: nfs v3 rpc ping
> time: 0.000140
> Mar 27 15:01:44 lotus automount[20901]: get_nfs_info: nfs v2 rpc ping
> time: 0.000108
> Mar 27 15:01:44 lotus automount[20901]: get_nfs_info: host server cost
> 123 weight 0
> Mar 27 15:01:44 lotus automount[20901]: prune_host_list: selected
> subset of hosts that support NFS3 over TCP
> Mar 27 15:01:44 lotus automount[20901]: mount_mount: mount(nfs):
> calling mkdir_path /test/aaaa
> 
> Mar 27 15:01:44 lotus automount[20901]: mount_mount: mount(nfs):
> calling mount -t nfs server:/aaaa /test/aaaa   <== no options here
> 
> Mar 27 15:01:44 lotus checkproc: checkproc: Empty pid file
> /var/run/rpc.statd.pid for /usr/sbin/rpc.statd
> Mar 27 15:01:44 lotus start_daemon: start_daemon: Empty pid file
> /var/run/rpc.statd.pid for /usr/sbin/rpc.statd
> Mar 27 15:01:44 lotus rpc.statd[21045]: Version 1.2.5 starting
> Mar 27 15:01:44 lotus rpc.statd[21045]: Flags: TI-RPC
> Mar 27 15:01:44 lotus automount[20901]: >> Starting rpc.statd .....done
> Mar 27 15:01:44 lotus automount[20901]: >> mount.nfs: access denied by
> server while mounting server:/aaaa
> Mar 27 15:01:44 lotus automount[20901]: mount(nfs): nfs: mount failure
> server:/aaaa on /test/aaaa
> Mar 27 15:01:44 lotus automount[20901]: lookup_one: lookup(file):
> lookup included map +file:/etc/auto.test2
> Mar 27 15:01:44 lotus automount[20901]: lookup_mount: lookup(file):
> looking up aaaa
> Mar 27 15:01:44 lotus automount[20901]: lookup_mount: lookup(file):
> looking up aaaa
> Mar 27 15:01:44 lotus automount[20901]: dev_ioctl_send_fail: token = 20
> Mar 27 15:01:44 lotus automount[20901]: failed to mount /test/aaaa
> Mar 27 15:01:44 lotus automount[20901]: st_readmap: state 1 path /test
> Mar 27 15:01:44 lotus automount[20901]: re-reading map for /test
> Mar 27 15:01:44 lotus automount[20901]: lookup_nss_read_map: reading
> map file /etc/auto.test
> Mar 27 15:01:44 lotus automount[20901]: parse_init: parse(sun): init
> gathered global options: nfsvers=4,rw
> Mar 27 15:01:44 lotus automount[20901]: lookup_read_map: read included
> map +file:/etc/auto.test1
> Mar 27 15:01:44 lotus automount[20901]: lookup_nss_read_map: reading
> map file /etc/auto.test1
> Mar 27 15:01:44 lotus automount[20901]: parse_init: parse(sun): init
> gathered global options: (null)
> Mar 27 15:01:44 lotus automount[20901]: lookup_read_map: read included
> map +file:/etc/auto.test2
> Mar 27 15:01:44 lotus automount[20901]: lookup_nss_read_map: reading
> map file /etc/auto.test2
> Mar 27 15:01:44 lotus automount[20901]: parse_init: parse(sun): init
> gathered global options: (null)
> Mar 27 15:01:44 lotus automount[20901]: lookup_nss_read_map: reading
> map file /etc/auto.test1
> Mar 27 15:01:44 lotus automount[20901]: parse_init: parse(sun): init
> gathered global options: (null)
> Mar 27 15:01:44 lotus automount[20901]: st_ready: st_ready(): state =
> 4 path /test
> 
> 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


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