Page 1 of 1
Mounting remote fs on gargoyle with nfs
Posted: Thu Oct 29, 2020 1:09 pm
by agrohe21
I am unable to mount a remote fs on gargoyle using nfs. Should this be possible? what am I missing?
mount.nfs4 10.0.0.122:/volume2/gargoyle_nfs /root/myfolder -w
the remote fs is on a synology NAS with shared mount
Re: Mounting remote fs on gargoyle with nfs
Posted: Thu Oct 29, 2020 5:11 pm
by agrohe21
As a workaround I used scp to copy to the remote server without mounting but would be easier to mount locally.
As an aside, when you run scp interatively, it will add the host to /root/.ssh/known_hosts but when you run it in a service, you have to put it in /.ssh/known_hosts.
Re: Mounting remote fs on gargoyle with nfs
Posted: Sat Oct 31, 2020 4:31 am
by Lantis
Code: Select all
root@Gargoyle:~# opkg list-installed | grep nfs
kmod-fs-nfs - 4.14.195-1-5daa1b6c3f8426e6c189a39e865285bb
kmod-fs-nfs-common - 4.14.195-1-5daa1b6c3f8426e6c189a39e865285bb
kmod-fs-nfs-common-rpcsec - 4.14.195-1-5daa1b6c3f8426e6c189a39e865285bb
kmod-fs-nfs-v4 - 4.14.195-1-5daa1b6c3f8426e6c189a39e865285bb
kmod-fs-nfsd - 4.14.195-1-5daa1b6c3f8426e6c189a39e865285bb
nfs-kernel-server - 2.3.4-2
nfs-kernel-server-utils - 2.3.4-2
nfs-utils - 2.3.4-2
nfs-utils-libs - 2.3.4-2
Note that we only have support for nfsv4.
So on Synology make sure NFSv4 is enabled.
Then
Code: Select all
root@Gargoyle:~# mount.nfs NASIPADDRESS:/share/path /tmp/mountpoint -o nolock -v
If your synology won't do NFSv4, you'll need to install v3 support, which may be difficult as it is a kernel module and you may need to build yourself.