Hi all,
i hope i am in the right forum, sorry if not.
I setup Fedora IoT 34 on an WD Sentinel NAS (booting from SD card, serial console) with RAID 1 disks. It work fine applications like minidlna or cockpit are working but NFS server not. Here the config:
-
nfs-utils installed
-
/etc/exports.d/portainer.exports:
/sysroot/raid1_2t_wd 192.168.XXX.0/24(rw,sync,no_root_squash,no_subtree_check)
no other export file exist also /etc/exports is empty. -
exported directory on Fedora IoT exist:
…
drwxr-xr-x 15 root root 251 Jul 27 01:09 raid1_2t_wd
…
pwd
/sysroot/raid1_2t_wd -
/etc/nfs.conf:
…
[nfsd]
debug=all
threads=16
# host=
# port=0
# grace-time=90
# lease-time=90
udp=n
tcp=y
# vers2=n
vers3=y
vers4=y
vers4.0=y
vers4.1=n
vers4.2=n
rdma=y
rdma-port=20049
...
-
Firewall is open for ports: 111/tcp/udp, 2049/tcp/udp, 20048/tcp/udp
-
showmount on Fedora IoT:
showmount -e localhost
Export list for localhost:
/sysroot/raid1_2t_wd 192.168.XXX.0/24 -
showmount on other Fedora Client
showmount -e 192.168.XXX.YYY
Export list for 192.168.XXX.YYY:
/sysroot/raid1_2t_wd 192.168.XXX.0/24
but when try to mount:
mount -v -t nfs4 192.168.XXX.YYY:/sysroot/raid1_2t_wd /mnt
mount.nfs4: timeout set for Wed Jul 28 09:59:31 2021
mount.nfs4: trying text-based options ‘vers=4.2,addr=192.168.XXX.YYY,clientaddr=192.168.XXX.ZZZ’
mount.nfs4: mount(2): Protocol not supported
mount.nfs4: trying text-based options ‘vers=4,minorversion=1,addr=192.168.XXX.YYY,clientaddr=192.168.XXX.ZZZ’
mount.nfs4: mount(2): Protocol not supported
mount.nfs4: trying text-based options ‘vers=4,addr=192.168.XXX.YYY,clientaddr=192.168.XXX.ZZZ’
mount.nfs4: mount(2): No such file or directory
mount.nfs4: mounting 192.168.ZZZ.YYY:/sysroot/raid1_2t_wd failed, reason given by server: No such file or directory
hm … directory exist … any ideea why this is not working ?
very strange is the output of /proc/fs/nfsd/exports
# Version 1.1
# Path Client(Flags) # IPs
/ 192.168.XXX.0/24(ro,insecure,no_root_squash,sync,no_wdelay,no_subtree_check,v4root,fsid=0,sec=390003:390004:390005:1)
/sysroot 192.168.XXX.0/24(ro,insecure,no_root_squash,sync,no_wdelay,no_subtree_check,v4root,uuid=cfb798a5:994b41e1:91d6f2ae:f3212ee5,sec=390003:390004:390005:1)
this do not fit at all with the export …
prior i had on the WD Sentinel an Fedora 30 server installed that worked very well (NFS Server, minidlna, cockpit, also gitlab…) also i was able to install it on the internal disks of the WD Sentinel, that was not possible with Fedora 34 Iot that is why i used the SD card …