Date: Sun, 16 Oct 2005 14:50:50 +0200 From: John Oxley <john@yoafrica.com> To: Teo De Las Heras <teoheras@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Recommended partitioning Message-ID: <20051016125050.GA30303@yoafrica.com> In-Reply-To: <d9d7f5a0510151401t194ba5f5w9687d40c333b22b9@mail.gmail.com> References: <d9d7f5a0510151401t194ba5f5w9687d40c333b22b9@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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;s<s=0l>x]s"[1+l<dd*l=d*-l;+ds<rl=2**l:+ds=d*rd*+4<-d15>>] s>[q]s-[d77/3*2-s;47l"x-P1+d78>`]s`0[d23/.5-3*s:0l`xr10P1+d24>$]ds$x'|dc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051016125050.GA30303>