Skip to navigation

After updating the NFS-server to RHEL-5.9, ls or ls with a wildcard is not displaying the files on NFS share

Updated 2013-09-30T07:36:07+00:00

Issue

  • Files on NFS share are not getting displayed while executing ls or ls with wildcard, but the same is displaying ls with exact file name:

    • on the NFS-client in the mountpoint:
    user@nfs-client $ ls -x1 | wc -l
    3
    
    • on the NFS-server in the exported directory:
    user@nfs-server $ ls -x1 | wc -l
    347
    
  • On RHEL 6 NFS client, multiple . & .. entries getting listed when looking at them using ls? These direcories not there on NFS server:

# ls -il /<NFS_Mounted_Dir>

30573701 drwxr-xr-x. 2 root root  12288 May  6  2010 .
30572769 drwxr-xr-x. 9 root root   4096 May  6  2010 ..
30572769 drwxr-xr-x. 9 root root   4096 May  6  2010 ..
30572769 drwxr-xr-x. 9 root root   4096 May  6  2010 ..
30572769 drwxr-xr-x. 9 root root   4096 May  6  2010 ..
30573702 -rw-r--r--. 1 root root   2712 Nov 10  2009 file1.html
30573702 -rw-r--r--. 1 root root   2712 Nov 10  2009 file1.html
30573702 -rw-r--r--. 1 root root   2712 Nov 10  2009 file1.html
30573702 -rw-r--r--. 1 root root   2712 Nov 10  2009 file1.html

Environment

  • Red Hat Enterprise Linux 5.9 on the NFS-server
  • NFS-server running kernel 2.6.18-348.1.1.el5
  • NFS Version 3 (NFS v3)

Subscriber content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.