From owner-freebsd-questions@FreeBSD.ORG Thu Jul 21 13:03:17 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 1259F16A420 for ; Thu, 21 Jul 2005 13:03:17 +0000 (GMT) (envelope-from stijn@pcwin002.win.tue.nl) Received: from kweetal.tue.nl (kweetal.tue.nl [131.155.3.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67C1943D5E for ; Thu, 21 Jul 2005 13:03:13 +0000 (GMT) (envelope-from stijn@pcwin002.win.tue.nl) Received: from localhost (localhost [127.0.0.1]) by kweetal.tue.nl (Postfix) with ESMTP id DE6C413B6D2; Thu, 21 Jul 2005 15:03:11 +0200 (CEST) Received: from kweetal.tue.nl ([127.0.0.1]) by localhost (kweetal.tue.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10995-06; Thu, 21 Jul 2005 15:03:11 +0200 (CEST) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by kweetal.tue.nl (Postfix) with ESMTP id 1FE3213B667; Thu, 21 Jul 2005 15:03:11 +0200 (CEST) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.13.4/8.13.4/Submit) id j6LD3AFk058153; Thu, 21 Jul 2005 15:03:10 +0200 (CEST) (envelope-from stijn) Date: Thu, 21 Jul 2005 15:03:10 +0200 From: Stijn Hoop To: Norberto Meijome Message-ID: <20050721130310.GY72402@pcwin002.win.tue.nl> Mail-Followup-To: Stijn Hoop , Norberto Meijome , FreeBSD Questions References: <42DF4A96.1080305@meijome.net> <20050721124049.GX72402@pcwin002.win.tue.nl> <42DF9B87.2000708@meijome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42DF9B87.2000708@meijome.net> User-Agent: Mutt/1.4.2.1i X-Bright-Idea: Let's abolish HTML mail! X-Virus-Scanned: amavisd-new at tue.nl Cc: FreeBSD Questions Subject: Re: Bootstrapping Raid 5 w/GEOM 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: Thu, 21 Jul 2005 13:03:17 -0000 On Thu, Jul 21, 2005 at 10:56:39PM +1000, Norberto Meijome wrote: > Stijn Hoop wrote: > > On Thu, Jul 21, 2005 at 05:11:18PM +1000, Norberto Meijome wrote: > > > I want to setup software Raid 5 , and I want it to affect ALL > > > partitions, including / (so if any one of the drives fails, it will > > > still boot up properly). I am planning on using GEOM, but open to > > > suggestions. > > > > I don't think it's possible -- the loader doesn't know about the mirror > > even in a mirrored / setup; it justs treats one of the disks of the mirror > > as 'the boot disk'. It's not until the kernel is loaded that gvinum RAID-5 > > can do something. > > Would the same be true (not possible to boot) for a RAID 1 + 0 with GEOM? Hmm, tricky. I guess if you can get the disk layout to mirror that of a non-RAID one, the loader would be able to cope. Striping would be impossible (at least not unless you can guarantee that the whole of the kernel + / and /boot directory entries are available on one stripe, and even then I'm not sure). > > So, in your case, the loader would read random RAID-5 data instead of > > a kernel and refuse to boot. > > > > IE, it's not possible until someone writes a RAID-5 capable loader. > > right - so that's why I couldnt find any reference to this anywhere :) Probably. > > I would advise you to either use gmirror for booting, or define a few > > gvinum mirror plexes (it is possible to boot from a mirrored gvinum > > setup although it's tricky to get right). > > I guess I could create a boot slice in 2 of the drives, mirror that with > gmirror and use that to boot. Then RAID-5 the rest of the drives (minus > the size of the boot partition in the other 2 drives of course). Yes. While on the subject, you could use 2 drives to mirror the boot disk and have swap, and then use the same amount of space on the other two drives to mirror /usr and /var. Then use RAID-5 for your data partitions. This way you'll have speed & reliability. Be aware that RAID-5 is not ideal for many-write situations (most home directories), although certainly tolerable with modern drives. --Stijn -- I wish there was a knob on the TV to turn up the intelligence. There's a knob called `brightness', but it doesn't work." -- Gallagher