linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Robinson <john.robinson@anonymous.org.uk>
To: Carlos Mennens <carloswill@gmail.com>
Cc: Mdadm <linux-raid@vger.kernel.org>
Subject: Re: RAID Configuration For New Home Server
Date: Wed, 02 Jun 2010 16:31:27 +0100	[thread overview]
Message-ID: <4C06794F.8030908@anonymous.org.uk> (raw)
In-Reply-To: <AANLkTilAzPKlOMecKpQLIEPOqAhFDglR5STq3_QP_caW@mail.gmail.com>

On 02/06/2010 14:00, Carlos Mennens wrote:
> On Wed, Jun 2, 2010 at 3:54 AM,  <tron@monkii.net> wrote:
>> There are about as many answers to this as there are people using your
>> setup so let's all agree that there's no "one way" of doing things.
> 
> Thanks for all the suggestions and you guys are right. There will no
> right or wrong answer here but I just want to make sure I am not doing
> anything that will hinder / limit performance in my system. At most my
> system will simply idle and do nothing more than store a few files for
> me so I think RAID5 is going to be my selection for my / file system.
> I have 4 identical drives and need to partition them all the same to
> avoid any inconsistencies across the RAID array. Since Grub doesn't
> support RAID5 for /boot, I will need to make a 4 disk RAID1 for /boot
> & do the same for Swap. Does this look reasonable to you guys?
> 
> Partitioning the 1st disk below:
> 
> /dev/sda1 100 MB - RAID (bootable)
> /dev/sda2     2 GB - RAID
> /dev/sda3 320 GB - RAID
> 
> Do that same partition schema above for all 4 drives and then create my RAID:
> 
> /
> mdadm --create /dev/md0 --level=5 --raid-devices=4 /dev/sda3 /dev/sdb3
> /dev/sdc3 /dev/sdd3
> 
> /boot
> mdadm --create /dev/md1 --level=1 --raid-devices=4 /dev/sda1 /dev/sdb1
> /dev/sdc1 /dev/sdd1
> 
> Swap
> mdadm --create /dev/md2 --level=1 --raid-devices=4 /dev/sda2 /dev/sdb2
> /dev/sdc2 /dev/sdd2
> 
> Would you guys change anything in my partition or 'mdadm' command?

I'd use RAID-10,f2 for the swap, and I'd consider a larger than default 
chunk size for the RAID-5.

If I remember correctly, RAID-10 isn't resizeable at the moment, but for 
swap that doesn't matter in that if you add drives you can turn swap 
off, recreate the swap device with more drives in it, and turn swap on 
again.

I'd also try to avoid using several new drives all from the same batch 
from the same manufacturer, but if that's what I had to use I'd run 
badblocks in write mode on them all first to run them in a little and 
make sure all of them passed without any sectors being reallocated 
(check with smartctl). That may just be paranoia on my part but I did 
have a batch of drives with 2 duff ones in it not long ago. Anyway, if 
I'd done that, I'd create the arrays with --assume-clean because the 
drives would definitely be full of all zeroes.

Once built I'd add an internal write-intent bitmap with a much larger 
than default chunk size (16MB probably) to the big RAID-5 array.

Cheers,

John.

  reply	other threads:[~2010-06-02 15:31 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-01 17:08 RAID Configuration For New Home Server Carlos Mennens
2010-06-01 17:56 ` Mark Knecht
2010-06-01 22:59   ` Ryan Wagoner
2010-06-02  4:03 ` Leslie Rhorer
2010-06-02  6:08 ` Simon Matthews
2010-06-02  6:33   ` Leslie Rhorer
2010-06-02  7:51     ` tron
2010-06-02 14:24       ` Leslie Rhorer
2010-06-02  7:54     ` tron
2010-06-02 13:00       ` Carlos Mennens
2010-06-02 15:31         ` John Robinson [this message]
2010-06-05 17:45           ` Kristleifur Daðason
2010-06-05 17:19         ` Leslie Rhorer
2010-06-05 19:41           ` Mark Knecht
2010-06-05 23:56             ` Leslie Rhorer
2010-06-06  1:04               ` Keld Simonsen
2010-06-06  1:57                 ` Simon Matthews
2010-06-06  2:01                 ` Leslie Rhorer
2010-06-06  2:43               ` Mark Knecht
2010-06-06  5:19                 ` Leslie Rhorer
2010-06-06 11:23                   ` Leslie Rhorer
2010-06-06 14:56                     ` Mark Knecht
2010-06-06 20:47                       ` Leslie Rhorer
2010-06-06 14:50                   ` Mark Knecht
2010-06-06 20:35                     ` Leslie Rhorer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C06794F.8030908@anonymous.org.uk \
    --to=john.robinson@anonymous.org.uk \
    --cc=carloswill@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).