NFS file listing


 
Thread Tools Search this Thread
Operating Systems AIX NFS file listing
# 1  
Old 03-16-2011
NFS file listing

Hi,

I have a server running AIX 5.3.0.0 ML 5, and on two occasions have seen issues where when the client side executes an 'ls', the output doesn't return all files (there is no difference in permissions between a file that can be listed, and a file that can't be listed), and I'm using the anonymous uid to access. At the moment I believe that both issues, although slightly different have the same root cause (feel free to disgree!):

First incident:

NFS client side = Services For Unix 3.5 NFS gateway.

The NFS gateway was able to mount the file system and list absolutely fine, however clients accessing the NFS gateway server were unable to list all files. At the time I mounted the same file system onto another AIX (5.3.0.0. ML 5) and could list all files as normal. This appears to have been resolved at the time by re-exporting the file system and re-mounting the file system on the NFS gateway server.

Second incident:

NFS client side = AIX 5.3.0.0

The client side in this incident was the same server that I was unable to replicate incident 1 with. The client side was able to list all files, apart from one file on the export. I unmounted and remounted the file system, and the server was able to list it.

In both of the above, I was able to access the file from the NFS client by using the file name (i.e. ls -l <filename>), however the file wasn't listed using 'ls'.

I did find APAR IY73615 which appears to be a similar problem, however this concerns non AIX clients (so only applicable to incident 1). By the time incident 2 occured (a week later) I was aware of the above, and touched the affected file, but was still unable to list it (though this was AIX to AIX). Both AIX servers are also on ML 5, and this problem appears to have resolved in ML 3.

I've spent quite a bit of time reading (redbooks, IBM's documentation site, forums) but haven't been able to find anything concerning this problem. The next time it happens I'll try to use syslog to generate some output, but am keen to know if anyone has come across this, or any thoguhts on how best to tackle it.

Many thanks,
Rich
# 2  
Old 03-16-2011
Tbh, I do not trust/like NFS much cause of similar effects described by you. So if possible, maybe upgrade to the latest TL available and hopefully have it fixed by this. TL 5 is rather old.

TL 12, ie. Service-Pack 5300-12-03-1107 is the latest.
# 3  
Old 03-16-2011
Thanks - that's an option I can certainly look at. I'm sure you'll appreciate that I'll need some firm evidence of a resolution in the most recent TL before upgrading to it. Will wait with anticipation for the next occurance! Smilie
# 4  
Old 03-16-2011
Not sure, but I would think this is normal behaviour (at least we are treating it as normal behaviour in our company - and at least it still occurs with TL11) as the client always only can see what had been within the exported filesystem during the time of the export - except new content has been added by the client himself (in case of a rw mount) - I was thinking that the export puts something into the share that is comparable to a .toc file in an AIX filesystem where you can for example install only packages from that had been there already when the .toc has been written - but when you try to install something that came afterwards into the same filesystem, you cannot?

Regards
zxmaus
# 5  
Old 03-17-2011
Thanks zxmaus,

NFS is designed to allow both the server and client to update remote file systems and retrieve their updated contents on the fly. I've just signed up, so can't post links, but googling RFC 1813 will allow you to confirm the protocol specification on faqs.org. The paragraph I'm looking at says:

"Procedure READDIR retrieves a variable number of entries, in sequence, from a directory and returns the name and file identifier for each, with information to allow the client to request additional directory entries in a subsequent READDIR request"

I believe that should allow me to list the contents of a directory if it's changed by the server. This is the way that I've always experienced NFS working in the past.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

NFS write error on host xyz: Stale NFS file handle - Solaris 10

Oct 13 12:19:15 xyz nfs: NFS write error on host xyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: (file handle: 68000000 1bc5492e 20000000 377c5e 1ce9395c 720a6203 40000000 bdfb0400) Oct 13 12:19:15 xyz nfs: NFS write error on host zyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: ... (5 Replies)
Discussion started by: psychocandy
5 Replies

2. UNIX for Advanced & Expert Users

Listing file issue

I have the three following files available in the directory. But the job should be able to read only the first two files. Could any one help me in writing command to list only the first two files and omit the last file. I used ls -1 LSM_REP* > final.lst. It is copying all the three files. But I... (5 Replies)
Discussion started by: Ram Nukavarapu
5 Replies

3. UNIX for Dummies Questions & Answers

[Solved] How to remove listing of current user cmd from ps -ef listing?

Hi All, Could you please help to resolve my following issues: Problem Description: Suppose my user name is "MI90". i.e. $USER = MI90 when i run below command, i get all the processes running on the system containing name MQ. ps -ef | grep MQ But sometimes it lists... (8 Replies)
Discussion started by: KDMishra
8 Replies

4. Shell Programming and Scripting

How do I get only the file name from a listing?

Hi, I am trying to get a file name only. Could anyone help me on the same. Meaning I have a file say list.out which holds below output ./xyz/abc.txt ./xyz/hij.txt I want an output as below abc.txt hij.txt i.e I want to delete everything before abc.txt Please help me out if any one has... (4 Replies)
Discussion started by: spark
4 Replies

5. Solaris

NFS write error on host : Stale NFS file handle

:confused:Hi all When i see in the /var/adm/messages, i saw the following error unix: NFS write error on host : Stale NFS file handle. unix: (file handle: 45ca415 3e7 a0000 2c7f6 3ebfc25f a0000 2 3e49) It is using sunOS 5.7. Is anybody know what is this error? Is is related to any network... (2 Replies)
Discussion started by: AirWalker83
2 Replies

6. Solaris

file listing ...

Hi experts, I have several hundred files for everyday each month (below example is September)- PP023149200709010546.......PP028023200709012300 PP023150200709020023.......PP026096200709022134 .. .. PP021256200709201920.......PP025576200709202218 .. ..... (3 Replies)
Discussion started by: thepurple
3 Replies

7. Shell Programming and Scripting

listing file with other format

Hello. If i use ls to list file, the output will be like this: ls list* list1.txt list2.txt list3.txt list4.txt list5.txt How can I list file like below (I tried to us ls -ltr list*.txt, but all of them with time, date in font of the file...but I don't need it)? list1.txt... (3 Replies)
Discussion started by: happyv
3 Replies

8. Programming

Listing File Info

Hi, From a Unix book, i'd found that the way to list files in a directory. But those file info are all not shown, wat is shown is only the file name. Can anyone pls teach me how to show the file details? (etc file size, read/write permission, modified date) my code: Dir *dirp; struct... (3 Replies)
Discussion started by: AkumaTay
3 Replies

9. UNIX for Dummies Questions & Answers

Recursive directory listing without listing files

Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories. The following command also shows the files but I only want to see the directories. ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies

10. UNIX for Dummies Questions & Answers

File listing

I can't seem to list all the files that begin with a lower case or upper case letter between a-m while being in that directory? Please help I've tried everything from all the ls commands to even grep commands. b (5 Replies)
Discussion started by: Astudent
5 Replies
Login or Register to Ask a Question