From owner-freebsd-questions@FreeBSD.ORG Wed Sep 26 20:33:15 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0CC816A469 for ; Wed, 26 Sep 2007 20:33:14 +0000 (UTC) (envelope-from florenzi@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.freebsd.org (Postfix) with ESMTP id A7EC813C48A for ; Wed, 26 Sep 2007 20:33:14 +0000 (UTC) (envelope-from florenzi@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so4570446pyb for ; Wed, 26 Sep 2007 13:33:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ilI2Hkr9tMRA0fXOSFgyT+FQZZgGJoa5WzyV1huyluw=; b=DMr2S3x2WfkoI4TeFO+N/R6ud2N0JUAVWbQzh9vuLrJ+oCxVATWEjvcCUldd6dPbH6IjXPnBoT00QlY8QYQbhItNjbKq0DdpxNhEkATevM7FmD53Uav55464KM1Ho5a9ILOyNbVBQawtufDzHcxM78n6FMut/QzLIoqRljLT0lI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OJjSS6odZ/B3t5lM7mHEOI5bbesNl4DbsijIK0+S5t7dy5K/rf8Eoyy6eVv08ldkygZBYTadjquxSr4pmqyQvxxTM1yjEuinpOBuxIprJyXKw/17JStq8Jg0KiVFqSQL3o8XWRcfR95l6V5FyfcmJpyX4V120luTEx3tignRpAE= Received: by 10.64.153.4 with SMTP id a4mr2845173qbe.1190838792228; Wed, 26 Sep 2007 13:33:12 -0700 (PDT) Received: by 10.64.181.6 with HTTP; Wed, 26 Sep 2007 13:33:12 -0700 (PDT) Message-ID: <3a386af20709261333r53afd674me9c2c58a6e2a3563@mail.gmail.com> Date: Wed, 26 Sep 2007 22:33:12 +0200 From: "Federico Lorenzi" To: "Aliya Harbouri" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: User Questions Subject: Re: Any advice for a Partition Plan for a multi-jailed Server? 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: Wed, 26 Sep 2007 20:33:15 -0000 On 9/26/07, Aliya Harbouri wrote: > Hi! > > I'm setting up a jailed server. I'm hoping to eventually use > sysutils/ezjail to deaden the pain a bit! I gave that a shot once, but I found manual jail configuration to be better. > > First step, have to get the disks partitioned! They're unpacked, at least ;-) > > I've read lots of comments like, > > "You should never setup your FreeBSD systems the way Linux or other > *nix's set them up." You shouldn't ^-^ > So, I'm looking for some Wisdom on how best to partition for the usage > I'm planning. > > The server's goal state is 4 jails, plus the non-jailed host: > > jail-1: DNS services {Bind9 & RBLDNSD} > jail-2: WebServer {Apache 22x + PHP5 + Perl 588 + MySQL 50x} > jail-3: mail server {Exim 468 + Spamassassin + ClamAV, etc.} > jail-4: an analysis/monitoring toolkit {Snort, Nagios, Nessus, etc.} > > I've got two identical 250 GB SATA2 drives available for this box. > > Although I have not yet grokked the whole "What's in a jail's dirs?" > issue, my initial stab at 'slices' is ~: > > drive 2: > / 2GB A bit big, but fine > /boot 2GB Nope, FreeBSD doesn't need / want a /boot > /tmp 2GB Fine > /swap 16GB Machine has 8GB RAM, so swap = 2X RAM A bit of overkill, but what the hell, you have the space > /usr 50GB What exactly do you plan on running on the host? > /jails 178GB Fine... > drive 2: > /var 100GB Huh? Refer to /usr above. > /data 100GB MailStore, DBs, www source files, etc. Fine again... > /home 20GB Fine again.. > > I'll betcha some of that's silly or wasteful. You'd be correct there :) I'm sure you could fit everything on one disk... Jails are really small, it's just your data that takes up space. If you could get everything in 250GB (which i think you could easily) RAID 1 might be a nice thing to have HTH Federico