From owner-freebsd-questions@FreeBSD.ORG Tue Jan 25 02:50:43 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48F1416A4CE for ; Tue, 25 Jan 2005 02:50:43 +0000 (GMT) Received: from b.smtp.taconic.net (outgoing-1.taconic.net [205.231.144.133]) by mx1.FreeBSD.org (Postfix) with SMTP id 5EE8E43D54 for ; Tue, 25 Jan 2005 02:50:42 +0000 (GMT) (envelope-from daemon@taconic.net) Received: (qmail 10348 invoked by uid 0); 25 Jan 2005 02:50:40 -0000 Received: from unknown (HELO fbsdlt1.ichabodcrane.org) (216.227.56.82) by 0 with SMTP; 25 Jan 2005 02:50:40 -0000 Date: Mon, 24 Jan 2005 21:49:09 -0500 From: Jonathan Franks To: "Michael C. Shultz" Message-Id: <20050124214909.65599df2.daemon@taconic.net> In-Reply-To: <200501201559.23150.reso3w83@verizon.net> References: <200501202338.j0KNc3tM007836@mail-core.space2u.com> <200501201559.23150.reso3w83@verizon.net> X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: jd@dagerot.com cc: freebsd-questions@freebsd.org Subject: Re: "Too many open files" (Critical, have only one session left) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 02:50:43 -0000 On Thu, 20 Jan 2005 15:59:22 -0800 "Michael C. Shultz" wrote: > On Thursday 20 January 2005 03:38 pm, Joachim Dagerot wrote: > > >> I have got it before and took appropriate steps using the ideas > > >> and tips from you guys. Now I have it again: > > >> > > >> Current situation on my head-less system is that I do have a > > >> single SSH session up. Unfortunately it's not authenticated as > > >> ROOT but as an ordinary user. > > >> > > >> When I try a "ls" I get : > > >> > > >> $ ls > > >> ls: .: Too many open files in system > > >> > > >> Trying a su gives: > > >> $ su > > >> /usr/libexec/ld-elf.so.1: Cannot open "/usr/lib/libutil.so.3" > > >> > > >> > > >> I have a fairly huge RAID-5 system thatdislikes a power shutdown > > >> so I rather want to reboot the machine manually. I certainly need > > >> som help here and also more help on how to avoid this problem in > > >> the future. > > > > > >I don't remember a previous message from you, but here is a link you > > >may find helpful: > > > > > >http://www.onlamp.com/pub/a/bsd/2002/09/26/Big_Scary_Daemons.html?pa > > >ge=1 > > > > Good tip, unforunately I can't even run fstab: > > $ su > > /usr/libexec/ld-elf.so.1: Cannot open "/usr/lib/libutil.so.3" > > You mean you can't run fstat right? > > > > I seam to be stucked. Is there a way to do a su for a specific > > program. I can't run 'su' but when I try shutdwon: > > > > $ shutdown -r now > > -bash: /sbin/shutdown: Permission denied > > > > Looks like it's possible to run shutdown if I only hade the right > > permission... > > > Can you run ps -aux and maybe kill some processes? I know it's unlikely > but its the only thing I can think of, hopefully someone who knows more > will offer better suggestions. > > -Mike > This may not be as helpful as it seems to me, but what about sudo? Assuming it's installed and you're an sudoer, of course, but if so something like: $ sudo shutdown -r now might work... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >