All of lore.kernel.org
 help / color / mirror / Atom feed
* NFSv3, 2.6, ext3 and dir_index
@ 2005-01-20 16:38 Tobias Diedrich
  2005-01-20 19:26 ` Michael Haverkamp
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Diedrich @ 2005-01-20 16:38 UTC (permalink / raw)
  To: nfs

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

Hi,

I recently switched from a local homedir to a NFS mounted homedir
and noticed some strange things:

I have a Cronjob that goes over my mp3 directory and after the
switch find would print "foo/bar/blubb: No such file or directory"
for a few (approx. 2-3 out of 1928) directories, but not always the same
ones.  Also, my mp3 player program would sometimes stop short in the
middle of a song and skip to the next one, because it got ENOENT on
a read of an open file.

Now first I thought it might just be a problem with my Kernel
version or one of the patches I'm using and upgraded to a more
recent one (currently 2.6.10-ac8-nfsacl on the client and
2.6.10-ac8-imq-nfsacl on the server, I also had the same problem
without the nfsacl patches).

Then I read an older thread about trouble with ext3/dir_index and
NFS in older 2.6 versions and tried disabling dir_index (Which was
enabled on all my ext3 filesystems).  With that the problem
vanished.

Are there any known problems with dir_index and NFS, or is this
maybe a new bug?

Getting a tcpdump of the client<->server traffic proved difficult,
because it is a quite sporadic bug and reproducing it would involve
quite a lot of NFS traffic.  I could reliably trigger this with my
CD/DVD burning script, which generates md5sums for each file and
puts them both into the file MD5SUMS in the current directory, as
well as into another file in my Homedir (But the files being
md5summed also live on another NFS export, so there is a _lot_ of
traffic).

I _do_ have a traffic capture of ls returning "No such file or
directory" on the current directory, then cding up a level, down into the
directory again and then a working ls.

Client fstab entry:
nukunuku:/mnt/space1/ranma /home/ranma nfs hard,intr,bg,udp,rsize=4096,wsize=4096 0 0

/proc/mounts entry:
nukunuku:/mnt/space1/ranma /home/ranma nfs rw,v3,rsize=4096,wsize=4096,hard,intr,udp,lock,addr=nukunuku 0 0

Server export file:
/ melchior.yamamaya.is-a-geek.org(sync,rw,no_root_squash)
/mnt/space1 melchior.yamamaya.is-a-geek.org(sync,rw,no_root_squash)
/mnt/space2 melchior.yamamaya.is-a-geek.org(sync,rw,no_root_squash)
/mnt/space3 melchior.yamamaya.is-a-geek.org(sync,rw,no_root_squash)

-- 
Tobias						PGP: http://9ac7e0bc.uguu.de

[-- Attachment #2: nfs.tcpdump.gz --]
[-- Type: application/octet-stream, Size: 5397 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* More Stale NFS handles
@ 2005-06-23 20:55 Eiwe Lingefors
  2005-06-29 20:28 ` Kris Vassallo
  0 siblings, 1 reply; 6+ messages in thread
From: Eiwe Lingefors @ 2005-06-23 20:55 UTC (permalink / raw)
  To: nfs

I have trawled the nfs mailing list archives a bit and judging by  
recent posts there is undoubtedly several others with the same  
problem.   The problems started happening when I installed a new  
Fedora Core 3 server and migrated home directories to it. Like Jim  
Farley mentioned in a recent thread on the list, our environment has  
been stable for years prior.

The server:
Dell PowerEdge 2850
1 x PowerVault 220S 14x300GB SCSI
Fedora Core 3
Kernel 2.6.9-1.667smp
Several exported LVM volumes all formatted with reiserfs v3.6

The clients:
64 x IBM x335 cluster nodes
RedHat 7.3
Kernel 2.4.26

40 x Sun Blade 150
Solaris 9

Things I have done:
x Upgraded automount on all linux clients to 4.1.4
x Tuned rsize,wsize,timeo,retrans
x Increased number of nfsd processes to 128

So far nothing I have done has helped reduce the amount of stale NFS  
file handles.

I'm not sure what additional information might be helpful. The  
problems I'm having essentially mirror those of others who have  
posted regarding stale NFS handles in the past few months on this  
list. I'm at my wits end after having fought with this problem for  
weeks. Any insight or pointers would be deeply appreciated. I'll be  
happy to provide additional information if needed.

Thanks,
Eiwe Lingefors

PS. I have quoted Jim Farley's message below since the problems are  
essentially identical to mine.

Jim Farley wrote:

 > Hi,
 >
 > We have been running an nfs environment for a couple of years now  
without
 > difficulties. Unfortunately when we upgraded the nfs server from  
RedHat9 to Fedora
 > Core 3 (2.6.9-1.667smp), clients (10 RedHat 9 systems,  
2.4.20-8smp) started getting
 > stale NFS file handles. I used tcpdump and verified that the  
messages are exchanged
 > between the server and client without delay which would indicate  
the network is not a
 > problem. I have also verified that the server is not under heavy  
load (cpu, memory,
 > network), nor are the clients.
 > We basically take the defaults on the client and on the server:
 >
 > Client:
 > cat /proc/mounts:
 > 192.168.11.10:/home /home nfs
 > rw,v3,rsize=4096,wsize=4096,hard,intr,udp,lock,addr=192.168.11.10 0 0
 >
 > Server:
 > cat /etc/exports
 > /home 192.168.11.0/255.255.255.0(rw,no_subtree_check)
 >
 > What I have done:
 > - increase number of nfsd's to 32
 > - disabled caching on one client (noac)
 > - reverted the server from the ext3 filesystem to ext2
 >
 > None of this has helped. Is there anything else I can try?
 >
 > Thanks,
 > Jimmy



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2005-08-13 11:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-20 16:38 NFSv3, 2.6, ext3 and dir_index Tobias Diedrich
2005-01-20 19:26 ` Michael Haverkamp
  -- strict thread matches above, loose matches on Subject: below --
2005-06-23 20:55 More Stale NFS handles Eiwe Lingefors
2005-06-29 20:28 ` Kris Vassallo
2005-01-20 16:38   ` NFSv3, 2.6, ext3 and dir_index Tobias Diedrich
2005-03-14 17:22     ` Chip Salzenberg
2005-03-20 21:21       ` Tobias Diedrich
2005-08-13  9:39         ` Tobias Diedrich
2005-06-29 20:50       ` More Stale NFS handles Bill Rugolsky Jr.

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.