From owner-freebsd-questions@FreeBSD.ORG Sun Oct 16 15:28:52 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 A3BFF16A41F for ; Sun, 16 Oct 2005 15:28:52 +0000 (GMT) (envelope-from teoheras@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4EEB43D48 for ; Sun, 16 Oct 2005 15:28:51 +0000 (GMT) (envelope-from teoheras@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so721430nzo for ; Sun, 16 Oct 2005 08:28:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=r/upZ9yNXJbjpZV0lxcgGUaNS2x3eGHnBv0YoIC6ZO4efv4YplUsey5RmSbZrhWot+fplb+KJQ6GOV328dVshHk5qIQyxWbzvDZHGVvNkcpw0ajjtz3Qxzkc6JT+PTybo8vSB/UbGi+fv3dMpOO/MjzumRXgpiTqUpzM4Wu1sNA= Received: by 10.36.127.5 with SMTP id z5mr1720868nzc; Sun, 16 Oct 2005 08:28:51 -0700 (PDT) Received: by 10.36.146.18 with HTTP; Sun, 16 Oct 2005 08:28:50 -0700 (PDT) Message-ID: Date: Sun, 16 Oct 2005 11:28:50 -0400 From: Teo De Las Heras To: John Oxley In-Reply-To: <20051016125050.GA30303@yoafrica.com> MIME-Version: 1.0 References: <20051016125050.GA30303@yoafrica.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Recommended partitioning X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2005 15:28:52 -0000 Based on recommendations here is how I'm going to partition the two FreeBSD servers that I'm installing in my lab. mail, print, web, and file server Part Size / 200M /usr 15G - Ports live in usr /tmp 256M (swap) 2G - paging file /var 10G - print spool, db files, other log files?? /var/mail 10G - for all mail files and easy backup /www 5G - Web server - I'm going to have a lot of content /home 50G - for all user files *The rest of the space I'll leave unused in case I need to grow a partition Firewall/Router Part Size / 200M /tmp 256M /usr 7G swap 512M /var 2G On 10/16/05, John Oxley wrote: > > On Sat, Oct 15, 2005 at 05:01:01PM -0400, Teo De Las Heras wrote: > > Part Size > > / 10G - for both the / and /usr files > > (swap) 2G > > /var 10G - Web server, print spool, other log files?? > > /var/mail 10G - for all mail files and easy backup > > /home 50G - for all user files > > /home/teo 40G - For my files and easy backup > > *The rest of the space I'll leave unused in case I need to grow a > partition > > I'm new to FreeBSD/*Nix so all criticism is welcome. > > Teo > > Keep / small, around 200MB, and split user from this. You'll understand > why as soon as something nasty happens while you're writing to /usr and > the machine falls over. You can still boot because / is mainly static. > > put 10-20 gigs in usr. When you build ports, they use space in /usr (by > default. You can change this) which is why I say 20 gigs. > > 256M in /tmp is fine > > /var you want to be quite big if you're running a production server or a > mysql box, because db files and logs and mail etc. go to /var by > default. I find it easier to make /var big than create symlinks or > modify where things go. > > Splitting /var and /var/mail is a good idea because if /var fills up > with logs then you'll still receive mail. For the same reason its a > good idea to make /var/db/mysql separate as well. The problem you run > into there is say you've put 10 gigs for each and you have 3 gigs of > logs, 5 gigs of mail and need 12 gigs for your database, then you loose > the flexibility. > > I put my web pages in /usr/local/www/virtual/ so that comes under /usr. > > You may want to put 90 gigs straight into /home and then setup quota's > so your users don't use up your disk space. > > My 2 cents. > > -John > > -- > John Oxley > Systems Administrator > Yo!Africa > E-Mail: john at yoafrica.com > Tel: +263 4 858404 > echo '9k[l:l;sx]s"[1+l>] > s>[q]s-[d77/3*2-s;47l"x-P1+d78>`]s`0[d23/.5-3*s:0l`xr10P1+d24>$]ds$x'|dc > >