LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-03-2011, 01:11 PM   #1
Saed.Abdu
LQ Newbie
 
Registered: Jun 2011
Posts: 14

Rep: Reputation: Disabled
Is overlapping two RAID5 arrays on same drives a bad idea ??


Hi every one,
i`m continuing to learn from the experiences that this community holds , as my friend tommylovell suggested this partitioning theme for me, which perfectly suits my current situation , i`d like you to shed some light on this,
is placing two RAID5 arrays on disk as shown below Is advisable? Will this create performance problems?
Code:
sda-500G sdb-1T sdc-1T sdd-1T
250M<-RAID1->250M unused unused

470G<-RAID5->470G<-RAID5->470G<-RAID5->470G first RAID5 array

500G<-RAID5->500G<-RAID5->500G second RAID5 array
regards

Last edited by Saed.Abdu; 06-03-2011 at 01:13 PM.
 
Old 06-03-2011, 05:45 PM   #2
Rearden888
LQ Newbie
 
Registered: Jan 2010
Location: Anacortes, WA
Distribution: Arch, Debian, CentOS
Posts: 27
Blog Entries: 2

Rep: Reputation: 3
Are you creating partitions on each physical disk and then raid-ing between the disks?

Typically RAID5 would be used to protect against data loss due to the physical failure of the disks, so you'd create one RAID 5 array with all your disks and then partition as needed on top of that. Basically, the RAID array would expose a single logical drive to the OS to be partitioned.

However, I'm not sure from your post where or how you're splitting up the disks and coming up with the RAID arrays, since the number of 470G/500G partitions don't seem to add up to me. If you are trying to use one of the partitions as a member drive in two arrays, I'm pretty sure that wouldn't work.
 
Old 06-04-2011, 07:39 AM   #3
Saed.Abdu
LQ Newbie
 
Registered: Jun 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Hi Rearden888,

Quote:
Are you creating partitions on each physical disk and then raid-ing between the disks?
its not exactly partitions its RAID Software Partitions ,

"Software RAID devices are so-called "block" devices, like ordinary disks or disk partitions.
A RAID device is "built" from a number of other block devices - for example, a RAID-1 could be built from two ordinary disks, or from two disk partitions (on separate disks) - "

i`m supposing you didn`t read a little bit more about RAID implementations on linux .
here you go if u weren`t http://www.tldp.org/HOWTO/html_singl...D-HOWTO/#ss1.3
look at Devices Section ..

Quote:
Typically RAID5 would be used to protect against data loss due to the physical failure of the disks, so you'd create one RAID 5 array with all your disks and then partition as needed on top of that. Basically, the RAID array would expose a single logical drive to the OS to be partitioned.
yes you`re right , and that's the main concept of RAID-ING in general , but as i told you its much more flexible on linux ,that it can allow you to add partitions from different disks to create multiple arrays,
(even from the same disk ---> as it meant for testing purpose only) that's why i fell in love with the Os

Quote:
However, I'm not sure from your post where or how you're splitting up the disks and coming up with the RAID arrays, since the number of 470G/500G partitions don't seem to add up to me.
this approach can be achieved as the smallest size will be elected which is (470GB) , i gave it a shot before i post.

Quote:
If you are trying to use one of the partitions as a member drive in two arrays, I'm pretty sure that wouldn't work.
i`m not trying to join one partitions as a member in 2 arrays, u must be misunderstood me ,
this is what i`m trying to go for ...
Code:
           sda-(500GB)        sdb-(1TB)       sdc-(1TB)         sdd-(1TB) 
              (250MB)----------(250MB) ---------unused------------unused------->(/dev/md0) RAID1
              (470GB)----------(470GB) ---------(500GB)-----------(500GB)------>(/dev/md1) RAID5
               unused----------(500GB) ---------(500GB)-----------(500GB)------>(/dev/md2) RAID5
so i`m still in need for info regarding the performance issue on this partitioning theme ..

any help guys ..??

Last edited by Saed.Abdu; 06-04-2011 at 07:45 AM.
 
Old 06-04-2011, 08:15 AM   #4
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Hi

I guess it would work, but I don't think it will be very fast. In my experience, using Raid 5 with 3 disks is slow, in particular when writing. It's also very complicated. When a disk fail, it's a lot easier to mess up the rebuild. And I bet if someone else tried to fix it after a disk failure, they would be very confused.

If you want performance, I think it would be a lot faster to replace the sda with a 1TB drive, and use Raid 1+0 on the 4 disks instead. It would also be a lot simpler, both for the OS, and for maintaining it later.
 
Old 06-04-2011, 12:52 PM   #5
Rearden888
LQ Newbie
 
Registered: Jan 2010
Location: Anacortes, WA
Distribution: Arch, Debian, CentOS
Posts: 27
Blog Entries: 2

Rep: Reputation: 3
I see, I haven't used RAID software partitions before, just regular full RAID on single disks. I'd have to agree with Guttorm, though regarding the performance issues. As I'm sure you know, RAID modes that are supposed to increase performance do so by doing simultaneous writes on different physical devices in order to reduce the total time to complete the file operation. I suppose given the general way you have the partitions set up, you might some performance increase if the different RAID arrays aren't being accessed simultaneously, but if you have heavy access simultaneously to /dev/md1 and /dev/md2, you're not getting any performance increase since the three physical assets (sdb, sdc, sdd) are all still being accessed. I suppose the programmer could have coded some clever tricks into the drivers to try and optimize these scenarios, but I doubt it would have a significant impact.
 
Old 06-04-2011, 02:33 PM   #6
Saed.Abdu
LQ Newbie
 
Registered: Jun 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
And I bet if someone else tried to fix it after a disk failure, they would be very confused.
i have to agree with you on this .
Quote:
If you want performance... It would also be a lot simpler, both for the OS, and for maintaining it later.
i`m not looking for performance only i`m trying to make it survive a hardware failure as well ,
while maintaining a big-resilient LV /backup to keep backed up data in..

thanks Guttorm i appreciate it
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RAID5 with 2 equal drives and 1 different Tester10 Linux - Hardware 5 12-17-2010 08:08 PM
Raid5 setup uses only 2 out of 3 drives divot_powell Linux - Server 1 09-29-2009 07:07 AM
HW raid5 or raid1, & how many drives? hank43 Linux - Enterprise 2 12-18-2006 09:03 AM
Good idea/bad idea: interface colors introuble General 5 10-30-2006 01:33 PM
Adding additional drives/resizing drives in RAID arrays kheldar Linux - Hardware 1 10-19-2005 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration