From owner-freebsd-questions@FreeBSD.ORG Sat Sep 22 00:13:44 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 084AF16A419 for ; Sat, 22 Sep 2007 00:13:44 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 9700813C459 for ; Sat, 22 Sep 2007 00:13:43 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so852933nfb for ; Fri, 21 Sep 2007 17:13:42 -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=Cg4mArgbdcKhi3DBbi1kWvfY6qx2R/iSRyjHXhY1UzA=; b=RZFx8o702h5joYe+a8f2JuZfnyfWpZSi6GR3Gr4hm5RroZ/gfEY8CA/cdEDFDOkBympEb1IJV5TrISz3xp9mQ90/LckpB0PHtqvZrTbayA6OgPI0JZtZFWBEZAUS245B/QDzMjJCBCf+9p30EiPgc13hXvNiMrgtZxOMbNEiAlU= 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=Y6TnQE0I4zxwkwkVrbDcmo7kleZQouE8RodYCyHbwS3WRijKBPLsgKA7YesfjQIYywKvro/FwuQTjwBbCJxX3bBfRiTkH8H8kRf4JlQSkSEKEnbn6FCt2Hj3VSwEPviPGDlATuKIteOh4RZVfs8cI1IQ3cVxOpX8HUWdrzbz7x4= Received: by 10.78.177.3 with SMTP id z3mr2484707hue.1190420021720; Fri, 21 Sep 2007 17:13:41 -0700 (PDT) Received: by 10.78.160.16 with HTTP; Fri, 21 Sep 2007 17:13:41 -0700 (PDT) Message-ID: <26ddd1750709211713o36dfabb5ua9f57747d75dc44@mail.gmail.com> Date: Fri, 21 Sep 2007 20:13:41 -0400 From: "Maxim Khitrov" To: "Gabriel Dragffy" In-Reply-To: <9F2B2568-9F37-4422-85F4-4740533A0DAD@dragffy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9F2B2568-9F37-4422-85F4-4740533A0DAD@dragffy.com> Cc: freebsd-questions@freebsd.org Subject: Re: Software RAID5 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: Sat, 22 Sep 2007 00:13:44 -0000 On 9/21/07, Gabriel Dragffy wrote: > Hi all > > Hoping to get some help setting up software RAID5. Guides on the > internet seem to be few and far between, and official documentation > is a little too technical. Basically I have 3 x 500GB hard drives > which I'd like to have in a raid5 configuration, using software, root > partition on their too would be a bonus. I'd be grateful for assistance. > > Best regards > > Gabriel >From what I know, you're not going to be able to boot from them. However, a simple solution to that is to get a 64+ MB USB flash drive and put the kernel on that. Just use fdisk and bsdlabel to write the boot blocks. As long as the kernel has all needed drivers and you specify which root device to use (either via kernel configuration or /etc/fstab), that should allow you to put everything else on the RAID array. This is how I currently do full-disk encryption on my laptop using GELI. Kernel is outside, everything else is encrypted, same idea for RAID. I haven't ever done software RAID in FreeBSD, so can't help you with the practical aspects of it. But I will say that technical or not, man pages are still the best way to learn about these things. From what I can see, RAID 5 is done through vinum, and GEOM offers RAID 3. Someone else here may be able to tell you which one is better to use. It's also worth noting that with software, the performance of RAID 5 is not going to be very good. I generally advise against software RAID 5. If you want good performance and reliability using software RAID, the best bet is RAID 10, but there the utilization is 50%. I think that if you can afford another 500GB drive and performance is important to you, a software RAID 10 using GEOM will perform much better. It is also easier to recover, and you can lose two drives (not any two, but still) without completely losing all the data.