SUMMARY : mountd problem?

From: Normand Ranger (rangern@CIRANO.UMontreal.CA)
Date: Mon Apr 26 1999 - 12:51:39 CDT


Hi sun-managers,

Original Post (last week) :
---------------------------------
Platform : SPARCserver 1000, Solaris 2.5, NIS+

I have a problem with mountd deamon and/or NFS... After several
days since a reboot (maybe 1 month), I have this message in /var/adm/message
file :

mountd[350]: do_accept : too many open files
mountd[350]: lock_shared: remap failed

What are these "do_accept" and "lock_shared" programs?

After that, the server refuses to all stations to automount or share files.
It seems like that there's a kind of overflow of automount or share files!
Then, the command "dfmounts" doesn't work.... It answers :
... RPC ... not registered
---------------------------------

I received 2 answers:

1) First, "Mark Neill" <Mark.Neill@fanb.com> said
do_accept is most likely a socket call....a listener trying to accept and
fork. I suspect you are running into the max of 1024 file descriptors
(files, sockets, etc) open, and this attempt to connect is failing because
of it.

I don't know for sure where the tuning parameter for max file sis, but you
can raise it if you are having this problem repeatedly; ideally, if it takes
a month to happen, look for ghosted/zombied processes that may have sockets
open (TIME_WAIT, LISTEN, or ESTABLISHED in a netstat) and kill them, they
probably aren't serving any purpose but to hold sockets open.

2) Second, "Karl Vogel" <vogelke@c17mis.region2.wpafb.af.mil> said
  We had the same problem. We fixed it by putting the lines below in
   /etc/system. We kept incrementing the file descriptor count by 128
   until the problem went away.
-----------------------------------------------------------------------------
* Change the hard/soft limits on file descriptors to (hopefully)
* fix some NFS mountd problems.
* set hard limit on file descriptors (originally 256)
        set rlim_fd_max = 768

* set soft limit on file descriptors (originally 64)
        set rlim_fd_cur = 512

I tried the solution of Karl... I will see in 2 or 3 weeks if it's OK ;-)

        Thank you.

                 Ciao!

                 Normand Ranger

             ``'`` CIRANO *
             (o O) Centre Interuniversitaire de * $$$$$$$
._________ooO_(_)_Ooo________. Recherche en ANalyse des Organisations *$$ $
| Sysadmin UNIX | 2020 rue University, 25e etage, $$**
| Co-webmestre | Montreal (Quebec) Canada H3A 2A5 $$ **
| Informaticien-statisticien | Tel: (514)985-4009 FAX: (514)985-4039 $$**
|____________________________| *$$ $
E-mail: rangern@cirano.umontreal.ca * $$$$$$$
http://www.cirano.umontreal.ca/~rangern *

"Le cheveu gris dit : << Je suis venu pour rester. >>"
        (Proverbe ethiopien)



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:18 CDT