From owner-freebsd-questions@FreeBSD.ORG Thu Jan 1 20:15:50 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 62C9B16A4CE for ; Thu, 1 Jan 2004 20:15:50 -0800 (PST) Received: from ms-smtp-01-eri0.southeast.rr.com (ms-smtp-01-lbl.southeast.rr.com [24.25.9.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FBD643D55 for ; Thu, 1 Jan 2004 20:15:43 -0800 (PST) (envelope-from wegster@mindcore.net) Received: from mindcore.net (rdu162-234-100.nc.rr.com [24.162.234.100]) i024FbHG008923; Thu, 1 Jan 2004 23:15:40 -0500 (EST) Message-ID: <3FF4F069.10109@mindcore.net> Date: Thu, 01 Jan 2004 23:15:37 -0500 From: Scott W User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20031129 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gautam Gopalakrishnan References: <200401011800.23184.ecrist@adtechintegrated.com> <20040102001108.GA36815@madras.dyndns.org> In-Reply-To: <20040102001108.GA36815@madras.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: Eric F Crist cc: freebsd-questions@freebsd.org Subject: Re: File system full? 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: Fri, 02 Jan 2004 04:15:50 -0000 Gautam Gopalakrishnan wrote: >On Thu, Jan 01, 2004 at 06:00:23PM -0600, Eric F Crist wrote: > > >>How big is necessary for a /usr partition? Mine keeps filling up and I've >>deleted /usr/obj and /usr/ports/distfiles regularly. >> >>Here's my df -h readout: >> >>$ df -h >>Filesystem Size Used Avail Capacity Mounted on >>/dev/ad0s3a 1008M 92M 835M 10% / >>/dev/ad0s2 1020M 19M 1001M 2% /dos >>/dev/ad0s3g 4.8G 69M 4.3G 2% /home >>/dev/ad0s3e 3.9G 3.9G -260.5M 107% /usr >>/dev/ad0s3f 1008M 27M 900M 3% /var >>/dev/ad0s1 24G 22G 2.9G 88% /nt >>procfs 4.0K 4.0K 0B 100% /proc >>/dev/da0s1 61M 61M 632K 99% /umass >> >> > >I don't think you need such big / and /var partitions... >And you could merge /home and /usr and make home dirs on /usr/home > >Gautam > >_______________________________________________ >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" > > > Advice- leave /var and / the size they are, they're fine if the box stays up as a server and runs any public services- apache logs and even messages log files can fill up /var relatively quickly, and if you add a database or any other service that can potentially log verbosely if it encounters any problems (or if you enable debug logging), /var can grow quickly. If you routinely delete rotated log files, and grow /usr to be 'big enough' (meaning don't merge it into / ), you can probably get away with half of what you're using for / and /var, but I wouldn't go smaller. You can migrate /home if need be as suggested into /usr/home and update your home dirs in /etc/passwd, or you can also move the entire ports tree into your /home partition via symlink, which may sound funny but it a bit more 'traditional' on other *nixes- keeping generally static programs only in the /usr partition, and normally growing/changing contents in seperate disks (/var, /home). The ports collection and size is changing by nature, and sometimes significantly (building X, KDE, OpenOffice, Mozilla and others from source). You can do the following if you'd like: mkdir /home/ports cd /usr/ports tar cpf - . | (cd /home/ports ; tar xvf - ) to copy the ports tree over to it's new 'home' (bad pun), then: diff -R /usr/ports /home/ports for your sanity, but unnescessary unless someone is doing a cvsup or build while you're copying files.. Then go ahead and blow away the original ports tree: rm -fr /usr/ports and symlink to it's new home.... ln -s /home/ports /usr/ports My ports tree is currently taking up ~715M: (Ignore the df output, home/mail/ports are currently on a single RAID volume via NFS), with the /usr filesystem at 2.8G with a fair number of packages installed, but no KDE, GNOME, etc, so it can grow by a fair amount yet... [0] # du -hs /usr/ports 717M /usr/ports [root@freeb] /var/log/ [0] # df -h Filesystem Size Used Avail Capacity Mounted on /dev/ipsd0s1a 1.4G 157M 1.1G 12% / devfs 1.0K 1.0K 0B 100% /dev /dev/ipsd0s1e 965M 22K 888M 0% /tmp /dev/ipsd0s2d 4.0G 2.8G 900M 76% /usr /dev/ipsd0s1d 965M 31M 857M 4% /var procfs 4.0K 4.0K 0B 100% /proc sol:/export/home 182G 63G 117G 35% /usr/home sol:/export/mail 182G 63G 117G 35% /var/spool/mail sol:/export/ports 182G 63G 117G 35% /usr/ports Scott