1752794 Members
6433 Online
108789 Solutions
New Discussion

Re: NFS/NAS ls problem

 
ran_li
Regular Advisor

NFS/NAS ls problem

hi guys,

 

i have a network drive mounted by sys admin, I dont have root privilege.

 

192.168.10.13:/vol/staging/disk1 /disk1  nfs rw  0 2

 

i can not ls all the files on this file system but if i list individual files it can be displayed ....

 

e.g.

 

hosta: /disk1/path/to/file> ls -lart file1

file1 not found

 

hosta: /disk1/path/to/file> ls -lart

-rw-rw-r--   1 user1  group1     7920222 Apr 30 16:26 server1.log
-rw-rw-r--   1 user1  group1     10485827 Apr 30 23:33 server2.log
-rw-rw-r--   1 user1  group1     10485903 Apr 30 23:34 servier3.log

 

hosta: /disk1/path/to/file> touch file1

 

hosta: /disk1/path/to/file> ls -lart

-rw-rw-r--   1 user1  group1     7920222 Apr 30 16:26 server1.log
-rw-rw-r--   1 user1  group1     10485827 Apr 30 23:33 server2.log
-rw-rw-r--   1 user1  group1     10485903 Apr 30 23:34 servier3.log

 

hosta: /disk1/path/to/file> ls -lart file1

-rw-r--r--   1 user1  group1     0 May  1 01:00 file1

 

i m sure there is no hidden characters in the file name, what could be the reason that the file1 can not be shown by ls -lart ?

 

Thanks !

 

 

4 REPLIES 4
Dave Olker
HPE Pro

Re: NFS/NAS ls problem

Does "file1" ever show up in the ls output or only when specified?  I'm wondering if this is a caching problem and it's taking a long time for the directory cache on your NFS client to expire and get new information that includes "file1".

 

I'd say you could try testing by disabling caching by mounting with the "noac" option, but since you don't have admin privs I guess you'll have to ask someone else to do that for you.

 

Dave

I work for HPE

[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
ran_li
Regular Advisor

Re: NFS/NAS ls problem

>> Does "file1" ever show up in the ls output or only when specified?

 

only when specified then it will show up .....

Thanks for the suggestion, I will discuss it with SA .

 

RAJD1
Valued Contributor

Re: NFS/NAS ls problem

Ran,

What is the permission showing in the parent directory.

 

ls -ld /disk1/path/to/file/

It could be a permission related issue,  

 

Please check/add perm with the help of SA/NAS admin,  and thenyou can try again,

 

Hth,

Raj D.

ran_li
Regular Advisor

Re: NFS/NAS ls problem

parent dir permission is

 

drwxr-xr-x   3 user1   group1     14860288 May  2 15:52 /path/to/file

 

i will check with admins. Thanks for your reply.