Linux NFS development
 help / color / mirror / Atom feed
* [NFS] Attempting to mount a large number of directories
@ 2007-12-24 11:00 Fabian Steiner
       [not found] ` <200712241200.08410.lists-A1xC5SIKT5unwkN7LPkuEg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Fabian Steiner @ 2007-12-24 11:00 UTC (permalink / raw)
  To: nfs

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

Hello!

After having finished the migration to our new setup (user home directories 
are mounted automatically using autofs [4.1.4-8ubuntu1] and NFSv3) we are 
experiencing some problems which use to occur whenever many users attempt to 
access their directories. If such an issue appears the following messages 
will be seen in /var/log/syslog of the server:

Dec 23 18:38:00 ubuntu1 mountd[8995]: refused mount request from client 
for /exports/dir157 (/exports): illegal port 59537

At first we thought it would be an autofs problem but after having tried to 
reproduce the problem employing normal nfs mounts we encountered the same 
issues. The attached scripts might help you to reproduce it.

Running these scripts reveal that mounting 105 directories work, the 106th 
fails, however, resulting in the following error: 

[...]
Working on dir 105 ...nfs bindresvport: Address already in use
OK
Working on dir 106 ...mount: 192.168.0.46:/exports/dir106: can't read 
superblock
OK
[...]

At next, I added the "insecure" option to my /etc/exports file and increased 
the value of /proc/sys/sunrpc/max_resvport from 1023 to 5000. Now 139 
directories can be mounted without any single error, then "nfs bindresvport: 
Address already in use" appears again and mounting 141-172 also works fine. 
Afterwards all the other mount attempts are failing.

Could you explain this behaviour? What does "nfs bindresvport: Address already 
in use" try to tell me? Generally speaking both the server as well as the 
client should run out of open ports.

Merry Christmas and relaxing holidays,
Fabian :-)
























[-- Attachment #2: CONSTANTS --]
[-- Type: text/plain, Size: 72 bytes --]

SERVER="192.168.0.46"
SERVER_BASE="/exports"

CLIENT_BASE="/nfs-mounts"

[-- Attachment #3: create_dirs.sh --]
[-- Type: application/x-shellscript, Size: 185 bytes --]

[-- Attachment #4: mount_all.sh --]
[-- Type: application/x-shellscript, Size: 454 bytes --]

[-- Attachment #5: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #6: Type: text/plain, Size: 362 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that nfs@lists.sourceforge.net is being discontinued.
Please subscribe to linux-nfs@vger.kernel.org instead.
    http://vger.kernel.org/vger-lists.html#linux-nfs

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

end of thread, other threads:[~2008-01-08  3:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-24 11:00 [NFS] Attempting to mount a large number of directories Fabian Steiner
     [not found] ` <200712241200.08410.lists-A1xC5SIKT5unwkN7LPkuEg@public.gmane.org>
2008-01-07  6:07   ` Fabian Steiner
2008-01-07  8:45   ` Ian Kent
     [not found]     ` <1199695504.3156.69.camel-J+SFD3YVfrQ/gntp4R1GGQ@public.gmane.org>
2008-01-07 21:28       ` Fabian Steiner
     [not found]         ` <200801072228.58507.lists-A1xC5SIKT5unwkN7LPkuEg@public.gmane.org>
2008-01-08  3:07           ` Ian Kent

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