From owner-freebsd-questions@FreeBSD.ORG Wed Jan 7 02:48:59 2004 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 5E5ED16A4CE for ; Wed, 7 Jan 2004 02:48:59 -0800 (PST) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B63243D45 for ; Wed, 7 Jan 2004 02:48:57 -0800 (PST) (envelope-from parv_fm@mailsent.net) Received: from moo.holy.cow ([69.160.69.113]) by mta10.adelphia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040107104856.SSSH14686.mta10.adelphia.net@moo.holy.cow>; Wed, 7 Jan 2004 05:48:56 -0500 Received: by moo.holy.cow (Postfix, from userid 1001) id 70CDBB4E6; Wed, 7 Jan 2004 05:53:32 -0500 (EST) Date: Wed, 7 Jan 2004 05:53:32 -0500 From: parv To: Dino Vliet Message-ID: <20040107105332.GB55857@moo.holy.cow> Mail-Followup-To: Dino Vliet , freebsd-questions@freebsd.org References: <200401070526.KAA22696@manage.24online> <20040107093835.37200.qmail@web40110.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040107093835.37200.qmail@web40110.mail.yahoo.com> cc: freebsd-questions@freebsd.org Subject: Re: Size of /var worries me 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: Wed, 07 Jan 2004 10:48:59 -0000 in message <20040107093835.37200.qmail@web40110.mail.yahoo.com>, wrote Dino Vliet thusly... > > I've installed freebsd 4.9 and am currently busy with installing third > party apps through the ports collection. What worries me however is > the size of my /var directory. Take a look at my disk geometry > (below) > > I also had to get rid of a pkg.db file in the /var/db/pkg directory > because it took a lot of space. Unless that file os part of the core pkg* facilities, you have shot your foot. > q2) How can I get rid of files I don't need (like > XFree86.0.log..) > Other suggestions are welcome... See syslogd(8), syslog(3), syslog.conf(5) & newsyslog(8). > Filesystem Size Used Avail Capacity Mounted on > > /dev/ad0s2a 126M 35M 81M 30% / > > /dev/ad0s2f 98M 10.0K 91M 0% /tmp > > /dev/ad0s2g 6.6G 1.5G 4.5G 25% /usr > > /dev/ad0s2e 74M 67M 978K 99% /var How do you feel about merging /tmp w/ /var and mounting /tmp on swap partition, that you did not list, as memory file system? Mind that core '/usr', here, occupies ~263 MB, minus perl, sendmail, and fortran part of the base compiler suite. You could divide your current '/usr' to be ~400MB slice for only core components, move '/var' to rest of the '/usr' slice, say '/usr2'. That will left you w/... swap (/tmp on swap) / ~100 MB /usr ~400 MB /usr2 (/var symlinked to /usr2/var) ...but that is just one way to organize. Your pattern of usage will/should control if /tmp can be mounted on swap, and if to keep /var as a directory not a slice. Some would say just to keep separate / and combine everything else, resulting in three slices: swap, /, /usr. Also, newfs'ing procedure might itself constrain the space allocated to a slice. == xx == Here is my current layout... Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s2a 128990 82322 36350 69% / /dev/ad0s2e 516062 453968 20810 96% /usr /dev/ad0s2g 3106182 2569086 288602 90% /usr2 /dev/ad0s3f 984654 859182 46700 95% /usr3 /dev/ad0s3e 1753902 466558 1147032 29% /cdrw mfs:15 372846 6 343014 0% /tmp Device 1K-blocks Used Avail Capacity Type /dev/ad0s2b 377304 51740 325564 14% Interleaved ...only thing that i desire(d) is/was to give / much less than 128MB, but couldn't (during the space slicing). That and to combine /usr2 & /usr3 now. But default inode space allocation of 8%/slice will kill me anyway. I really have to remember about the newfs options next time. Here is the holding pattern of each slice... / - usual stuff /usr - large ports -- erlang, gcc, & java -- related files besides core components as listed above /usr2 - 'home', 'local' & 'X11R6', and some ports related files /usr3 - 'sup' tree for cvsup & ports tree. /cdrw - keeps 'src' tree & used for world building; works as port building space now that space on /usr3 is diminishing /tmp - mounted on swap; rarely gets heavy use. - Parv --