Until two days ago (Thurs., June 17, 2020), autofs was working and has worked without any issues for several months. Yesterday, Friday, June 18th, the connections failed.
The autofs configuration file auto.misc on the client machines uses the hostname and not the DNS. As shown below, the router name is fios-router.home; the server hostname is linux-5.fios-router.home.
The client shares can be manually mounted on all network machines using the DNS, but not the hostname. As an experiment this morning, I changed the auto.misc designation on one client machine to the DNS of the server, rebooted, and that works. Given that the server DNS is set by DHCP, I recognize that I could permanently set the server DNS, but I wish to continue to use the hostname if possible.
Checking this morning, YaST Services Manager on the server machine indicated the nfs-server service as set to manual start and in the Inactive(Dead) state. According to my notes, I had set that to On Boot start when I set up networking back in January 2020 upon reinstalling the OS (Leap 15.1). This may be a non-issue, given that I was able to manually mount the shares yesterday, but I’m uncertain about that.
The following is from the client machine:
linux-3:~ # ping linux-5.fios-router.home
ping: linux-5.fios-router.home: Name or service not known
* * *
linux-3:~ # ping fios-router.home
ping: fios-router.home: Name or service not known
* * *
linux-3:~ # ping 192.168.1.202
PING 192.168.1.202 (192.168.1.202) 56(84) bytes of data.
64 bytes from 192.168.1.202: icmp_seq=1 ttl=64 time=2.03 ms
64 bytes from 192.168.1.202: icmp_seq=2 ttl=64 time=1.50 ms
64 bytes from 192.168.1.202: icmp_seq=3 ttl=64 time=0.631 ms
64 bytes from 192.168.1.202: icmp_seq=4 ttl=64 time=0.419 ms
64 bytes from 192.168.1.202: icmp_seq=5 ttl=64 time=0.498 ms
64 bytes from 192.168.1.202: icmp_seq=6 ttl=64 time=0.560 ms
^C
--- 192.168.1.202 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5064ms
rtt min/avg/max/mdev = 0.419/0.941/2.038/0.610 ms
linux-3:~ #
* * *
linux-3:~ # nslookup linus-5.fios-router.home
Server: 192.168.1.1
Address: 192.168.1.1#53
** server can't find linus-5.fios-router.home: NXDOMAIN
* * *
linux-3:~ # nslookup
> fios-router.home
Server: 192.168.1.1
Address: 192.168.1.1#53
*** Can't find fios-router.home: No answer
> linux-5.fios-router.home
Server: 192.168.1.1
Address: 192.168.1.1#53
** server can't find linux-5.fios-router.home: NXDOMAIN
The following is from the server machine:
linux-5:~ # hostname
linux-5.fios-router.home
* * *
linux-5:~ # showmount -e localhost
Export list for localhost:
/z/F *
/z/D *
linux-5:~ #
* * *
linux-5:~ # systemctl status autofs
● autofs.service - Automounts filesystems on demand
Loaded: loaded (/usr/lib/systemd/system/autofs.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2020-06-20 08:01:11 EDT; 15min ago
Docs: man:automount(8)
man:autofs(5)
Process: 1813 ExecStart=/usr/sbin/automount $AUTOFS_OPTIONS -p /var/run/automount.pid (code=exited, status=0/SUCCESS)
Main PID: 1816 (automount)
Tasks: 3
CGroup: /system.slice/autofs.service
└─1816 /usr/sbin/automount -p /var/run/automount.pid
Jun 20 08:01:11 linux-5.fios-router.home systemd[1]: Starting Automounts filesystems on demand...
Jun 20 08:01:11 linux-5.fios-router.home automount[1816]: do_init:131: lookup(yp): map auto.master: Local domain name not set
Jun 20 08:01:11 linux-5.fios-router.home systemd[1]: Started Automounts filesystems on demand.
* * *
linux-5:~ # firewall-cmd --list-services
ssh dhcpv6-client mountd nfs rpc-bind ipp ipp-client mdns
* * * *
linux-5:~ # systemctl status NetworkManager
● NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
└─NetworkManager-ovs.conf
Active: active (running) since Sat 2020-06-20 08:01:09 EDT; 2h 42min ago
Docs: man:NetworkManager(8)
Main PID: 1187 (NetworkManager)
Tasks: 4
CGroup: /system.slice/NetworkManager.service
├─1187 /usr/sbin/NetworkManager --no-daemon
└─1665 /sbin/dhclient -d -q -sf /usr/lib/nm-dhcp-helper -pf /var/run/dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-8876eaac-c159>
Jun 20 08:01:11 linux-5 NetworkManager[1187]: <info> [1592654471.1271] device (eth0): state change: ip-check -> secondaries (reason 'none', sys-ifa>
Jun 20 08:01:11 linux-5 NetworkManager[1187]: <info> [1592654471.1274] device (eth0): state change: secondaries -> activated (reason 'none', sys-if>
Jun 20 08:01:11 linux-5 NetworkManager[1187]: <info> [1592654471.1276] manager: NetworkManager state is now CONNECTED_LOCAL
Jun 20 08:01:11 linux-5 NetworkManager[1187]: <info> [1592654471.1381] manager: NetworkManager state is now CONNECTED_SITE
Jun 20 08:01:11 linux-5 NetworkManager[1187]: <info> [1592654471.1381] policy: set 'Wired connection 1' (eth0) as default for IPv4 routing and DNS
Jun 20 08:01:11 linux-5.fios-router.home NetworkManager[1187]: <info> [1592654471.1382] policy: set-hostname: set hostname to 'linux-5.fios-router.>
Jun 20 08:01:11 linux-5.fios-router.home NetworkManager[1187]: nisdomainname: you must be root to change the domain name
Jun 20 08:01:11 linux-5.fios-router.home NetworkManager[1187]: <info> [1592654471.3928] device (eth0): Activation: successful, device activated.
Jun 20 08:01:11 linux-5.fios-router.home NetworkManager[1187]: <info> [1592654471.5822] manager: NetworkManager state is now CONNECTED_GLOBAL
Jun 20 08:01:15 linux-5.fios-router.home NetworkManager[1187]: <info> [1592654475.4306] manager: startup complete
; vendor preset: disabled)
o
r/run/dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-8876eaac-c159-3685-a954-be3b59aacbcb-eth0.lease -cf /var/lib/NetworkManager/dhclient-et>
vice (eth0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
vice (eth0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
nager: NetworkManager state is now CONNECTED_LOCAL
nager: NetworkManager state is now CONNECTED_SITE
licy: set 'Wired connection 1' (eth0) as default for IPv4 routing and DNS
92654471.1382] policy: set-hostname: set hostname to 'linux-5.fios-router.home' (from system configuration)
me: you must be root to change the domain name
92654471.3928] device (eth0): Activation: successful, device activated.
92654471.5822] manager: NetworkManager state is now CONNECTED_GLOBAL
92654475.4306] manager: startup complete
~
~
-3685-a954-be3b59aacbcb-eth0.lease -cf /var/lib/NetworkManager/dhclient-eth0.conf eth0
ce-state: 'managed')
ace-state: 'managed')
home' (from system configuration)
~
lines 1-22/22 (END)
* * *
linux-5:~ # nmcli device show
GENERAL.DEVICE: eth0
GENERAL.TYPE: ethernet
GENERAL.HWADDR: F4:6D:04:1E:B4:67
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: Wired connection 1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: 192.168.1.202/24
IP4.GATEWAY: 192.168.1.1
IP4.ROUTE[1]: dst = 0.0.0.0/0, nh = 192.168.1.1, mt = 100
IP4.ROUTE[2]: dst = 192.168.1.0/24, nh = 0.0.0.0, mt = 100
IP4.DNS[1]: 192.168.1.1
IP4.DOMAIN[1]: fios-router.home
IP6.ADDRESS[1]: fe80::99f9:c0e7:7745:2919/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = ff00::/8, nh = ::, mt = 256, table=255
IP6.ROUTE[2]: dst = fe80::/64, nh = ::, mt = 256
IP6.ROUTE[3]: dst = fe80::/64, nh = ::, mt = 100
GENERAL.DEVICE: eth1
GENERAL.TYPE: ethernet
GENERAL.HWADDR: F4:6D:04:1E:B4:68
GENERAL.MTU: 1500
GENERAL.STATE: 20 (unavailable)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
WIRED-PROPERTIES.CARRIER: off
GENERAL.DEVICE: lo
GENERAL.TYPE: loopback
GENERAL.HWADDR: 00:00:00:00:00:00
GENERAL.MTU: 65536
GENERAL.STATE: 10 (unmanaged)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
IP4.ADDRESS[1]: 127.0.0.1/8
IP4.GATEWAY: --
IP6.ADDRESS[1]: ::1/128
IP6.GATEWAY: --
lines 2-40/40 (END)
I have made no changes to the machines other than permitting updates via the Online Update; a review of recent updates didn’t indicate any updates I thought might have caused this.