From owner-freebsd-questions Tue Jan 2 10:36:44 2001 From owner-freebsd-questions@FreeBSD.ORG Tue Jan 2 10:36:40 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from www3.pacific-pages.com (www3.pacific-pages.com [192.41.48.219]) by hub.freebsd.org (Postfix) with ESMTP id A226C37B400 for ; Tue, 2 Jan 2001 10:36:39 -0800 (PST) Received: from d.tracker ([216.191.74.51]) by www3.pacific-pages.com (8.8.5) id LAA20167; Tue, 2 Jan 2001 11:36:20 -0700 (MST) Received: (from david@localhost) by d.tracker (8.9.3/8.9.3) id NAA10138; Tue, 2 Jan 2001 13:36:14 -0500 (EST) (envelope-from david) Date: Tue, 2 Jan 2001 13:34:28 -0500 From: David Banning To: Alfred Perlstein Cc: David Banning , questions@FreeBSD.ORG Subject: Re: too many files open? Message-ID: <20010102133428.A7337@www3.pacific-pages.com> Reply-To: David Banning References: <20010102022430.A1250@www3.pacific-pages.com> <20010101234543.A19572@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010101234543.A19572@fw.wintelcom.net>; from bright@wintelcom.net on Mon, Jan 01, 2001 at 11:45:43PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG That didn't seem to solve my samba problem - but I'll bet it does solve my "too many files open problem". Thanks for your help. On Mon, Jan 01, 2001 at 11:45:43PM -0800, Alfred Perlstein wrote: > * David Banning [010101 23:26] wrote: > > All of a sudden samba stopped working. I notice the > > smbd and nmdb daemons are not staying loaded. > > > > Here is what /var/log/messages says on boot; > > > > n 2 01:25:00 d named[118]: starting. named 8.2.2-P5-NOESW Mon Mar 20 20:43:5 > > 4 GMT 2000 root@monster.cdrom.com:/usr/obj/usr/src/usr.sbin/named > > Jan 2 01:25:00 d named[118]: limit files set to fdlimit (1024) > > Jan 2 01:25:00 d named[119]: Ready to answer queries. > > Jan 2 01:25:01 d /kernel: dc0: DAD complete for fe80:0001::0220:78ff:fe0e:13d6 > > - no duplicates found > > Jan 2 01:25:02 d lpd[144]: restarted > > Jan 2 01:26:11 d syslogd: /dev/console: Too many open files in system: Too many > > open files in system > > Jan 2 01:26:11 d syslogd: /var/run/utmp: Too many open files in system > > Jan 2 01:26:11 d syslogd: /var/run/utmp: Too many open files in system > > Jan 2 01:26:11 d /kernel: file: table is full > > Jan 2 01:26:14 d last message repeated 4 times > > Jan 2 01:27:01 d rshd[300]: auth_pam: Permission denied > > Jan 2 01:27:01 d rshd[300]: PAM authentication failed > > Jan 2 01:29:01 d su: david to root on /dev/ttyp0 > > > > any ideas? Are the too many files linked to the fdlimit? > > Not that I know of. > > > If so should I just raise fdlimit? how? > > sysctl kern.maxfiles > then > sysctl -w kern.maxfiles=N > > where N is some higher number than what was returned by the first > command. > > You might want to recompile your kernel with a higher "maxusers" > setting because that will automagically scale the amount of other > system structures to deal with your high load situation better. > > > Is this why the samba daemons won't get running? > > Probably :) > > -- > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] > "I have the heart of a child; I keep it in a jar on my desk." > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message