NFS mount strange behavior

spoon72

New Around Here
I am looking for some help setting up an NFS shared drive on my RT-AC68U router running the current Asuswrt-Merlin release.
I have used the webgui on the router to setup the usb drive as rw. The share will only be available on my LAN to 3 other Linux machines.
To me it looks like the share is running OK on the router. On the router I see the following:

ASUSWRT-Merlin RT-AC68U 386.3_2 Fri Aug 6 21:47:27 UTC 2021
[email protected]:/tmp/home/root# lsmod
Module Size Used by Tainted: P
tdts_udbfw 25852 0
tdts_udb 180812 1 tdts_udbfw
nfsd 81901 11
exportfs 2959 1 nfsd
lockd 58157 1 nfsd
sunrpc 161418 10 nfsd,lockd
tun 12274 2
tdts 417034 2 tdts_udbfw,tdts_udb
thfsplus 84702 0
tntfs 493645 1
sr_mod 10842 0
cdrom 30901 1 sr_mod
tfat 186782 0
ext2 52776 0
nf_nat_sip 5031 0
ext4 221674 0
nf_conntrack_sip 15713 1 nf_nat_sip
crc16 1007 1 ext4
jbd2 48993 1 ext4
nf_nat_h323 4761 0
nf_conntrack_h323 33807 1 nf_nat_h323
nf_nat_rtsp 3202 0
ext3 106409 0
nf_conntrack_rtsp 4067 1 nf_nat_rtsp
nf_nat_ftp 1144 0
nf_conntrack_ftp 4909 1 nf_nat_ftp
jbd 42367 1 ext3
mbcache 4599 3 ext2,ext4,ext3
usb_storage 34290 1
sg 19855 0
ip6table_mangle 934 0
sd_mod 21983 2
usblp 10321 0
scsi_wait_scan 416 0
scsi_mod 108738 4 sr_mod,usb_storage,sg,sd_mod
ohci_hcd 17926 0
ehci_hcd 32382 0
xhci_hcd 51132 0
cdc_mbim 3137 0
qmi_wwan 5792 0
cdc_wdm 7252 2 cdc_mbim,qmi_wwan
cdc_ncm 8762 1 cdc_mbim
rndis_host 5256 0
cdc_ether 4036 1 rndis_host
asix 10856 0
cdc_acm 12614 0
usbnet 11900 6 cdc_mbim,qmi_wwan,cdc_ncm,rndis_host,cdc_ether,asix
mii 3367 2 asix,usbnet
usbcore 102572 15 usb_storage,usblp,ohci_hcd,ehci_hcd,xhci_hcd,cdc_mbim,qmi_wwan,cdc_wdm,cdc_ncm,rndis_host,cdc_ether,asix,cdc_acm,usbnet
ebt_ip 1322 6
ebtable_broute 873 1
ebtables 15643 1 ebtable_broute
ip6table_filter 750 1
nf_nat_pptp 1602 0
nf_conntrack_pptp 3419 1 nf_nat_pptp
nf_nat_proto_gre 887 1 nf_nat_pptp
nf_conntrack_proto_gre 3296 1 nf_conntrack_pptp
wl 4208532 0
dpsta 12782 1 wl
et 65170 0
igs 11992 1 wl
emf 15449 2 wl,igs
ctf 21199 0
jffs2 91274 1
zlib_deflate 19489 1 jffs2
[email protected]:/tmp/home/root# showmount -e 192.168.1.1
Export list for 192.168.1.1:
/tmp/mnt/sda1/common_gnd 192.168.1.0/24
[email protected]:/tmp/home/root# ls -al //tmp/mnt
drwxrwxrwx 3 admin root 60 Nov 6 08:49 .
drwxrwxrwx 16 admin root 1420 Nov 7 10:44 ..
drwxrwxrwx 1 admin root 4096 Nov 5 18:31 sda

on the ubuntu client, I see:
[email protected]:~$ df
192.168.1.1:/mnt/sda1/common_gnd 500105216 88895712 411209504 18% /mnt/nfsmount


I look on the mounted drive for a file:
ls /mnt/nfsmount testfile*
ls: cannot access 'testfile*': No such file or directory

nothing there, so I create a file:
[email protected]:~$ touch /mnt/nfsmount/testfile1
[email protected]:~$ ls /mnt/nfsmount testfile*
ls: cannot access 'testfile*': No such file or directory

look a second time and it appears:
[email protected]:~$ ls -alg /mnt/nfsmount
-rwxrwxrwx 1 root 0 Nov 7 10:51 testfile1

This happens for all files using cp or mv to place files on the mounted drive. Everytime there is an initial failed attempt followed by a success.
I am at a loss as to how to fix, so any advice is greatly appreciated. I am pretty my a noob with NFS.
 

ColinTaylor

Part of the Furniture
My guess is that this is because your USB drive is relativity slow committing writes. You could try using the async option on the exported filesystem provided you're willing to accept the possibility of data loss should the server be shutdown uncleanly.
 

spoon72

New Around Here
Thanks for the response. Just FYI, the drive is a USB 3.0 SSD.
I tried setting the async option and it did not change anything; the problem persists.
 

ColinTaylor

Part of the Furniture
Sorry, I can't recreate the problem. It works every time from my Ubuntu box.

Look for error messages in the router's syslog as well as the client's syslog and kern.log.
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top