Linux NFS development
 help / color / mirror / Atom feed
* Invisible files and input/output errors
@ 2007-12-03 23:37 Christoph Bartoschek
  2007-12-04  0:23 ` Neil Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Bartoschek @ 2007-12-03 23:37 UTC (permalink / raw)
  To: linux-nfs

Hi,

we use a DFS-NFS-Gateway on AIX 5.1 as our NFS-Server. This works fine most of 
the time but for four months we have strange problems. There are basically 
two issues:

1. Using "ls" in specific directories after certain idle time gives us 
an "Input/Output Error" without any results.

2. In some directories some entries are not shown. For example there is a 
directory with the subdirectory ak_fcp in it. "ls" does not show this 
directory. But it is possible to do "cd ak_fcp" and then normally work with 
it.  It is also possible to access files in the directory while being in the 
parent directory: " less ak_fcp/logfile"  works.

Does anybody know how to get rid of the problems? The problems occur on 
several different linux versions.

Greetings
Christoph

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Invisible files and input/output errors
  2007-12-03 23:37 Invisible files and input/output errors Christoph Bartoschek
@ 2007-12-04  0:23 ` Neil Brown
       [not found]   ` <18260.40472.276614.78174-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Brown @ 2007-12-04  0:23 UTC (permalink / raw)
  To: Christoph Bartoschek; +Cc: linux-nfs

On Tuesday December 4, bartoschek-eefaeeawk+jFLWzOrOlZPg@public.gmane.org wrote:
> Hi,
> 
> we use a DFS-NFS-Gateway on AIX 5.1 as our NFS-Server. This works fine most of 
> the time but for four months we have strange problems. There are basically 
> two issues:
> 
> 1. Using "ls" in specific directories after certain idle time gives us 
> an "Input/Output Error" without any results.
> 
> 2. In some directories some entries are not shown. For example there is a 
> directory with the subdirectory ak_fcp in it. "ls" does not show this 
> directory. But it is possible to do "cd ak_fcp" and then normally work with 
> it.  It is also possible to access files in the directory while being in the 
> parent directory: " less ak_fcp/logfile"  works.
> 
> Does anybody know how to get rid of the problems? The problems occur on 
> several different linux versions.

Sounds a lot like directory cookie problems.

Can you get a network trace of the NFS packets.
Something like

    tcpdump -s 0 -w /tmp/trace host NAME-OF-SERVER

then cause the failure while that is running.
Either compress and attach the result to an Email, or if it is too
big, stick it on a website somewhere.

NeilBrown

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Invisible files and input/output errors
       [not found]   ` <18260.40472.276614.78174-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
@ 2007-12-04 10:06     ` Christoph Bartoschek
  2007-12-05 23:31       ` Neil Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Bartoschek @ 2007-12-04 10:06 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-nfs

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]


> Sounds a lot like directory cookie problems.
>
> Can you get a network trace of the NFS packets.
> Something like
>
>     tcpdump -s 0 -w /tmp/trace host NAME-OF-SERVER
>
> then cause the failure while that is running.
> Either compress and attach the result to an Email, or if it is too
> big, stick it on a website somewhere.

I have attached a trace of a "ls" that does not show some directories.

I have to make some tests to reproduce the input/output errors.

Greetings
Christoph

[-- Attachment #2: missing_files.trace.bz2 --]
[-- Type: application/x-bzip2, Size: 7643 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Invisible files and input/output errors
  2007-12-04 10:06     ` Christoph Bartoschek
@ 2007-12-05 23:31       ` Neil Brown
       [not found]         ` <18263.13509.397157.489566-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Brown @ 2007-12-05 23:31 UTC (permalink / raw)
  To: Christoph Bartoschek; +Cc: linux-nfs

On Tuesday December 4, bartoschek-eefaeeawk+jFLWzOrOlZPg@public.gmane.org wrote:
> 
> > Sounds a lot like directory cookie problems.
> >
> > Can you get a network trace of the NFS packets.
> > Something like
> >
> >     tcpdump -s 0 -w /tmp/trace host NAME-OF-SERVER
> >
> > then cause the failure while that is running.
> > Either compress and attach the result to an Email, or if it is too
> > big, stick it on a website somewhere.
> 
> I have attached a trace of a "ls" that does not show some directories.

There is one interesting feature of this trace.

The 'cookie' assigned to each directory entry normally is 32 more than
the previous entry, though in some places the gap is 64 or another
large multiple of 32.

The whole directory is fetched in three requests - each request
sending the cookie from the last name in the previous reply.

For the last request, the cookie for the first entry returned is 992
more than that last cookie in the previous reply.
This is by far that largest gap, and that fact that it aligns with a
break between two requests seems a little suspicious.

It might be interesting to remove some of the files that appear early
in the list, e.g.

 COUNT8SF manga.tcl test-run tanga.tcl flex sopec mopec thumper 

and see how that affects the returned list of files.

In any case, it looks from the trace that the Linux client so doing
the right thing based on the information returned, so I would
suggested reporting this to whoever provided your NFS-DFS gateway.

NeilBrown


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Invisible files and input/output errors
       [not found]         ` <18263.13509.397157.489566-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
@ 2007-12-06  6:22           ` Christoph Bartoschek
  0 siblings, 0 replies; 5+ messages in thread
From: Christoph Bartoschek @ 2007-12-06  6:22 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-nfs


> In any case, it looks from the trace that the Linux client so doing
> the right thing based on the information returned, so I would
> suggested reporting this to whoever provided your NFS-DFS gateway.

Thanks, I am going to contact the server guys.

Christoph

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-12-06  6:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-03 23:37 Invisible files and input/output errors Christoph Bartoschek
2007-12-04  0:23 ` Neil Brown
     [not found]   ` <18260.40472.276614.78174-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2007-12-04 10:06     ` Christoph Bartoschek
2007-12-05 23:31       ` Neil Brown
     [not found]         ` <18263.13509.397157.489566-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2007-12-06  6:22           ` Christoph Bartoschek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox