NFS: new data takes long time to sync

Status
Not open for further replies.

mosh

Explorer
Joined
Mar 23, 2017
Messages
54
Hi,
Since moving to NFS, i encountered a very interesting (and frustrating) case
I have a FreeNAS server NFS v3 mount on two clients, a client is writing a file to the NFS datastore. the other client is trying to read the file after 750ms and it is failing with 'file not found' error

Any idea what could be the cause for this issue?

Server: FreeNAS-11.1-U4
clients: Ubuntu 14.04

Thanks,
Moshe
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
PS. That is not even one whole second. Is it a super tiny file? Maybe you just need a bit more time.
 

rvassar

Guru
Joined
May 2, 2018
Messages
972
That almost sounds like the client is caching the negative. Are you using any obtuse mount options? Have you tried "sync,lookupcache=none"? I remember hearing some of the Linux NFS clients get tripped up on directory caching when there's a ctime update without the mtime getting bumped.

Are any of these clients VM's? Make sure your NTP isn't wobbling.
 

mosh

Explorer
Joined
Mar 23, 2017
Messages
54

mosh

Explorer
Joined
Mar 23, 2017
Messages
54
That almost sounds like the client is caching the negative. Are you using any obtuse mount options? Have you tried "sync,lookupcache=none"? I remember hearing some of the Linux NFS clients get tripped up on directory caching when there's a ctime update without the mtime getting bumped.

Are any of these clients VM's? Make sure your NTP isn't wobbling.

Hi,
These are physical clients, NTP is working well i have that under monitoring.
I can try adding those parameters you suggested. those goes to the client side config, right?
 

rvassar

Guru
Joined
May 2, 2018
Messages
972
Client side mount options, yes.
 
Status
Not open for further replies.
Top