Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #2320

Re: NFS - only one client at a time can read files

Date 2013-09-23 09:44 +0200
From David Brown <david@westcontrol.removethisbit.com>
Newsgroups comp.os.linux.networking
Subject Re: NFS - only one client at a time can read files
References <u-CdnZ-i5OsXy6HPnZ2dnUVZ8s-dnZ2d@lyse.net> <cm7ugaxuip.ln2@news.roaima.co.uk>
Message-ID <qc2dnbBWn5nFbKLPnZ2dnUVZ8lqdnZ2d@lyse.net> (permalink)

Show all headers | View raw


On 20/09/13 17:54, Chris Davies wrote:
> David Brown <david@westcontrol.removethisbit.com> wrote:
>> I have a strange problem with NFS.
> 
>> If I watch the progress of the rsyncs, I can see one card will run for
>> a bit, then stop and complain about nfs timeouts. Another card will
>> run for a bit, before it too stops with a timeout. This goes back and
>> forth - at any given time, only one client is successfully reading.
> 
> This sounds like you don't have anywhere near enough rpc/nfsd daemons
> on your NFS server.
> 
> On my Debian box there's a file /etc/default/nfs-kernel-server that
> defines the number of kernel nfsd "processes" to start at boot time. (I
> don't know where your equivalent configuration file will live.) The
> default on my system is 8, but you probably want to increase it to 32
> or even 64.
> 
> To test the theory, count the number of nfsd processes already running
>     ps -ef | grep -w '[n]fsd' | wc -l
> 
> And then increase it, for example from 8 to 32
>     nfsd 32
> 
> If this works, you can configure it for boot-time.
> Chris
> 

This sounds like a possible explanation.  A quick check shows that I
have 8 nfsd threads running.  Rsync almost certainly needs several
connections while it is working, as it runs through the source tree to
see what it should be copying - contention for the nfs connection
threads could be the cause.

I'll have to translate your commands here from "Debian" into "Fedora
14", but now that I know what I am looking for, google can help with the
translation.  Later on, this whole thing will run on a debian server -
but at the moment it is prototyping on my (outdated) Fedora desktop.

Additionally, the mere act of talking about the problem has suggested an
alternative solution.  I am copying a bunch of data from one computer to
another computer using rsync.  Why not just use an rsync server?  (The
historical answer is that the copy was originally a "cp -a" rather than
"rsync -a".)

Thanks for the help,

David



Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

NFS - only one client at a time can read files David Brown <david@westcontrol.removethisbit.com> - 2013-09-20 16:07 +0200
  Re: NFS - only one client at a time can read files unruh <unruh@invalid.ca> - 2013-09-20 15:15 +0000
    Re: NFS - only one client at a time can read files David Brown <david@westcontrol.removethisbit.com> - 2013-09-23 09:28 +0200
  Re: NFS - only one client at a time can read files Chris Davies <chris-usenet@roaima.co.uk> - 2013-09-20 16:54 +0100
    Re: NFS - only one client at a time can read files David Brown <david@westcontrol.removethisbit.com> - 2013-09-23 09:44 +0200
      Re: NFS - only one client at a time can read files David Brown <david@westcontrol.removethisbit.com> - 2013-09-23 11:51 +0200
      Re: NFS - only one client at a time can read files Chris Davies <chris-usenet@roaima.co.uk> - 2013-09-27 10:40 +0100
  Re: NFS - only one client at a time can read files Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2013-09-20 20:37 +0300
    Re: NFS - only one client at a time can read files Chris Davies <chris-usenet@roaima.co.uk> - 2013-09-21 14:00 +0100
      Re: NFS - only one client at a time can read files Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2013-09-21 18:18 +0300
      Re: NFS - only one client at a time can read files David Brown <david@westcontrol.removethisbit.com> - 2013-09-23 09:34 +0200
  Re: NFS - only one client at a time can read files David Brown <david@westcontrol.removethisbit.com> - 2013-10-10 16:28 +0200

csiph-web