You are not logged in.

#1 2023-11-19 16:10:40

mikael
Member
From: Slovakia
Registered: 2011-05-22
Posts: 28
Website

NFS mount not working

Hi, I'm trying to make NFS work on Synology DS923+

root:~/ # cat /etc/exports

/volume1/Backup 192.168.2.6(rw,sync,no_wdelay,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)

On client I have in /etc/fstab

192.168.2.10:/volume1/Backup /mnt/nfs/nas/Backup nfs _netdev,noauto,x-systemd.automount,vers=4,x-systemd.mount-timeout=10,rsize=8192,wsize=8192,x-systemd.idle-timeout=1min  0   0

and when mounting I see

$ sudo mount -vvv /mnt/nfs/nas/Backup
mount.nfs: timeout set for Sun Nov 19 17:06:37 2023
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,vers=4.2,addr=192.168.2.10,clientaddr=192.168.2.6'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,vers=4,minorversion=1,addr=192.168.2.10,clientaddr=192.168.2.6'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,vers=4,addr=192.168.2.10,clientaddr=192.168.2.6'

Mounts with following works on other computer.

/media 192.168.2.8(rw,sync,crossmnt,no_subtree_check)

Don't know why Synology is preventing the connection

Offline

#2 2023-11-19 16:19:01

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,115

Re: NFS mount not working

Make sure that the Synology actually supports NFSv4, since you're forcing that on the client connection.

Offline

#3 2023-11-19 16:45:59

mikael
Member
From: Slovakia
Registered: 2011-05-22
Posts: 28
Website

Re: NFS mount not working

I set it to NFSv4

QOHdPLh.jpg

Offline

#4 2023-11-19 17:19:56

-thc
Member
Registered: 2017-03-15
Posts: 560

Re: NFS mount not working

Beginning with the update to DSM 7.x Synology's NFS only supports protocol "4.0".
Earlier versions of DSM (6.2.x) did support 4.1 and possibly 4.2.

Offline

#5 2023-12-15 21:38:12

obelisk
Member
Registered: 2021-01-10
Posts: 56

Re: NFS mount not working

Maybe It helps you, when you're comparing it with my fstab entry:

192.168.1.101:/volume1/files		/mnt/nfs/nas/files nfs	_netdev,noauto,sec=sys,x-systemd.automount,vers=4,x-systemd.mount-timeout=2s,timeo=14,x-systemd.idle-timeout=30s,x-systemd.requires=network-online.target	0	0

And next point are in the synology DSM.
In shared folders, you have to edit the folder you want share. You need to add the IP or set the IP range of your PC in the NFS rights.

For me it looks like there:
IP "192.168.1.*"
Read/Write,
No Squash,
Safety I have "sys" (I need the SYSTEM user add in the Filestation, see below. Otherwise root-to-admin should always work),
Asynchron is "activated",
Ports >1024 is set to allowed,
and user are allowed for sub-folders.

Additionally, I don't know if it is necessary...in my DSM7-filestation, I added the main folders an user/group with the name "SYSTEM" with read/write rights.
And check also, if you have the firewall, if you have one configured.

By the way...How did you add a screenshot into the post?

Offline

Board footer

Powered by FluxBB