LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-31-2013, 10:52 AM   #1
unseengundam
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Rep: Reputation: 0
Question Questions on Linux Raid (mdadm) and how well it works?


Hey,

I have been thinking about creating a RAID using Linux Fake raid or mdadm tool instead of just keeping on adding single HD to my system. However, I have couple question on mdadm raid:

1.) If my Motherboard / SATA controller fails, can I transfer/recover my RAID and data if I transfer to new computer or MB? I have had this scenarios before motherboard failed but luckily since they were just single drives I could just plug into a new motherboard.

2.) How long does it take to Grow/Add to a Raid 5 array? Ex: I add 2 TB drive to a 4x2TB array. I have heard Raid 5 especially takes a long time.

3.) Will the data on Raid 5 be access able during rebuild/recover/adding task on mdadm?

4.) Finally, I keep on hearing Raid 10 is better option than Raid 5, any opinion on this as related to Linux fake software raid?

Thanks!
 
Old 01-31-2013, 01:44 PM   #2
gtrawoger
Member
 
Registered: Dec 2005
Location: TO, Ontario, Canada
Distribution: Ubuntu 14.04, CentOS 6.5
Posts: 37

Rep: Reputation: 17
Hi unseengundam,

I can tell you want I used my RAID for, but there are much wiser people on this forum that may correct me on a couple points.

First of all, I would recommend mdadm over fakeraid, since fakeraid will lock you to the chipset you were using. So if your motherboard needs to be replaced, you will most likely have to replace it with the same one.

mdadm on the other hand can be put on any motherboard, and then exchanged. I actually just did that when I went to replace an ASUS board with a Supermicro one (finally had the money to put something proper in place).

I am not sure why you would need RAID 10 over RAID 5, since all it would improve is the write speeds, but you lose 1/2 space of all drives, while in RAID 5 you only lose 1 drive's space.

So if you are after performance+reliability, then RAID 10. If you are after space+reliability, then RAID 5 (or 6).

http://en.wikipedia.org/wiki/RAID

I have a 10TB (8x 2TB HDD - 7 Active & 1 Hot Spare) RAID 6 setup. RAID 6 can survive 2 disk failures vs. the 1 disk failure of RAID 5.

I also have a 4TB RAID 5, and a 2TB RAID 5, all working just fine.

A complete resync will take around 300 minutes (if you add a new drive) if you adjust the default parameters. With default it will take 5x as long.

http://www.cyberciti.biz/tips/linux-...ild-speed.html

And yes, the array is accessible during rebuild/recover/add, but it will be slower. The only times it will not be accessible if the array cannot be started (too many drives failed/disconnected).

I would look up some test results as to what to make your stripe size and chunk size (filesystem). These can make the biggest difference in performance from what I could see.

I have 4K stripes and 4K chunks, get almost 1GB read and ~600MB write speeds on my array. I am sure that could be tweaked further, but I didn't have the time.

Hope that helped.
 
1 members found this post helpful.
Old 01-31-2013, 05:55 PM   #3
unseengundam
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Hey gtrawoger,

That actually really good info there! My goal was to have more space and some reliability. For example, I could do Raid 0 or JBOD setup but increase risk of failure over single drive. This primary why I was considering Raid 5.

The motherboard swap you accomplished is just type of task I wanted get info on! I noticed motherboard can fail and so do Raid controller cards. Being able to recover the data with having get exact same motherboard, controller/chipset is a great plus for mdadm.

Thanks for the info!
 
Old 02-01-2013, 10:46 AM   #4
gtrawoger
Member
 
Registered: Dec 2005
Location: TO, Ontario, Canada
Distribution: Ubuntu 14.04, CentOS 6.5
Posts: 37

Rep: Reputation: 17
You're welcome.

Don't be afraid to play around with the RAID array, like what happens when you unplug a drive, what happens when you change the stripe size, etc.
Just don't use the whole drive, maybe just the first 50GB or so, so that the re-sync and build won't take forever.
That way you learn what to do when things go wrong. Also, setup the email notification that mdadm has build in. It's a life saver when you don't check the array every day.

Once you played with it for some time, then set it up and put your data on it.
 
Old 02-01-2013, 03:47 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,972

Rep: Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138Reputation: 3138
" Being able to recover the data with having get exact same motherboard, controller/chipset is a great plus for mdadm."

I think that is worded wrong as typo. It is without having to have the exact same board.

A long time ago, software based raid didn't really perform any better than a single drive. Of course mirror helped for data safety. For speed, the only way to improve it was with hardware raid. I wish some web site had some current data on whether or not any speed improvement was to be had with software raid on today's systems.

As above, I'd stay away from any fake raid solution even if it seems to work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Software RAID on Linux with mdadm LXer Syndicated Linux News 0 03-31-2011 01:30 AM
LXer: Software RAID on Linux with mdadm LXer Syndicated Linux News 0 03-30-2011 01:50 PM
unable to load MDADM module BUT mdadm works?!?!?! alirezan1 Linux - Software 2 09-08-2008 07:58 PM
Linux Software RAID 1+0 (using mdadm) barrulus Fedora 2 02-07-2006 09:21 AM
Linux raid with mdadm eyt Linux - Newbie 6 02-07-2006 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:08 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration