Hi-
Host 1- Rocky 9.2 with autofs (Linux automount version 5.1.7-58.el9) running. Excluded one nfs share from autofs conf file and put it in /etc/fstab. The nfs share entry in /etc/fstab mounts on boot/reboot just fine. The /etc/fstab syntax:
export.host.com:/path/on/export /home/users nfs defaults,vers=3 0 0
Autofs running for different shares on same host and no issues.
Host 2- Rocky 9.5 with autofs (Linux automount version 5.1.7-58.el9) running. Excluded one nfs share from autofs conf file and put it in /etc/fstab. The nfs share entry in /etc/fstab FAILS to mount on boot/reboot. Syntax:
export.host.com:/path/on/export /home/users nfs defaults,vers=3 0 0
Share refuses to mount on boot/reboot. User needs to run command “mount -a” after reboot and share mounts. I have tried to add:
nfs defaults,vers=3,x-systemd.requires=network-online.target,_netdev,nofail
but nothing works.
on Host 2 /var/log/messages:
Jul 24 23:10:26 Host 2 systemd[1]: Finished Network Manager Wait Online.
Jul 24 23:10:26 Host 2 systemd[1]: Reached target Network is Online.
Jul 24 23:10:26 Host 2 systemd[1]: Mounting /home/users…
Jul 24 23:10:26 Host 2 systemd[1]: Starting Login and scanning of iSCSI devices…
Jul 24 23:10:26 Host 2 systemd[1]: Starting Notify NFS peers of a restart…
Jul 24 23:10:26 Host 2 systemd[1]: Starting System Logging Service…
Jul 24 23:10:26 Host 2 sm-notify[1856]: Version 2.5.4 starting
Jul 24 23:10:26 Host 2 systemd[1]: Started Notify NFS peers of a restart.
Jul 24 23:10:26 Host 2 mount[1855]: mount.nfs: Failed to resolve server export.host.com: Name or service not known
Jul 24 23:10:26 Host 2 iscsiadm[1854]: iscsiadm: No records found
Jul 24 23:10:26 Host 2 systemd[1]: home-users.mount: Mount process exited, code=exited, status=32/n/a
Jul 24 23:10:26 Host 2 systemd[1]: home-users.mount: Failed with result ‘exit-code’.
Jul 24 23:10:26 Host 2 systemd[1]: Failed to mount /home/users.
But immediately after boot, mount -a mounts that share. That share pings and resolves via nslookup from the same host.
What is going on here? Thank for your assistance.
EDIT: I added an IP from the export.host.com to /etc/hosts. Still cannot mount on boot. Mount -a post-boot works as before. The error in /var/log/messages is different now:
Jul 24 23:25:54 Host 2 systemd[1]: Mounting /home/users…
Jul 24 23:25:54 Host 2 systemd[1]: Starting Login and scanning of iSCSI devices…
Jul 24 23:25:54 Host 2 systemd[1]: Starting Notify NFS peers of a restart…
Jul 24 23:25:54 Host 2 systemd[1]: Starting System Logging Service…
Jul 24 23:25:54 Host 2 sm-notify[1852]: Version 2.5.4 starting
Jul 24 23:25:54 Host 2 systemd[1]: Started Notify NFS peers of a restart.
Jul 24 23:25:54 Host 2 iscsiadm[1850]: iscsiadm: No records found
Jul 24 23:25:54 Host 2 systemd[1]: Finished Login and scanning of iSCSI devices.
Jul 24 23:25:54 Host 2 systemd[1]: Reached target Remote File Systems.
Jul 24 23:25:54 Host 2 systemd[1]: Starting Crash recovery kernel arming…
Jul 24 23:25:54 Host 2 systemd[1]: TPM2 PCR Barrier (User) was skipped because of an unmet condition check (ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f).
Jul 24 23:25:54 Host 2 systemd[1]: Starting Permit User Sessions…
Jul 24 23:25:54 Host 2 systemd[1]: Finished Permit User Sessions.
Jul 24 23:25:54 Host 2 systemd[1]: Reached target Host and Network Name Lookups.
Jul 24 23:25:54 Host 2 systemd[1]: Started Deferred execution scheduler.
Jul 24 23:25:54 Host 2 systemd[1]: Started Command Scheduler.
Jul 24 23:25:54 Host 2 systemd[1]: Starting GNOME Display Manager…
Jul 24 23:25:54 Host 2 systemd[1]: Starting Hold until boot process finishes up…
Jul 24 23:25:54 Host 2 systemd[1]: Starting NFS status monitor for NFSv2/3 locking…
Jul 24 23:25:54 Host 2 kdumpctl[1868]: kdump: No memory reserved for crash kernel
Jul 24 23:25:54 Host 2 kdumpctl[1868]: kdump: Starting kdump: [FAILED]
Jul 24 23:25:54 Host 2 systemd[1]: kdump.service: Main process exited, code=exited, status=1/FAILURE
Jul 24 23:25:54 Host 2 systemd[1]: kdump.service: Failed with result ‘exit-code’.
Jul 24 23:25:54 Host 2 systemd[1]: Failed to start Crash recovery kernel arming.
Jul 24 23:25:54 Host 2 rpc.statd[1875]: Version 2.5.4 starting
Jul 24 23:25:54 Host 2 rpc.statd[1875]: Flags: TI-RPC
Jul 24 23:25:54 Host 2 rsyslogd[1853]: [origin software=“rsyslogd” swVersion=“8.2310.0-4.el9” x-pid=“1853” x-info=“https://www.rsyslog.com”] start
Jul 24 23:25:54 Host 2 systemd[1]: Started System Logging Service.
Jul 24 23:25:54 Host 2 systemd[1]: Started GNOME Display Manager.
Jul 24 23:25:54 Host 2 systemd[1]: Started NFS status monitor for NFSv2/3 locking..
Jul 24 23:25:54 Host 2 mount[1884]: Created symlink /run/systemd/system/remote-fs.target.wants/rpc-statd.service → /usr/lib/systemd/system/rpc-statd.service.
Jul 24 23:25:54 Host 2 systemd[1]: Reloading.
Jul 24 23:25:54 Host 2 rsyslogd[1853]: imjournal: journal files changed, reloading… [v8.2310.0-4.el9 try https://www.rsyslog.com/e/0 ]
Jul 24 23:25:54 Host 2 systemd-rc-local-generator: /etc/rc.d/rc.local is not marked executable, skipping.
Jul 24 23:25:54 Host 2 systemd[1]: /usr/lib/systemd/system/falcon-sensor.service:12: PIDFile= references a path below legacy directory /var/run/, updating /var/run/falcond.pid → /run/falcond.pid; please update the unit file accordingly.
Jul 24 23:25:54 Host 2 systemd[1]: Finished Hold until boot process finishes up.
Jul 24 23:25:54 Host 2 mount[1851]: mount.nfs: Network is unreachable
Jul 24 23:25:54 Host 2 systemd[1]: Started PCoIP Agent.
Jul 24 23:25:54 Host 2 systemd[1]: home-users.mount: Mount process exited, code=exited, status=32/n/a
Jul 24 23:25:54 Host 2 systemd[1]: home-users.mount: Failed with result ‘exit-code’.
Jul 24 23:25:54 Host 2 systemd[1]: Failed to mount /home/users.
“Network is unreachable”? I am at a loss.