[opensuse] Weird automount behavior
OpenSUSE Tumbleweed (latest code) I have some automounts I'm using with ypbind. Some of the automounts work on my local machine and some of them don't (the ones accessed during boot work but the automounts not accessed during boot don't work after the machine is up). Here are my automounts: ssimpson@madhatter:~$ ypcat -k auto.master /people auto.people /apps auto.apps ssimpson@madhatter:~$ ypcat -k auto.apps build 192.168.2.1:/home/mounts/& software 192.168.2.1:/& multimedia 192.168.2.1:/& win 192.168.2.1:/home/mounts/& local 192.168.2.1:/home/mounts/& ssimpson@madhatter:~$ On my local machine 192.168.2.1, /apps/local works (since it was accessed on boot) but /apps/multimedia doesn't! ssimpson@madhatter:~$ ls /apps/local bacula bin gorilla krb5kdc lib sbin share shellenv zm ssimpson@madhatter:~$ ls /apps/multimedia ls: cannot access '/apps/multimedia': No such file or directory ssimpson@madhatter:~$ If I go to another machine on my network, both work: ssimpson@mythtv:~$ ls /apps/local bacula bin gorilla krb5kdc lib sbin share shellenv zm ssimpson@mythtv:~$ ls /apps/multimedia Family.mpg ssimpson@mythtv:~$ This only broke recently (in the last few months). The /etc/exports file is good otherwise the mythtv machine wouldn't be able to see the NFS mounts. Any idea? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
I've discovered that I get an error when I reload the maps with "systemctl reload autofs". This gives me Nov 25 03:02:36 madhatter automount[2181]: master_add_map_source: map source used without taking reference Nov 25 03:02:36 madhatter automount[2181]: master_add_map_source: map source used without taking reference I found a reference to this here: https://fossies.org/linux/misc/autofs-5.1.3.tar.xz/autofs-5.1.3/lib/master.c... Does anyone know what this is complaining about? What is "taking reference"? The __master_find_map_source() is below in master.c but I can't figure out what is is doing. On 11/24/2017 01:36 PM, Scott Simpson wrote:
OpenSUSE Tumbleweed (latest code)
I have some automounts I'm using with ypbind. Some of the automounts work on my local machine and some of them don't (the ones accessed during boot work but the automounts not accessed during boot don't work after the machine is up). Here are my automounts:
ssimpson@madhatter:~$ ypcat -k auto.master /people auto.people /apps auto.apps ssimpson@madhatter:~$ ypcat -k auto.apps build 192.168.2.1:/home/mounts/& software 192.168.2.1:/& multimedia 192.168.2.1:/& win 192.168.2.1:/home/mounts/& local 192.168.2.1:/home/mounts/& ssimpson@madhatter:~$
On my local machine 192.168.2.1, /apps/local works (since it was accessed on boot) but /apps/multimedia doesn't!
ssimpson@madhatter:~$ ls /apps/local bacula bin gorilla krb5kdc lib sbin share shellenv zm ssimpson@madhatter:~$ ls /apps/multimedia ls: cannot access '/apps/multimedia': No such file or directory ssimpson@madhatter:~$
If I go to another machine on my network, both work:
ssimpson@mythtv:~$ ls /apps/local bacula bin gorilla krb5kdc lib sbin share shellenv zm ssimpson@mythtv:~$ ls /apps/multimedia Family.mpg ssimpson@mythtv:~$
This only broke recently (in the last few months). The /etc/exports file is good otherwise the mythtv machine wouldn't be able to see the NFS mounts. Any idea?
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2017-11-25 at 03:09 -0800, Scott Simpson wrote:
Does anyone know what this is complaining about? What is "taking reference"? The __master_find_map_source() is below in master.c but I can't figure out what is is doing.
Just posting so that you know we are reading you, but we don't know the answer ;-) I don't use automount, so I can't help. I use systemd automount feature, works fine: machine:/directory/ /mountpath nfs defaults,noauto,nofail,x-systemd.automount,x-systemd.idle-timeout=300,_netdev,nfsvers=4 0 0 - -- Cheers, Carlos E. R. (from openSUSE 42.2 x86_64 "Malachite" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAloZcxgACgkQtTMYHG2NR9XOhwCeKe2Z0wM/euFMjywsM2zhaCzs WA8AnRW1tz2pHwdFvYFywUcGoLmjwRms =a+hU -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
This won't work across a network like NIS. I have other machines read these automounts too. I did find this checkin where the change happened: https://www.kernel.org/pub/linux/daemons/autofs/v5/patches-5.1.3/autofs-5.1.... I don't know if the approver Ian knows what is going on. If I don't get a response, I guess I'll ask the kernel list. The config files I was using the last few years haven't changed and it stopped working so something isn't backward compatible. On 11/25/2017 05:41 AM, Carlos E. R. wrote:
I use systemd automount feature, works fine:
machine:/directory/ /mountpath nfs defaults,noauto,nofail,x-systemd.automount,x-systemd.idle-timeout=300,_netdev,nfsvers=4 0 0
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Carlos E. R.
-
Scott Simpson