All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Schmitt <mschmitt@inf.ethz.ch>
To: Neil Brown <neilb@cse.unsw.edu.au>
Cc: nfs@lists.sourceforge.net
Subject: Re: nfs-utils 1.0.5 break amd?
Date: 04 Aug 2003 23:38:46 +0200	[thread overview]
Message-ID: <1060033126.1354.118.camel@localhost> (raw)
In-Reply-To: <16169.55986.854984.818132@gargle.gargle.HOWL>

Ion is right, it's not the amd and Neil, you're right, too, `showmount
-e` is the way to go. :)

Here is a short cookbook on how to reproduce the problem on a test
server (no client needed to trigger the problem):

1) RedHat 7.3 with kernel 2.4.18-27.7.x
2) nfs-utils 1.0.5-1 (built with rpm -ta)
3) /etc/sysconfig/nfs
# For more information on nfs tuning, please see the NFS-HOWTO
# http://nfs.sourceforge.net/nfs-howto/
  
# Pass any additional options for mountd.
# MOUNTD_OPTIONS=
  
# Pin mountd to a given port rather than random one from portmapper
# MOUNTD_PORT=
  
# Don't advertise TCP for mount.
MOUNTD_TCP=no
  
# NFS V3
MOUNTD_NFS_V3=yes
  
# NFS V2
MOUNTD_NFS_V2=yes
  
# The number of open file descriptors
#MOUNTD_OPEN_FILES=128
  
# Pass the number of instances of nfsd (8 is default; 16 or more
# might be needed to handle heavy client traffic)
NFSDCOUNT=32
  
# Increase the memory limits on the socket input queues for
# the nfs processes .. NFS  benchmark SPECsfs demonstrate a
# need for a larger than default size (64kb) .. setting
# TUNE_QUEUE to yes will set the values to 256kb.
TUNE_QUEUE="yes"
NFS_QS=262144

4) create an exports file with 183 entries (here is exactly what I used,
in case the entries char length matters):
/home2/nfs/1 192.168.1.40(rw)
.
.
.
/home2/nfs/183 192.168.1.40(rw)

5) service nfslock start; service nfs start
6) issue `showmount -e`, it will show:
/home2/nfs/1 192.168.1.41
.
.
.
/home2/nfs/183 192.168.1.41

7) echo "/home2/nfs/184 192.168.1.40(rw)" >> /etc/exports
8) `exportfs -r` (rc 0)
9) `showmount -e` (rc 1: rpc mount export: RPC: Remote system error)

The moment I add the 184th entry to /etc/exports, `showmount -e` fails
with the same kind of error as amd does (host_fmount rpc failed: RPC:
Remote system error).

Now comes the interesting part, changing MOUNTD_TCP in
/etc/sysconfig/nfs from no to yes will make the problem go away. With
MOUNTD_TCP=yes I went up to 1000 exports and `showmount -e` worked fine.

To be honest, this is something I had changed in the same go when I
updated 1.0.3 to 1.0.5. So, for completeness, I ran the same tests with
1.0.3, the result is identical. For more than 183 entries and
MOUNTD_TCP=no, `showmount -e` returns the RPC error under 1.0.3, too.

I'm sorry about this, I should have investigated more carefully from
beginning on.

Greetings,
    Marc

On Fri, 2003-08-01 at 05:12, Neil Brown wrote:
> On  July 31, mschmitt@inf.ethz.ch wrote:
> > Hi all,
> > 
> > After upgrading a RedHat 7.3 box with kernel 2.4.18-27.7xsmp from
> > nfs-utils 1.0.3 to 1.0.5, amd stopped working.
> > 
> > On the client (am-utils-6.0.7-4, nfs-utils-0.3.3-6.73), I issue:
> > 
> > ls /net/<fileserver>
> > 
> > With 1.0.3, I get the correct directory listing under /net/<fileserver>
> > 
> > With 1.0.5, I get:
> > ls: /net/<fileserver>: Input/output error
> 
> Wierd.
> 
> > 
> > 
> > On the server, with 1.0.3, I'd see an entry for every export in
> > /etc/exports in /var/log/messages, mount refused or granted, according
> > to the export permissions. 
> > With 1.0.5, I get one single entry:
> > Jul 31 19:14:34 <fileserver> rpc.mountd: export request from <client>
> > 
> 
> Can you run
>    showmount -e <fileserver>
> on <client> and see what it returns?
> If it doesn't return the right stuff, maybe strace mountd on the
> server while you are running the showmout on the client.
> 
> NeilBrown



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2003-08-04 21:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-31 17:32 nfs-utils 1.0.5 break amd? Marc Schmitt
2003-08-01  3:12 ` Neil Brown
2003-08-04 21:38   ` Marc Schmitt [this message]
2003-08-05  2:13     ` Neil Brown
2003-08-05  8:22       ` Marc Schmitt
2003-08-05 13:23         ` Ion Badulescu
2003-08-04 16:05 ` Ion Badulescu
2003-08-04 16:29   ` Marc Schmitt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1060033126.1354.118.camel@localhost \
    --to=mschmitt@inf.ethz.ch \
    --cc=neilb@cse.unsw.edu.au \
    --cc=nfs@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.