[SOLVED] NFS shares not mounted at boot

I have a set of NFS shares on my NAS that I want mounted on boot but it fails everytime.
I created the config via MCC's "Access NFS shared frives and directories".
Excerpt from the log with what I believe is the relevant info:
Each of the shares has a similar status:
After I login I can mount the the manually without any problem:
Any idea how to fix this?
Thanks.
I created the config via MCC's "Access NFS shared frives and directories".
Excerpt from the log with what I believe is the relevant info:
- Code: Select all
[nick@HAL9000 ~]$ journalctl -b
Mar 29 13:00:53 HAL9000 kernel: Linux version 6.6.22-desktop-1.mga9 (iurt@rabbit.mageia.org) (gcc (Mageia 12.3.0-3.mga9) 12.3.0, GNU ld (GNU Binutils) 2.40) #1 SMP PREEMPT_DYNAMIC Sun Mar 17 18:04:51 UTC 2024
Mar 29 13:00:53 HAL9000 kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-6.6.22-desktop-1.mga9 root=/dev/mapper/fedora-01 ro splash quiet noiswmd nokmsboot resume=/dev/fedora/00 audit=0
...
Mar 29 13:00:53 HAL9000 kernel: igc 0000:04:00.0: 4.000 Gb/s available PCIe bandwidth (5.0 GT/s PCIe x1 link)
Mar 29 13:00:53 HAL9000 kernel: igc 0000:04:00.0 eth0: MAC: 04:7c:16:d1:b9:1e
...
Mar 29 13:00:53 HAL9000 kernel: igc 0000:04:00.0 enp4s0: renamed from eth0
...
Mar 29 13:01:03 HAL9000 network[1717]: Bringing up interface enp4s0: [ OK ]
...
Mar 29 13:01:03 HAL9000 systemd[1]: Started network.service.
...
Mar 29 13:01:06 HAL9000 kernel: igc 0000:04:00.0 enp4s0: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
Mar 29 13:01:07 HAL9000 network-up[1716]: Waiting for network to be up[ OK ]
Mar 29 13:01:07 HAL9000 systemd[1]: Started network-up.service.
Mar 29 13:01:07 HAL9000 systemd[1]: Reached target network.target.
Mar 29 13:01:07 HAL9000 systemd[1]: Reached target network-online.target.
...
Mar 29 13:01:07 HAL9000 systemd[1]: Mounting mnt-ds-backups.mount...
Mar 29 13:01:07 HAL9000 systemd[1]: Mounting mnt-ds-homes.mount...
Mar 29 13:01:07 HAL9000 systemd[1]: Mounting mnt-ds-music.mount...
Mar 29 13:01:07 HAL9000 systemd[1]: Mounting mnt-ds-photo.mount...
Mar 29 13:01:07 HAL9000 systemd[1]: Mounting mnt-ds-public.mount...
Mar 29 13:01:07 HAL9000 systemd[1]: Mounting mnt-ds-scans.mount...
Mar 29 13:01:07 HAL9000 systemd[1]: Mounting mnt-ds-video.mount...
...
Mar 29 13:01:07 HAL9000 mount[2178]: mount.nfs: Network is unreachable for 192.168.1.2:/volume1/backups on /mnt/ds/backups
Mar 29 13:01:07 HAL9000 mount[2192]: mount.nfs: Network is unreachable for 192.168.1.2:/volume1/scans on /mnt/ds/scans
Mar 29 13:01:07 HAL9000 mount[2190]: mount.nfs: Network is unreachable for 192.168.1.2:/volume1/public on /mnt/ds/public
Mar 29 13:01:07 HAL9000 mount[2195]: mount.nfs: Network is unreachable for 192.168.1.2:/volume1/video on /mnt/ds/video
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-backups.mount: Mount process exited, code=exited, status=32/n/a
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-backups.mount: Failed with result 'exit-code'.
Mar 29 13:01:07 HAL9000 systemd[1]: Failed to mount mnt-ds-backups.mount.
Mar 29 13:01:07 HAL9000 systemd[1]: Dependency failed for remote-fs.target.
Mar 29 13:01:07 HAL9000 systemd[1]: remote-fs.target: Job remote-fs.target/start failed with result 'dependency'.
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-public.mount: Mount process exited, code=exited, status=32/n/a
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-public.mount: Failed with result 'exit-code'.
...
Mar 29 13:01:07 HAL9000 mount[2180]: mount.nfs: Network is unreachable for 192.168.1.2:/volume1/homes on /mnt/ds/homes
Mar 29 13:01:07 HAL9000 systemd[1]: Failed to mount mnt-ds-public.mount.
Mar 29 13:01:07 HAL9000 mount[2182]: mount.nfs: Network is unreachable for 192.168.1.2:/volume1/music on /mnt/ds/music
Mar 29 13:01:07 HAL9000 mount[2186]: mount.nfs: Network is unreachable for 192.168.1.2:/volume1/photo on /mnt/ds/photo
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-scans.mount: Mount process exited, code=exited, status=32/n/a
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-scans.mount: Failed with result 'exit-code'.
Mar 29 13:01:07 HAL9000 systemd[1]: Failed to mount mnt-ds-scans.mount.
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-video.mount: Mount process exited, code=exited, status=32/n/a
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-video.mount: Failed with result 'exit-code'.
Mar 29 13:01:07 HAL9000 systemd[1]: Failed to mount mnt-ds-video.mount.
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-homes.mount: Mount process exited, code=exited, status=32/n/a
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-homes.mount: Failed with result 'exit-code'.
Mar 29 13:01:07 HAL9000 systemd[1]: Failed to mount mnt-ds-homes.mount.
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-music.mount: Mount process exited, code=exited, status=32/n/a
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-music.mount: Failed with result 'exit-code'.
Mar 29 13:01:07 HAL9000 systemd[1]: Failed to mount mnt-ds-music.mount.
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-photo.mount: Mount process exited, code=exited, status=32/n/a
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-photo.mount: Failed with result 'exit-code'.
Mar 29 13:01:07 HAL9000 systemd[1]: Failed to mount mnt-ds-photo.mount.
...
Each of the shares has a similar status:
- Code: Select all
[nick@HAL9000 ~]$ systemctl status mnt-ds-backups.mount
× mnt-ds-backups.mount - /mnt/ds/backups
Loaded: loaded (/etc/fstab; generated)
Active: failed (Result: exit-code) since Fri 2024-03-29 13:01:07 CET; 20min ago
Where: /mnt/ds/backups
What: 192.168.1.2:/volume1/backups
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
CPU: 7ms
Mar 29 13:01:07 HAL9000 systemd[1]: Mounting mnt-ds-backups.mount...
Mar 29 13:01:07 HAL9000 mount[2178]: mount.nfs: Network is unreachable for 192.168.1.2:/volume1/backups on /mnt/ds/backups
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-backups.mount: Mount process exited, code=exited, status=32/n/a
Mar 29 13:01:07 HAL9000 systemd[1]: mnt-ds-backups.mount: Failed with result 'exit-code'.
Mar 29 13:01:07 HAL9000 systemd[1]: Failed to mount mnt-ds-backups.mount.
After I login I can mount the the manually without any problem:
- Code: Select all
[nick@HAL9000 ~]$ sudo mount -av
/ : ignored
/boot/EFI : already mounted
/home : already mounted
/media/windows : already mounted
mount.nfs: timeout set for Fri Mar 29 13:26:42 2024
mount.nfs: trying text-based options 'wsize=8192,rsize=8192,soft,vers=4.2,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'wsize=8192,rsize=8192,soft,vers=4,minorversion=1,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'wsize=8192,rsize=8192,soft,vers=4,addr=192.168.1.2,clientaddr=192.168.1.4'
/mnt/ds/backups : successfully mounted
mount.nfs: timeout set for Fri Mar 29 13:26:42 2024
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,soft,vers=4.2,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,soft,vers=4,minorversion=1,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,soft,vers=4,addr=192.168.1.2,clientaddr=192.168.1.4'
/mnt/ds/homes : successfully mounted
mount.nfs: timeout set for Fri Mar 29 13:26:42 2024
mount.nfs: trying text-based options 'wsize=8192,rsize=8192,soft,vers=4.2,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'wsize=8192,rsize=8192,soft,vers=4,minorversion=1,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'wsize=8192,rsize=8192,soft,vers=4,addr=192.168.1.2,clientaddr=192.168.1.4'
/mnt/ds/music : successfully mounted
mount.nfs: timeout set for Fri Mar 29 13:26:42 2024
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,soft,vers=4.2,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,soft,vers=4,minorversion=1,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,soft,vers=4,addr=192.168.1.2,clientaddr=192.168.1.4'
/mnt/ds/photo : successfully mounted
mount.nfs: timeout set for Fri Mar 29 13:26:42 2024
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,soft,vers=4.2,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,soft,vers=4,minorversion=1,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,soft,vers=4,addr=192.168.1.2,clientaddr=192.168.1.4'
/mnt/ds/public : successfully mounted
mount.nfs: timeout set for Fri Mar 29 13:26:42 2024
mount.nfs: trying text-based options 'wsize=8192,rsize=8192,soft,vers=4.2,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'wsize=8192,rsize=8192,soft,vers=4,minorversion=1,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'wsize=8192,rsize=8192,soft,vers=4,addr=192.168.1.2,clientaddr=192.168.1.4'
/mnt/ds/scans : successfully mounted
mount.nfs: timeout set for Fri Mar 29 13:26:42 2024
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,soft,vers=4.2,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,soft,vers=4,minorversion=1,addr=192.168.1.2,clientaddr=192.168.1.4'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,soft,vers=4,addr=192.168.1.2,clientaddr=192.168.1.4'
/mnt/ds/video : successfully mounted
/proc : successfully mounted
swap : ignored
Any idea how to fix this?
Thanks.