Open blairfancy opened 3 years ago
Strange. I updated nfs-kernel-server so that it compiles with musl 1.2.x. Can you try mounting with -v ?
+1, also having this issue (does not support NFS export, in addition to your reported "no_subtree_check specified" one, but I'm completely new to NFS, so there's always a possibility that it's me doing something wrong.
I'm using OpenWrt 21.02.0-rc3, r16172-2aba3e9784 on a Raspberry Pi 4b. So far I've been unable to export any mounted directories. I get the same "does not support NFS export" error, dmesg output reports that I'm trying to mount F2FS even though I'm specifying mount -t ext4 for example (yes I have the FS drivers installed, yes I've rebooted)
I'm glad to see I'm not alone. I'm actually unable to mount even a decrypted LUKS container at all on OpenWrt's rc3 that I'm using (I end up with the same dmesg errors as when starting/reloading nfsd)
+1 On a D-Link DWR-118 A2. OpenWrt 21.02.0-rc3, r16172-2aba3e9784 For me mounting /tmp neither possible.
a work around is to export a folder in /tmp/export/ and make a bind mount
mount --bind /mnt/sda3 /tmp/export/mnt/sda3
and adapt export file accordingly:
/tmp/export 192.168.25.0/24(fsid=0,ro,all_squash,insecure,sync,no_subtree_check) 192.168.50.0/24(fsid=0,ro,all_squash,insecure,sync,no_subtree_check)
/tmp/export/mnt/sda3 192.168.25.0/24(fsid=1,rw,all_squash,no_subtree_check,insecure,anonuid=0,anongid=0)
the trick is to add in /etc/init.d/fastb or elsewhere:
/bin/mkdir -p /tmp/export/mnt/sda3
/bin/mount --bind /mnt/sda3 /tmp/export/mnt/sda3
to automatically bind before nsfd start
@blairfancy thanks a lot, it did the trick. Just for the record, both rows have to be in the export file (be aware, the first one is duplicated).
Any news on this? Just flashed a linksys wrt3200acm with OpenWrt 21.02.1 r16325-88151b8303 and also get this error. The workaround posted by @blairfancy works - but feels a bit hacky.
@danwrt has done some work in master. Maybe it should be backported.
I am experiencing this issue also with OpenWRT version 21.02.1 as well as version 17.07.7 on my Linksys WRT3200ACM Router.
idem on TP-Link Archer C2600 with OpenWrt 19.07.7 r11306-c4a6851c72 / LuCI openwrt-19.07 branch git-22.045.73925-36e5c1c, kernel 4.14.221. Not tested (yet?) @blairfancy's trick.
Edit : exactly the same status after upgrading to OpenWrt 21.02.1 r16325-88151b8303 / LuCI openwrt-21.02 branch git-22.025.79177-4ec18ec (kernel 5.4.154).
still can not export nfs in external hard drive
Architecture | MediaTek MT7621 ver:1 eco:3 Target Platform | ramips/mt7621 Firmware Version | OpenWrt 21.02.1 r16325-88151b8303 / LuCI openwrt-21.02 branch git-22.083.69138-0a0ce2a Kernel Version | 5.4.154
Is there a fix or workaround for this? I can share subdirectories of mnt like sda1 but not the folder /mnt/ itself.
Is there a fix or workaround for this?
Yes. See this post above. tl;dr: The NFSv4 root directory (the one that gets fsid=0
in /etc/exports
) mustn't be on the OverlayFS.
I can share subdirectories of mnt like sda1 but not the folder /mnt/ itself.
You won't be able to export the whole /mnt
dir since that one is part of the OverlayFS.
How come that mnt and everything else can be shared with SFTP/SSH or Samba?
Maintainer: @neheb
Environment: Opnwrt 21.02.0-rc1 on WRT1200AC router clean new install
Description: after opkg install nfs-kernel-server got error :
i m also not able to translate my old 19.07 exports file into new openwrt version: