From owner-freebsd-stable@FreeBSD.ORG Wed Dec 31 00:19:21 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 452DF16A4CE for ; Wed, 31 Dec 2003 00:19:21 -0800 (PST) Received: from access.inet.co.th (access.inet.co.th [203.151.127.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id E193F43D31 for ; Wed, 31 Dec 2003 00:19:18 -0800 (PST) (envelope-from pirat@access.inet.co.th) Received: from firak.thai-aec.org (TruPPPv92-230-118.inet.co.th [203.151.230.118]) by access.inet.co.th (8.12.5/8.12.5) with ESMTP id hBV8J9Zf096875; Wed, 31 Dec 2003 15:19:11 +0700 (ICT) (envelope-from pirat@access.inet.co.th) Received: from firak.thai-aec.org (localhost.thai-aec.org [127.0.0.1]) by firak.thai-aec.org (8.12.10/8.12.10) with ESMTP id hBV8JocG000421; Wed, 31 Dec 2003 15:19:50 +0700 (ICT) (envelope-from pirat@access.inet.co.th) Received: (from pirat@localhost) by firak.thai-aec.org (8.12.10/8.12.10/Submit) id hBV8Jjdp000420; Wed, 31 Dec 2003 15:19:45 +0700 (ICT) (envelope-from pirat@access.inet.co.th) X-Authentication-Warning: firak.thai-aec.org: pirat set sender to pirat@access.inet.co.th using -f Date: Wed, 31 Dec 2003 15:19:45 +0700 From: pirat To: Keith Farrar Message-ID: <20031231081945.GA398@thai-aec.org> Mail-Followup-To: pirat , Keith Farrar , gnb@itga.com.au, stable@FreeBSD.ORG References: <20031210040857.GA960@thai-aec.org> Mime-Version: 1.0 Content-Type: text/plain; charset=tis-620 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD firak.thai-aec.org 4.9-STABLE FreeBSD 4.9-STABLE www-home-page: http://www.thai-aec.org www-FreeBSD-page: http://www.thai.net/makham cc: gnb@itga.com.au cc: stable@FreeBSD.ORG Subject: Re: newfs for insufficient inodes file system X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 08:19:21 -0000 hi sirs, thanks to all who help me in my case. after trying to backup, i face another big problems -- no more free hard disk available. so i move the whole /usr/ports to /var and sym.link to that one instead. this time i have a plenty of inodes free. once again thanks so much for all helps. and also Happy New Year to you all. On Wednesday, 10 December 2003 at 10:45:00 -0800, Keith Farrar wrote: > Date: Wed, 10 Dec 2003 10:45:00 PST > From: Keith Farrar > To: pirat > cc: Keith Farrar > Subject: Re: newfs for insufficient inodes file system > > My /usr partitions were usually overloaded by files left-over from builds > under /usr/obj and /usr/ports. > > Run a "make clean" in /usr/ports then relocate it to another file system > (leave a symlink at /usr/ports pointing to the new location). > > Use "mv /usr/obj /usr/obj.old; rm -rf /usr/obj.old", then recreate > /usr/obj on another file system. type carefully, or you'll need a /usr > backup and a bootable CD to recover, been there - ouch! :). > > > > Date: Tue, 9 Dec 2003 20:08:57 PST > > From: pirat > > To: freebsd-stable@FreeBSD.ORG > > Cc: Gregory Bond > > Subject: newfs for insufficient inodes file system > > > > hi sirs, > > > > four months ago, i faced problem of insufficient inodes for /usr and one of > > solution for that, from Gregory Bond, was that to backup and do a newfs > > for that file system. > > > > today the situation become worst since i can not do any portupgrade even > > /usr/local is a separate file system though. > > > > am not an expert in FreeBSD but a plain user instead. i have backed /usr up > > already and going to do newfs on that. my questions are that > > > > 1) should i drop into a single mode first ? > > 2) what parameter for newfs to pass to (i used sysinstall to do that > > and did make world and friends to upgrade my machine) ? > > > > below are my uname and informations about /usr > > > > [firak] ~ # uname -a > > FreeBSD firak.thai-aec.org 4.9-STABLE FreeBSD 4.9-STABLE #7: Sun Dec 7 10:19:07 > > ICT 2003 firak@firak.thai-aec.org:/var/obj/var/src/sys/Firak i386 > > > > [firak] ~ # newfs -N /dev/ad0s1f > > Warning: Block size and bytes per inode restrict cylinders per group to 89. > > /dev/ad0s1f: 1740800 sectors in 425 cylinders of 1 tracks, 4096 sectors > > 850.0MB in 5 cyl groups (89 c/g, 178.00MB/g, 21504 i/g) > > super-block backups (for fsck -b #) at: > > 32, 364576, 729120, 1093664, 1458208 > > > > any helps and hints are welcome and appreciated. > > > > > > -- with best regards, psr http://www.thai-aec.org http://www.thai.net/makham