Linux RAID subsystem development
 help / color / mirror / Atom feed
From: David Brown <david.brown@hesbynett.no>
To: Adam Talbot <ajtalbot1@gmail.com>, linux-raid@vger.kernel.org
Subject: Re: RAID partitions, or RAID disks and partition array?
Date: Sun, 24 Aug 2014 12:53:06 +0200	[thread overview]
Message-ID: <53F9C412.3010909@hesbynett.no> (raw)
In-Reply-To: <CAH_2Ghc3tW4rD_iS7LO47ot6xURJq-RTrEyd3Z-swN2vA=4pPA@mail.gmail.com>

On 22/08/14 18:52, Adam Talbot wrote:
> I hope this is an easy one.  I have two drives I would like to mirror
> as my boot drive.
> 1) Should I mirror the drives, then partition the RAID device (md0)?
> 2) Should I partition the the drives then RAID the partitions?
>
> What is the best practice, and why?
>
> Thanks
> Adam


Mirroring drives is conceptually simpler, and can be faster if you are 
trying to make a system optimised for speed for particular loads. 
Mirroring partitions involves a few more steps, but gives more flexibility.

My usual setup for two drives on a workstation is to use partitions.  I 
have a small partition on each drive, with a raid1 mirror (with 0.9 
metadata), that is used for /boot.  Any bootloader will be happy with 
that.  Then there is a partition on each drive for swap space - the 
kernel will use both as a sort of raid0, so there is no need for raiding 
here (high availability servers would put swap on raid, but it is not 
really needed for "normal" PC's).  The rest of the drives are a single 
large partition, which I then put together with raid10,far2 - or 
possibly a btrfs filesystem with btrfs raid1.

But as has been said, there are no hard and fast rules.  mdadm gives you 
a level of flexibility well beyond anything you get with hardware raid, 
but the cost of that is that you have to make some decisions!  If you 
have a specific setup in mind, you can always ask here for opinions.

David



      parent reply	other threads:[~2014-08-24 10:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-22 16:52 RAID partitions, or RAID disks and partition array? Adam Talbot
2014-08-22 17:28 ` Piergiorgio Sartor
2014-08-22 17:30   ` Adam Talbot
2014-08-22 18:34 ` Chris Murphy
2014-08-23  1:18 ` NeilBrown
2014-08-23 22:20   ` Adam Talbot
2014-08-24 10:53 ` David Brown [this message]

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=53F9C412.3010909@hesbynett.no \
    --to=david.brown@hesbynett.no \
    --cc=ajtalbot1@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