Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2007 20:13:41 -0400
From:      "Maxim Khitrov" <mkhitrov@gmail.com>
To:        "Gabriel Dragffy" <gabe@dragffy.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Software RAID5
Message-ID:  <26ddd1750709211713o36dfabb5ua9f57747d75dc44@mail.gmail.com>
In-Reply-To: <9F2B2568-9F37-4422-85F4-4740533A0DAD@dragffy.com>
References:  <9F2B2568-9F37-4422-85F4-4740533A0DAD@dragffy.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9/21/07, Gabriel Dragffy <gabe@dragffy.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?26ddd1750709211713o36dfabb5ua9f57747d75dc44>