09-21-2022, 03:42 PM
(09-21-2022, 01:11 PM)Tim Curtis Wrote:(09-21-2022, 12:01 PM)didier573 Wrote:(09-21-2022, 10:34 AM)Tim Curtis Wrote: From the SCAN button ( i ) help
Code:NOTE: For NFS the scanner only scans for NFSv4 hosts (port 2049 open).
If your NAS is running < v4 NFS the SCAN won't find it. Also the NAS has to be on the same subnet as the host(s).
Thank you TIm for your answer but not sure to understand in details.
My NAS is composed by a raspberry Pi4 running moOde and with a SSD attached via USB => soes it mean that it runs < v4 NFS ?
The NAS and my endpoint (another rasp with moode) are connected in WiFi ti the same router => I guess that they are on the same subnet, right ?
Yes NFS server on the Pi would be v4 and since both host and server are on same subnet I would expect the SCAN to find the NFS export.
Post the following command output (on the pi running NFS server) to see if the configuration is correct.
Code:# Commands
moodeutl -l | grep NFS
cat /etc/exports
ls /media
ls -l /srv
# Example from my system that has attached USB drive and is running NFS server
pi@trx:~ $ moodeutl -l | grep NFS
20220920 155444 worker: NFS file sharing (On)
pi@trx:~ $ cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/srv/nfs/VFAT128 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
pi@trx:~ $ ls /media
VFAT128
pi@trx:~ $ ls -l /srv
total 0
lrwxrwxrwx 1 root root 6 Sep 16 19:18 nfs -> /media
Here is what I get on the pi running NFS (the NAS side) :
pi@moodeNAS:~ $ moodeutl -l | grep NFS
20220921 095441 worker: NFS file sharing (On)
pi@moodeNAS:~ $ cat /etc/exports
{# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/srv/nfs/MUSIQUE 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
pi@moodeNAS:~ $ ls /media
MUSIQUE
pi@moodeNAS:~ $ ls -l /srv
total 0
lrwxrwxrwx 1 root root 6 Sep 17 01:18 nfs -> /media
Everything seems normal, am I wrong ?