New files and directories in NFS mount are invisible

I have a server with a nfs share

aldebaran:~ # cat /etc/exports
/home/fernando/documentos 192.168.2.3(rw,no_root_squash,sync,no_subtree_check)

I have it mounted from another computer (both Opensuse Leap 15.4)

andromeda:~ # mount
aldebaran:/home/fernando/documentos on /home/fernando/documentos type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.2.3,local_lock=none,addr=192.168.2.5)

It has been working fine for a since long ago, but yesterday I have a strange behaviour, It seems files were dissapearing… but no, the point is that if I create a new file (or dir) it seems it has dissapear (from the client) … but it is there, I can enter to the server and I see it there … even I can do this (in the client)

fernando@andromeda:~/documentos/tmp/test> ls
fernando@andromeda:~/documentos/tmp/test> mkdir invisible
fernando@andromeda:~/documentos/tmp/test> ls
fernando@andromeda:~/documentos/tmp/test> cd invisible
fernando@andromeda:~/documentos/tmp/test/invisible> 

So, I make a dir called invisible … it doe nos appear in ls neither in dolphin … but if a do a cd invisible I can enter into it.

The client is configured to go to sleep (in ram) when idle 10 minutes, I’m not sure if it can be related to this, but it was configured this way since time ago and this is a new behaviour.

Any ideas what to search for?

If I remember correctly there was the same problem some time ago. Use the search function. That OP also used the word “share” in his title (this to make the search easier, because using the word “export” would be correct, but will probably not be found with this problem).

I have found things that look similar at first but that do not seem to be my problem, I will continue searching. In the meantime I have done some test and found very funny things

  • It does not seem to be anything related to sleep/resume, I have rebooted the system, created some files just after reboot … and they do not seem to be there
  • Files are really there simply the do not appear in a listing
fernando@andromeda:~/documentos/tmp/test> ls
file1.txt  file2.txt  file3.txt  invisible
fernando@andromeda:~/documentos/tmp/test> ls >file4.txt
fernando@andromeda:~/documentos/tmp/test> ls >file5.txt
fernando@andromeda:~/documentos/tmp/test> ls
file1.txt  file2.txt  file3.txt  invisible
fernando@andromeda:~/documentos/tmp/test> ls file*
file1.txt  file2.txt  file3.txt
fernando@andromeda:~/documentos/tmp/test> cat file4.txt
file1.txt
file2.txt
file3.txt
invisible
fernando@andromeda:~/documentos/tmp/test> ls file4.txt
file4.txt
fernando@andromeda:~/documentos/tmp/test>
  • Files are always visible in the server
  • All new files and directories stay hidden
  • All “hidden” files appear after a reboot (of the client)
  • a remount of the filesystem don’t do anything (I mean that the files are still hidden)
  • I cant see any error in /var/log/messages in the client nor in the server

Yes, it is the same problem. I will follow up in your thread.