* Different sized disks for RAID1+0 or RAID10. @ 2007-10-10 13:12 Kelly Byrd 2007-10-11 15:38 ` Bill Davidsen 2007-10-11 22:25 ` Neil Brown 0 siblings, 2 replies; 7+ messages in thread From: Kelly Byrd @ 2007-10-10 13:12 UTC (permalink / raw) To: linux-raid 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Different sized disks for RAID1+0 or RAID10. 2007-10-10 13:12 Different sized disks for RAID1+0 or RAID10 Kelly Byrd @ 2007-10-11 15:38 ` Bill Davidsen 2007-10-11 16:15 ` Kelly Byrd 2007-10-11 22:25 ` Neil Brown 1 sibling, 1 reply; 7+ messages in thread From: Bill Davidsen @ 2007-10-11 15:38 UTC (permalink / raw) To: kbyrd-linuxraid; +Cc: linux-raid Kelly Byrd 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? > RAID-10 will let you do this, read past threads of this list for discussion of using the "far" option to gain performance. > 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. -- bill davidsen <davidsen@tmr.com> CTO TMR Associates, Inc Doing interesting things with small computers since 1979 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Different sized disks for RAID1+0 or RAID10. 2007-10-11 15:38 ` Bill Davidsen @ 2007-10-11 16:15 ` Kelly Byrd 2007-10-11 17:00 ` Bill Davidsen 2007-10-11 17:29 ` Goswin von Brederlow 0 siblings, 2 replies; 7+ messages in thread From: Kelly Byrd @ 2007-10-11 16:15 UTC (permalink / raw) To: linux-raid On Thu, 11 Oct 2007 11:38:04 -0400, Bill Davidsen <davidsen@tmr.com> wrote: > Kelly Byrd 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? >> > > RAID-10 will let you do this, read past threads of this list for > discussion of using the "far" option to gain performance. >> 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. >> 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Different sized disks for RAID1+0 or RAID10. 2007-10-11 16:15 ` Kelly Byrd @ 2007-10-11 17:00 ` Bill Davidsen 2007-10-11 17:29 ` Goswin von Brederlow 1 sibling, 0 replies; 7+ messages in thread From: Bill Davidsen @ 2007-10-11 17:00 UTC (permalink / raw) To: kbyrd-linuxraid; +Cc: linux-raid Kelly Byrd wrote: > > On Thu, 11 Oct 2007 11:38:04 -0400, Bill Davidsen <davidsen@tmr.com> wrote: > >> Kelly Byrd 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? >>> >>> >> RAID-10 will let you do this, read past threads of this list for >> discussion of using the "far" option to gain performance. >> >>> 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. > > 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. > >>> 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. > > > - > To unsubscribe from this list: send the line "unsubscribe linux-raid" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- bill davidsen <davidsen@tmr.com> CTO TMR Associates, Inc Doing interesting things with small computers since 1979 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Different sized disks for RAID1+0 or RAID10. 2007-10-11 16:15 ` Kelly Byrd 2007-10-11 17:00 ` Bill Davidsen @ 2007-10-11 17:29 ` Goswin von Brederlow 2007-10-12 16:08 ` Bill Davidsen 1 sibling, 1 reply; 7+ messages in thread From: Goswin von Brederlow @ 2007-10-11 17:29 UTC (permalink / raw) To: kbyrd-linuxraid; +Cc: linux-raid Kelly Byrd <kbyrd-linuxraid@memcpy.com> writes: > On Thu, 11 Oct 2007 11:38:04 -0400, Bill Davidsen <davidsen@tmr.com> wrote: >> Kelly Byrd 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? >>> >> >> 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? >>> 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Different sized disks for RAID1+0 or RAID10. 2007-10-11 17:29 ` Goswin von Brederlow @ 2007-10-12 16:08 ` Bill Davidsen 0 siblings, 0 replies; 7+ messages in thread From: Bill Davidsen @ 2007-10-12 16:08 UTC (permalink / raw) To: Goswin von Brederlow; +Cc: kbyrd-linuxraid, linux-raid Goswin von Brederlow wrote: > Kelly Byrd <kbyrd-linuxraid@memcpy.com> writes: > > >> On Thu, 11 Oct 2007 11:38:04 -0400, Bill Davidsen <davidsen@tmr.com> wrote: >> >>> Kelly Byrd 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? >>>> >>>> >>> 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. > Does raid10 do a 4 disk raid the size of the smaller disks followed by > 2 disk raid for the remaining space? > Unfortunately not. :-( > >>>> 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. > 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. -- bill davidsen <davidsen@tmr.com> CTO TMR Associates, Inc Doing interesting things with small computers since 1979 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Different sized disks for RAID1+0 or RAID10. 2007-10-10 13:12 Different sized disks for RAID1+0 or RAID10 Kelly Byrd 2007-10-11 15:38 ` Bill Davidsen @ 2007-10-11 22:25 ` Neil Brown 1 sibling, 0 replies; 7+ messages in thread From: Neil Brown @ 2007-10-11 22:25 UTC (permalink / raw) To: kbyrd-linuxraid; +Cc: linux-raid On Wednesday October 10, kbyrd-linuxraid@memcpy.com 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? > > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-10-12 16:08 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-10-10 13:12 Different sized disks for RAID1+0 or RAID10 Kelly Byrd 2007-10-11 15:38 ` Bill Davidsen 2007-10-11 16:15 ` Kelly Byrd 2007-10-11 17:00 ` Bill Davidsen 2007-10-11 17:29 ` Goswin von Brederlow 2007-10-12 16:08 ` Bill Davidsen 2007-10-11 22:25 ` Neil Brown
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).