You are not logged in.

#1 2020-08-24 21:05:58

synonym24
Member
Registered: 2009-01-27
Posts: 8

Unable to mount NFS exports from Synology NAS

Hello,

I'm a bit stuck here. Hopefully someone can help me.

I'm using a Synology DS415+ as my storage, backup and application center. I also configured this box to serve me my data via NFS and set up /etc/fstab on my Arch installation to mount them.

Here are some outputs I think might be helpful.

Laptop:

$ uname -a                                                                                  
Linux xps15 5.8.3-arch1-1 #1 SMP PREEMPT Fri, 21 Aug 2020 16:54:16 +0000 x86_64 GNU/Linux

$ fgrep DiskStation /etc/fstab
18:ds415p.synonym24.lan:/volume2/homes     /mnt/DiskStation/homes          nfs     noauto,x-systemd.automount,_netdev,timeo=10,x-systemd.ilde-timeout=60           0 0
19:ds415p.synonym24.lan:/volume1/Privat        /mnt/DiskStation/Privat         nfs     noauto,x-systemd.automount,_netdev,timeo=10,x-systemd.ilde-timeout=60           0 0
20:ds415p.synonym24.lan:/volume4/Sync          /mnt/DiskStation/Sync           nfs     noauto,x-systemd.automount,_netdev,timeo=10,x-systemd.ilde-timeout=60           0 0
21:ds415p.synonym24.lan:/volume4/Clonezilla        /mnt/DiskStation/Clonezilla     nfs     noauto,x-systemd.automount,_netdev,timeo=10,x-systemd.ilde-timeout=60           0 0
22:ds415p.synonym24.lan:/volume1/tmp               /mnt/DiskStation/tmp            nfs     noauto,x-systemd.automount,_netdev,timeo=10,x-systemd.ilde-timeout=60           0 0
23:ds415p.synonym24.lan:/volume2/NetBackup     /mnt/DiskStation/NetBackup      nfs     noauto,x-systemd.automount,_netdev,timeo=10,x-systemd.ilde-timeout=60           0 0

$ nslookup ds415p.synonym24.lan
Server:		172.24.6.196
Address:	172.24.6.196#53

Name:	ds415p.synonym24.lan
Address: 172.24.6.81
Name:	ds415p.synonym24.lan
Address: fd3b:624e:a3d9:246:211:32ff:fe4c:1533

$ ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: wlp59s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 9c:b6:d0:c6:fd:fd brd ff:ff:ff:ff:ff:ff
    inet 172.24.6.3/24 brd 172.24.6.255 scope global dynamic noprefixroute wlp59s0
       valid_lft 82923sec preferred_lft 82923sec
    inet6 fd3b:624e:a3d9:246:4aee:4b55:803b:690f/64 scope global temporary dynamic 
       valid_lft 601327sec preferred_lft 82429sec
    inet6 fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 1814391sec preferred_lft 604791sec
    inet6 2001:4bca:122:2d01:f200:725b:6d6e:8007/64 scope global temporary dynamic 
       valid_lft 601327sec preferred_lft 82429sec
    inet6 2001:4bca:122:2d01:2e10:b833:1ccf:327a/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 604791sec preferred_lft 86391sec
    inet6 fe80::83dc:d5d0:1219:eda4/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

$ showmount --export ds415p.synonym24.lan
Export list for ds415p.synonym24.lan:
/volume4/Clonezilla    fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f,fd3b:624e:a3d9:246:33cc:d815:a14:dd8f
/volume2/homes         fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f,fd3b:624e:a3d9:246:33cc:d815:a14:dd8f,172.16.24.0/24,fd3b:624e:a3d9:246:c64e:acff:fe10:a6dc
/volume2/NetBackup     172.16.24.0/24,fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f,fd3b:624e:a3d9:246:33cc:d815:a14:dd8f
/volume1/Privat        fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f,fd3b:624e:a3d9:246:33cc:d815:a14:dd8f,172.16.24.0/24
/volume1/tmp           fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f,fd3b:624e:a3d9:246:33cc:d815:a14:dd8f,172.16.24.0/24,fd3b:624e:a3d9:246:c64e:acff:fe10:a6dc
/volume4/Sync          fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f,fd3b:624e:a3d9:246:33cc:d815:a14:dd8f,172.16.24.0/24

Synology DS415+:

$ ssh root@NAS                           
# ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: sit0: <NOARP> mtu 1480 qdisc noop state DOWN 
    link/sit 0.0.0.0 brd 0.0.0.0
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master ovs-system state UP qlen 1000
    link/ether 00:11:32:4c:15:33 brd ff:ff:ff:ff:ff:ff
4: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq master ovs-system state DOWN qlen 1000
    link/ether 00:11:32:4c:15:34 brd ff:ff:ff:ff:ff:ff
5: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN 
    link/ether 3a:0c:4a:61:c2:84 brd ff:ff:ff:ff:ff:ff
6: ovs_eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN 
    link/ether 00:11:32:4c:15:33 brd ff:ff:ff:ff:ff:ff
    inet 172.24.6.81/24 brd 172.24.6.255 scope global ovs_eth0
       valid_lft forever preferred_lft forever
    inet6 fd3b:624e:a3d9:246:211:32ff:fe4c:1533/64 scope global dynamic 
       valid_lft 1814398sec preferred_lft 604798sec
    inet6 2001:4bca:122:2d01:211:32ff:fe4c:1533/64 scope global dynamic 
       valid_lft 604798sec preferred_lft 86398sec
    inet6 fe80::211:32ff:fe4c:1533/64 scope link 
       valid_lft forever preferred_lft forever
7: ovs_eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN 
    link/ether 00:11:32:4c:15:34 brd ff:ff:ff:ff:ff:ff
    inet 169.254.42.104/16 brd 169.254.255.255 scope global ovs_eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::211:32ff:fe4c:1534/64 scope link 
       valid_lft forever preferred_lft forever
8: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100
    link/none 
    inet 10.8.0.1 peer 10.8.0.2/32 scope global tun0
       valid_lft forever preferred_lft forever
9: docker-2365f6c7: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN 
    link/ether 02:42:85:db:bb:0c brd ff:ff:ff:ff:ff:ff
    inet 172.18.0.1/24 brd 172.18.0.255 scope global docker-2365f6c7
       valid_lft forever preferred_lft forever
10: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN 
    link/ether 02:42:d3:8d:a6:25 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever

# cat /etc/exports

/volume4/Sync	172.16.24.0/24(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)	fd3b:624e:a3d9:246:33cc:d815:a14:dd8f(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)	fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)
/volume1/tmp	fd3b:624e:a3d9:246:c64e:acff:fe10:a6dc(rw,async,no_wdelay,crossmnt,all_squash,insecure_locks,sec=sys,anonuid=1024,anongid=100)	172.16.24.0/24(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)	fd3b:624e:a3d9:246:33cc:d815:a14:dd8f(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)	fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)
/volume1/Privat	172.16.24.0/24(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)	fd3b:624e:a3d9:246:33cc:d815:a14:dd8f(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)	fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)
/volume2/NetBackup	fd3b:624e:a3d9:246:33cc:d815:a14:dd8f(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)	fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)	172.16.24.0/24(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)
/volume2/homes	fd3b:624e:a3d9:246:c64e:acff:fe10:a6dc(ro,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)	172.16.24.0/24(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)	fd3b:624e:a3d9:246:33cc:d815:a14:dd8f(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)	fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys:krb5i,anonuid=1025,anongid=100)
/volume4/Clonezilla	fd3b:624e:a3d9:246:33cc:d815:a14:dd8f(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)	fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f(rw,async,no_wdelay,crossmnt,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)

After having this setup throughout the last years with many different package versions working really well, now the mount gives me an error in return:

$ sudo mount -t nfs -vvv ds415p.synonym24.lan:/volume1/tmp /mnt/DiskStation/tmp
[sudo] password for synonym24: 
mount.nfs: timeout set for Mon Aug 24 22:28:10 2020
mount.nfs: trying text-based options 'vers=4.2,addr=fd3b:624e:a3d9:246:211:32ff:fe4c:1533,clientaddr=fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'vers=4.2,addr=172.24.6.81,clientaddr=172.24.6.3'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'vers=4,minorversion=1,addr=fd3b:624e:a3d9:246:211:32ff:fe4c:1533,clientaddr=fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'vers=4,minorversion=1,addr=172.24.6.81,clientaddr=172.24.6.3'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'vers=4,addr=fd3b:624e:a3d9:246:211:32ff:fe4c:1533,clientaddr=fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'vers=4,addr=172.24.6.81,clientaddr=172.24.6.3'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'addr=fd3b:624e:a3d9:246:211:32ff:fe4c:1533'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying fd3b:624e:a3d9:246:211:32ff:fe4c:1533 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying fd3b:624e:a3d9:246:211:32ff:fe4c:1533 prog 100005 vers 3 prot UDP port 892
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'addr=172.24.6.81'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 172.24.6.81 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 172.24.6.81 prog 100005 vers 3 prot UDP port 892
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting ds415p.synonym24.lan:/volume1/tmp

systemd reports the following:

kernel: NFS4: Couldn't follow remote path

The behaviour must have to do something with the new kernel 5.8. I tried to downgrade to a previous kernel version, to be exact to 5.7.12, and the mount succeeded without any other change.

As Google isn't helping me in leading to some kind of solution, I'm sure I'm missing something. But I don't see what it could be.

Has anybody a clue about this?

Offline

#2 2020-08-25 12:27:08

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: Unable to mount NFS exports from Synology NAS

I've seen something similar and am thinking it's a kernel nfs negotiation issue with a Synology NAS.
Try mounting with the nfs specific version of 4.1 ("nfsvers=4.1") in /etc/fstab as the Synology NAS software that I've seen supports 4.1 but doesn't support 4.2 as yet.

Cheers
Paul.

Offline

#3 2020-08-25 19:15:28

synonym24
Member
Registered: 2009-01-27
Posts: 8

Re: Unable to mount NFS exports from Synology NAS

$ sudo mount -t nfs -vvv -o nfsvers=4.1 ds415p.synonym24.lan:/volume1/tmp /mnt/DiskStation/tmp
[sudo] password for synonym24: 
mount.nfs: timeout set for Tue Aug 25 21:13:32 2020
mount.nfs: trying text-based options 'nfsvers=4.1,addr=fd3b:624e:a3d9:246:211:32ff:fe4c:1533,clientaddr=fd3b:624e:a3d9:246:ccc9:e303:9a46:3c9f'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'nfsvers=4.1,addr=172.24.6.81,clientaddr=172.24.6.3'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting ds415p.synonym24.lan:/volume1/tmp

I tried to disable NFSv4 as well, guess no luck for me. sad

~$ sudo mount -t nfs -vvv -o nfsvers=3 ds415p.synonym24.lan:/volume1/tmp /mnt/DiskStation/tmp
mount.nfs: timeout set for Tue Aug 25 21:14:10 2020
mount.nfs: trying text-based options 'nfsvers=3,addr=fd3b:624e:a3d9:246:211:32ff:fe4c:1533'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying fd3b:624e:a3d9:246:211:32ff:fe4c:1533 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying fd3b:624e:a3d9:246:211:32ff:fe4c:1533 prog 100005 vers 3 prot UDP port 892
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'nfsvers=3,addr=172.24.6.81'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 172.24.6.81 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 172.24.6.81 prog 100005 vers 3 prot UDP port 892
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting ds415p.synonym24.lan:/volume1/tmp

I have opened a support case at Synology. Maybe they know something.

Last edited by synonym24 (2020-08-25 19:45:34)

Offline

#4 2020-08-31 10:13:35

synonym24
Member
Registered: 2009-01-27
Posts: 8

Re: Unable to mount NFS exports from Synology NAS

Just if anybody is having the some problem:

Synology support suggest to just stick at kernel 5.7. No further explanation.
After some pushing, the support tried with a VM and said basically "Does work for me, must be a problem with your installation".

I'm a little bit disappointed.

Offline

Board footer

Powered by FluxBB