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
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. UNIX for Dummies Questions & Answers
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
3. Programming
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
4. Shell Programming and Scripting
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
5. Solaris
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
6. Solaris
: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
7. Shell Programming and Scripting
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
8. UNIX for Dummies Questions & Answers
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
9. UNIX for Advanced & Expert Users
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
10. Solaris
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
LEARN ABOUT CENTOS
tapset::nfs_proc
tapset::nfs_proc(3stap) tapset::nfs_proc(3stap)
NAME
tapset::nfs_proc - systemtap nfs_proc tapset
DESCRIPTION
nfs.proc.lookup
NFS client opens/searches a file on server
See probe::nfs.proc.lookup(3stap)
for details.
nfs.proc.read
NFS client synchronously reads file from server
See probe::nfs.proc.read(3stap)
for details.
nfs.proc.write
NFS client synchronously writes file to server
See probe::nfs.proc.write(3stap)
for details.
nfs.proc.commit
NFS client committing data on server
See probe::nfs.proc.commit(3stap)
for details.
nfs.proc.read_setup
NFS client setting up a read RPC task
See probe::nfs.proc.read_setup(3stap)
for details.
nfs.proc.read_done
NFS client response to a read RPC task
See probe::nfs.proc.read_done(3stap)
for details.
nfs.proc.write_setup
NFS client setting up a write RPC task
See probe::nfs.proc.write_setup(3stap)
for details.
nfs.proc.write_done
NFS client response to a write RPC task
See probe::nfs.proc.write_done(3stap)
for details.
nfs.proc.commit_setup
NFS client setting up a commit RPC task
See probe::nfs.proc.commit_setup(3stap)
for details.
nfs.proc.commit_done
NFS client response to a commit RPC task
See probe::nfs.proc.commit_done(3stap)
for details.
nfs.proc.open
NFS client allocates file read/write context information
See probe::nfs.proc.open(3stap)
for details.
nfs.proc.release
NFS client releases file read/write context information
See probe::nfs.proc.release(3stap)
for details.
nfs.proc.handle_exception
NFS client handling an NFSv4 exception
See probe::nfs.proc.handle_exception(3stap)
for details.
nfs.proc.create
NFS client creating file on server
See probe::nfs.proc.create(3stap)
for details.
nfs.proc.remove
NFS client removes a file on server
See probe::nfs.proc.remove(3stap)
for details.
nfs.proc.rename
NFS client renames a file on server
See probe::nfs.proc.rename(3stap)
for details.
SEE ALSO
probe::nfs.proc.lookup(3stap), probe::nfs.proc.read(3stap), probe::nfs.proc.write(3stap), probe::nfs.proc.commit(3stap),
probe::nfs.proc.read_setup(3stap), probe::nfs.proc.read_done(3stap), probe::nfs.proc.write_setup(3stap),
probe::nfs.proc.write_done(3stap), probe::nfs.proc.commit_setup(3stap), probe::nfs.proc.commit_done(3stap), probe::nfs.proc.open(3stap),
probe::nfs.proc.release(3stap), probe::nfs.proc.handle_exception(3stap), probe::nfs.proc.create(3stap), probe::nfs.proc.remove(3stap),
probe::nfs.proc.rename(3stap), stap(1), stapprobes(3stap)
IBM
--- tapset::nfs_proc(3stap)