Click to See Complete Forum and Search --> : FreeBSD 'too many files'?


nanode
11-30-2000, 01:46 PM
I have an odd problem with my FreeBSD box.
I can't log in remotely, telnet, ssh or even ftp. It behaves like I've entered a wrong password.

I can log in from console, but do anything that requires a 'file handle', like editing a file etc. I rebooted the box and that solved the problem for about an hour, then it resumed.

Some background on this box:

It is a headless (no KB, monitor) box w/ CLI only. It's main function is a file server (NFS). I noticed these problems after my linux box (the DHCP server) was rebooted. I had a momentary hiccup cuz the IP was incorrect - but I corrected that and NFS works (still does with this problem)

Any ideas?

dieselboy
11-30-2000, 04:54 PM
I am going to have to refer you to http://potomacanglers.com/freebsd message board..

dieselboy
11-30-2000, 04:56 PM
freebsd vault (http://potomacanglers.com/freebsd)

SolarFlux
11-30-2000, 08:50 PM
Originally posted by dieselboy:
I am going to have to refer you to http://potomacanglers.com/freebsd message board..

LOL!

Way to plug your site, Diesel!!

http://www.linuxnewbie.org/ubb/cool.gif

klamath
11-30-2000, 10:32 PM
What is the sysctl variable 'kern.maxfiles' set to? How many files are actually open? Try "sysctl -w kern.maxfiles=2128", or put "kern.maxfiles=2128" in /etc/sysctl.conf . FYI, 2128 is double the current value on my FreeBSD 4.2 box - experiment to find what is right for you.

------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Better Bulletin Board (http://bbb.sourceforge.net)

nanode
12-03-2000, 02:57 AM
Klamath:

Thank you.


sysctl -w kern.maxfiles=2128


worked great - Only thing I may have done to cause this, was a 'chmod -R' on a huge NFS export that I had mounted on another box.

Dunno if that was related, but I'll be careful in the future.
Thanks again.

klamath
12-04-2000, 12:40 AM
Just so you know, the sysctl variables are reset every time FreeBSD is rebooted (like the /proc filesystem on Linux). To make it permanent, put it in /etc/sysctl.conf

------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Better Bulletin Board (http://bbb.sourceforge.net)

SolarFlux
12-04-2000, 03:40 AM
Hey Klamath,

we could use your knowledge over at bsdvault.net, stop by and check it out.

How's the BBB coming along?

nanode
12-04-2000, 01:47 PM
Klamath:

Thanks for reminding me to make it a permanent change. I had to shutdown the box today, as there is a planned power outtage.

klamath
12-04-2000, 05:34 PM
SolarFlux - sure, I'll check out bsdvault.net

The BBB is coming along quite well, but I'm up to my neck with schoolwork, so I really haven't had time to sit down and rewrite the current code base. Eventually I'll get some workable code out -- I have the design in my head!

If you know Perl, mod_perl, SQL, or web design/graphics I could use your help - http://bbb.sourceforge.net

------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Better Bulletin Board (http://bbb.sourceforge.net)