Linux RAID subsystem development
 help / color / mirror / Atom feed
* AW: Raid 1 vs 5 ?
@ 2004-05-07  5:10 Martin Bene
  2004-05-07  5:52 ` John Lange
  2004-06-09 13:27 ` Mauricio
  0 siblings, 2 replies; 12+ messages in thread
From: Martin Bene @ 2004-05-07  5:10 UTC (permalink / raw)
  To: LinuxRaid

> Which one is the better choice and what are the trade offs? Or is
> another configuration more sensible? I'm under the impression that you
> shouldn't (can't?) boot from RAID 5.

Depends very much on what you're going to do with the system - I've
found a high performnce impact of raid5 for database applicaions with
frequent updates (where you end up with lots of small writes scattered
allover the partition). If write speed isn't too important, the space
savings may well make raid5 more attractive.

True, you can't boot directly off raid5, but you can have a /boot on
raid1 and the rest of the system on raid5. Also, you definitely should
consider putting swap on raid1: otherwise a failure of the swap disk
will bring you system down.(don't put swap on raid5 - same performance
issue as mentioned above.)

A minimal configuration for 4 disks optimized for max space could be
like this, though you might want seperate raid5s for /, /usr, /var.  

Each disk partitioned alike:
	1	30MB 
	2	1/2 size_of_swap_
	5	rest_of_disk

Now you can create mds on the disk:
	md0	raid1 sda1 sda2 sda3 sda4
	md1	raid1 sda1 sdb1
	md2	raid1 sdc1 sdd1
	md3	raid5 sda5 sdb5 sdc5 sdd5

	md0	/boot
	md1	swap
	md2	swap
	md3	/

You've got a small 4-disk raid1 as /boot, so each of our disks can be
bootable.
Swap is on 2 2-disk raid1 partitions so your system can survive failure
of a disk used for swap.
Main data storage is on 4-disk raid5.

Bye, Martin

^ permalink raw reply	[flat|nested] 12+ messages in thread
* AW: Raid 1 vs 5 ?
@ 2004-05-07  6:14 Martin Bene
  0 siblings, 0 replies; 12+ messages in thread
From: Martin Bene @ 2004-05-07  6:14 UTC (permalink / raw)
  To: John Lange; +Cc: LinuxRaid

> First, why do we skip sdx3 and sdx4 on each disk and go 
> directly to sdx5
> for partition numbers?

Just habit I guess; usually I've got a couple of data partitions, so I
will have to have some extended partitions; to make things more similar
between systems I tend to put "special" stuff (boot, swap, possibly a
rescue system) on primary partitions and have / as the first extended
partition.

> Second, I'm very confused by the way you divided up the raid sets....
> I'm thinking you erred? I'm such a newb its possible I really don't
> understand whats going on so hopefully you can verify.
> 
> md0: did you mean sda1 sdb1 sdc1 sdd1 ?
> md1: did you mean sda2 sdb2 ?
> md2: did you mean sdc2 sdd2 ?
> md3: did you mean sda5 sdb5 sdc5 sdd5 ?

ARGH - never write to mailinglists without adequate amounts of coffee.
You're of course right, I messed up.

> And last, is it possible to build the system from the 
> beginning on RAID?

Yes :-)

> I'm using slackware. I see there is a section in the how-to for
> converting a red hat system after the fact but obviously it would be
> easier if I didn't have to do that.

Problem is, it depends on the installer / installation process. I know
that redhat installer supports setup of raid, I've often st up gentoo
using raid but it's too long since I installed slackware so I don't know
if/how to go about installing right onto raid.

Bye, Martin


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-06-09 23:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-07  5:10 AW: Raid 1 vs 5 ? Martin Bene
2004-05-07  5:52 ` John Lange
2004-05-07 14:29   ` Maarten van den Berg
2004-05-07 15:15     ` John Lange
2004-06-09 13:27 ` Mauricio
2004-06-09 14:57   ` Robin Bowes
2004-06-09 15:50     ` Robin Bowes
2004-06-09 15:59     ` Guy
2004-06-09 16:19       ` Robin Bowes
2004-06-09 22:55       ` Neil Brown
2004-06-09 23:39         ` Guy
  -- strict thread matches above, loose matches on Subject: below --
2004-05-07  6:14 Martin Bene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox