Skip to contentSkip to conversation

Different sized disks for RAID1+0 or RAID10.

DISCUSSION Kelly Byrd 4 participants 7 messages Oct 10, 2007 – Oct 12, 2007 MD RAID

lore
Share & tools
lore

Kelly Byrd

author
#0 lore raw

I've currently got a pair of identical drives in a RAID1 set for my data partition. I'll be getting a pair of bigger drives in a bit, and I was wondering if I could RAID1 those (of course) and then RAID0 the two differently sized mds. Even better, will RAID10 let me do this?

I don't need to grow the current RAID1 into this new beast, I've got a place I can copy the existing data so I can start from scratch.

I imagine the answer is: "sure RAID10 / RAID0 let's you do this, but you don't get the striping performance benefit" for some of the data", which would be ok with me until the smaller drives go bad and I replace them.

#1 lore raw
Quoted 6 lines · Kelly Byrd

I've currently got a pair of identical drives in a RAID1 set for my data partition. I'll be getting a pair of bigger drives in a bit, and I was wondering if I could RAID1 those (of course) and then RAID0 the two differently sized mds. Even better, will RAID10 let me do this?

RAID-10 will let you do this, read past threads of this list for discussion of using the "far" option to gain performance.

Quoted 9 lines

I don't need to grow the current RAID1 into this new beast, I've got a place I can copy the existing data so I can start from scratch.

I imagine the answer is: "sure RAID10 / RAID0 let's you do this, but you don't get the striping performance benefit" for some of the data", which would be ok with me until the smaller drives go bad and I replace them.

Replacing the smaller drives could be an adventure if you plan to go to larger replacement drives. I don't recall the issues involved with using larger partitions and RAID-10, there's another issue for you to research.

Signature · 3 lines
bill davidsen <[email protected]>
 CTO TMR Associates, Inc
 Doing interesting things with small computers since 1979
author
#2 lore raw
Quoted 8 lines · Bill Davidsen
Quoted 6 lines · Kelly Byrd

I've currently got a pair of identical drives in a RAID1 set for my data partition. I'll be getting a pair of bigger drives in a bit, and I was wondering if I could RAID1 those (of course) and then RAID0 the two differently sized mds. Even better, will RAID10 let me do this?

Quoted 6 lines

RAID-10 will let you do this, read past threads of this list for discussion of using the "far" option to gain performance.

Quoted 4 lines

I don't need to grow the current RAID1 into this new beast, I've got a place I can copy the existing data so I can start from scratch.

Doesn't the 'far' option trade write performance to gain read performance? This is a desktop, not at all a "mostly read" type workload.

Quoted 10 lines
Quoted 5 lines

I imagine the answer is: "sure RAID10 / RAID0 let's you do this, but you don't get the striping performance benefit" for some of the data", which would be ok with me until the smaller drives go bad and I replace them.

Replacing the smaller drives could be an adventure if you plan to go to larger replacement drives. I don't recall the issues involved with using larger partitions and RAID-10, there's another issue for you to research.

Will do.

#3 lore raw
Quoted 21 lines · Kelly Byrd
Quoted 9 lines · Bill Davidsen
Quoted 7 lines · Kelly Byrd

I've currently got a pair of identical drives in a RAID1 set for my data partition. I'll be getting a pair of bigger drives in a bit, and I was wondering if I could RAID1 those (of course) and then RAID0 the two differently sized mds. Even better, will RAID10 let me do this?

Quoted 8 lines

RAID-10 will let you do this, read past threads of this list for discussion of using the "far" option to gain performance.

Quoted 5 lines

I don't need to grow the current RAID1 into this new beast, I've got a place I can copy the existing data so I can start from scratch.

Quoted 5 lines

Doesn't the 'far' option trade write performance to gain read performance? This is a desktop, not at all a "mostly read" type workload.

Is your load not read-mostly? The things I want to have happen quickly are things like boot, start application, load a document, saved page, or man page, compile a kernel (that may not be typical), play an mp3 or video, load image(s) in gimp or similar, read mail... all things which feel faster if you favor read performance.

I think of it this way: most of the stuff I write is buffered by the system and I don't have to wait for it (unless it's huge). Most of the large stuff I read, as noted above, is stuff I wait for.

If you look at the times you have to wait for i/o, I bet you will decide a desktop is read-mostly after all.

Quoted 22 lines
Quoted 7 lines
Quoted 7 lines

I imagine the answer is: "sure RAID10 / RAID0 let's you do this, but you don't get the striping performance benefit" for some of the data", which would be ok with me until the smaller drives go bad and I replace them.

Quoted 5 lines

Replacing the smaller drives could be an adventure if you plan to go to larger replacement drives. I don't recall the issues involved with using larger partitions and RAID-10, there's another issue for you to research.

Will do.

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 3 lines
bill davidsen <[email protected]>
 CTO TMR Associates, Inc
 Doing interesting things with small computers since 1979
#4 lore raw
In reply to Kelly Byrd
Quoted 11 lines · Kelly Byrd
Quoted 10 lines · Bill Davidsen
Quoted 6 lines · Kelly Byrd

I've currently got a pair of identical drives in a RAID1 set for my data partition. I'll be getting a pair of bigger drives in a bit, and I was wondering if I could RAID1 those (of course) and then RAID0 the two differently sized mds. Even better, will RAID10 let me do this?

RAID-10 will let you do this, read past threads of this list for discussion of using the "far" option to gain performance.

It will? I don't mean that it will do a raid10 the size of the smaller disk.

Does raid10 do a 4 disk raid the size of the smaller disks followed by 2 disk raid for the remaining space?

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines

I don't need to grow the current RAID1 into this new beast, I've got a place I can copy the existing data so I can start from scratch.

Doesn't the 'far' option trade write performance to gain read performance? This is a desktop, not at all a "mostly read" type workload.

My tests with large files show no degradation in write and nearly double speed on read. But that might differ for you.

MfG
Goswin

#5 lore raw
Quoted 14 lines · Goswin von Brederlow
Quoted 11 lines · Kelly Byrd
Quoted 9 lines · Bill Davidsen
Quoted 7 lines · Kelly Byrd

I've currently got a pair of identical drives in a RAID1 set for my data partition. I'll be getting a pair of bigger drives in a bit, and I was wondering if I could RAID1 those (of course) and then RAID0 the two differently sized mds. Even better, will RAID10 let me do this?

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

RAID-10 will let you do this, read past threads of this list for discussion of using the "far" option to gain performance.

It will? I don't mean that it will do a raid10 the size of the smaller disk.

Unfortunately I did, you have to do some multi-level approach to use all the space, the raid-10 is smart enough to handle an odd number of drives without hints, but not different size drives or partitions. The obvious solution is to make two raid-1 arrays and do raid-0 over them.

If you want to be a bit esoteric in search for a bit of extra read performance, consider this:
hda1 - all of small drive 1
hdb1 - all of small drive 2
hdc1 - first part of large drive, same size as hda1
hdd1 - as hdc1
hdc2 - rest of 1st large drive
hdd2 - rest of 2nd large drive

Now, raid-10 hd[abcd]1 and raid-10 hd[cd]2 (both with far), then use linear with the four drive array first. My thinking is this, unless the filesystem is full, most of the data and head motion will be on the four way raid-10, which should be somewhat faster than just raid-1+0. It will also put the journal and inodes on the four drives which should help.

The growth path is a tad complex when the small drives are upgraded to large, but the new drive can be partitioned like hdc, the first raid-10 can be recovered, and then the 2nd grown.

Quoted 3 lines

Does raid10 do a 4 disk raid the size of the smaller disks followed by 2 disk raid for the remaining space?

Unfortunately not. :-(

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I don't need to grow the current RAID1 into this new beast, I've got a place I can copy the existing data so I can start from scratch.

Quoted 8 lines
Quoted 4 lines

Doesn't the 'far' option trade write performance to gain read performance? This is a desktop, not at all a "mostly read" type workload.

My tests with large files show no degradation in write and nearly double speed on read. But that might differ for you.

Sounds right, unless you write a ton caching covers any slight slowing, which I can measure as ~5% with benchmarks but never see in real life.

Signature · 3 lines
bill davidsen <[email protected]>
 CTO TMR Associates, Inc
 Doing interesting things with small computers since 1979
#6 lore raw
In reply to Kelly Byrd
Quoted 7 lines · On Wednesday October 10, [email protected] wrote:

I've currently got a pair of identical drives in a RAID1 set for my data partition. I'll be getting a pair of bigger drives in a bit, and I was wondering if I could RAID1 those (of course) and then RAID0 the two differently sized mds. Even better, will RAID10 let me do this?

Quoted 8 lines

I don't need to grow the current RAID1 into this new beast, I've got a place I can copy the existing data so I can start from scratch.

I imagine the answer is: "sure RAID10 / RAID0 let's you do this, but you don't get the striping performance benefit" for some of the data", which would be ok with me until the smaller drives go bad and I replace them.

RAID0 happily handles devices of different sizes and uses all the available space.
RAID10 will only use as much space off each device as the smallest device allows.

So you should have 2 RAID1 arrays of different sizes, and use RAID0 to combine them.
Don't use RAID10.

NeilBrown