All of lore.kernel.org
 help / color / mirror / Atom feed
* mountd gives "illegal port"
@ 2004-10-27 12:42 Jan Kasprzak
  2004-10-27 15:45 ` J. Bruce Fields
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jan Kasprzak @ 2004-10-27 12:42 UTC (permalink / raw)
  To: nfs

	Hi all,

I have discovered the following problem in Linux NFS: When you mount
many filesystems from the same server, mountd sometimes refuses the
request with "illegal port" message in syslog. To reproduce this, I did
the following:

On the NFS server:
# for i in `seq 1 2048`; do mkdir /tmp/nfs/$i; echo "$i" >/tmp/nfs/$i/index-$i.txt; echo "/tmp/nfs/$i    *.fi.muni.cz(ro)"; done >/etc/exports
# exportfs -a

On the NFS client;
# for i in `seq 1 2048`; do mkdir /tmp/nfs/$i; done
# for i in `seq 1 100`; do echo $i; mount -t nfs -r nfs-server:/tmp/nfs/$i /tmp/nfs/$i || break; done

It fails after random number of iterations (seen 6 to 57) with

mount: nfs-server:/tmp/nfs/6 failed, reason given by server: Permission denied

And in NFS server the following is added to syslog:

Oct 27 14:28:48 nfs-server rpc.mountd: refused mount request from nfs-client.fi.muni.cz for /tmp/nfs/6 (/tmp/nfs/6): illegal port 54071

The situation seems a bit better when you add "sleep 5" to the mount loop.
Sleep 2 does not help, though.

-Yenya

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/   Czech Linux Homepage: http://www.linux.cz/ |
> Whatever the Java applications and desktop dances may lead to, Unix will <
> still be pushing the packets around for a quite a while.      --Rob Pike <


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2004-10-31 15:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-27 12:42 mountd gives "illegal port" Jan Kasprzak
2004-10-27 15:45 ` J. Bruce Fields
2004-10-27 16:23   ` Jan Kasprzak
2004-10-27 16:39     ` J. Bruce Fields
2004-10-27 16:40       ` Jan Kasprzak
2004-10-27 18:28     ` Peter Astrand
2004-10-27 16:12 ` Jan Kasprzak
2004-10-27 21:04 ` Michael Richardson
2004-10-27 21:13   ` Jan Kasprzak
2004-10-27 22:19     ` Michael Richardson

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.