LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-12-2017, 04:19 PM   #1
Raevyn
Member
 
Registered: Feb 2008
Location: Arizona
Distribution: Kubuntu 18.04
Posts: 107

Rep: Reputation: 0
RAID 1 and Linux


Hello

So I am wanting to setup a RAID 1 (2 disks only) system, and I am wondering a couple of things. First, would it be fine to use my onboard controller? This is a data storage only setup as the OS is run from an SSD. I have heard onboard can be resource intensive but then I would need a PCI card I was hoping to avoid. Second, will my RAID 1 array move to another computer when the time for upgrade arrives or will the array be locked to my system?
 
Old 11-12-2017, 04:36 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Don't use the on-borad if you can avoid it. If Linux can see the two disks, where is the PCI requirement coming from ?.

Start here, and page down to see the comments on "fake raid".
 
Old 11-12-2017, 04:44 PM   #3
Raevyn
Member
 
Registered: Feb 2008
Location: Arizona
Distribution: Kubuntu 18.04
Posts: 107

Original Poster
Rep: Reputation: 0
Ugh okay yea then I will look at getting a raid card. any ideas of good ones? I see some on newegg in the 20-50 range that go into pci.
 
Old 11-12-2017, 04:47 PM   #4
Raevyn
Member
 
Registered: Feb 2008
Location: Arizona
Distribution: Kubuntu 18.04
Posts: 107

Original Poster
Rep: Reputation: 0
I was thinking this one:
https://www.newegg.com/Product/Produ...-072-_-Product
 
Old 11-12-2017, 04:51 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I use software RAID (mdadm or LVM or btrfs) - others will have more relevant hardware recommendations.
 
Old 11-12-2017, 04:56 PM   #6
Raevyn
Member
 
Registered: Feb 2008
Location: Arizona
Distribution: Kubuntu 18.04
Posts: 107

Original Poster
Rep: Reputation: 0
Ah okay. So you just let linux handle the raid itself? I thought about that but wouldnt that be more of a performance hit?
 
Old 11-16-2017, 12:47 AM   #7
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
If you've never used RAID before, likely you won't notice any performance hit from Linux software (MD) RAID. I've been using it on my primary PC too long to remember, probably at least a decade.
 
Old 11-16-2017, 07:08 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I definitely recommend implementing RAID et al using hardware that is soup-to-nuts expressly designed for that purpose.

Yes, you will pay more for it. But your data is worth it.
 
Old 11-16-2017, 10:00 AM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
The performance hit with software RAID is only for arrays that have to do a lot of calculations, namely parity RAID (5, 6, 50, 60). With a simple mirror there's very very little computational overhead, so the performance difference between software and hardware RAID will be essentially zero. A big powerful hardware RAID card is 100% a waste of money for a mirrored array IMO.
 
Old 11-16-2017, 10:02 AM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Raevyn View Post
Ugh okay yea then I will look at getting a raid card. any ideas of good ones? I see some on newegg in the 20-50 range that go into pci.
Those aren't RAID cards. Those are glorified PCIe to SATA bridges, you'll still be doing software RAID with one of those. Even the ones that claim RAID are just fakeRAID. Essentially they have their own firmware that you can configure to tell the BIOS an array is attached, but your CPU still does all of the work. From a performance standpoint they're no better than software RAID, from a reliability standpoint they're worse than both software and hardware RAID. They really are the worst of both worlds.

An actual hardware RAID card will be $300+ new. See:
https://www.newegg.com/Product/Produ...-111-_-Product

Last edited by suicidaleggroll; 11-16-2017 at 10:06 AM.
 
Old 11-16-2017, 01:50 PM   #11
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I prefer to "throw hardware at it." For example, a box that provides me with several hot-swappable disk-drive assemblies populated with high-quality drives. Redundant power-supplies with built-in line filtering. And, everything done in hardware.

"If I'm gonna do RAID, I'm gonna do it right."
 
Old 11-16-2017, 03:33 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Enterprise still uses full hardware raid a lot. It isn't cheap either.

I think the OP has a lower end fake raid controller that even if it did work in linux won't provide a common way to replicate to different hardware or kernels.

Fake raid is almost every raid controller below $150 as an example.

I would use the drives in a standard port or in standard settings. Then consider using any of a number of ways to maintain. Software raid or software raid on LVM is very common. ZFS and BtRFS may be considered too.
 
Old 11-23-2017, 05:19 AM   #13
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
I vote for LVM mirroring. It do less resyncing.
Redundant disks without MDRAID
 
Old 11-23-2017, 05:29 AM   #14
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,631

Rep: Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696
I have used both hardware raid and raid in software. I found portability irrelevant, you always end up needing backups anyway so leverage those backups.
I also found that the difference between software and hardware raid was only significant on underpowered servers. If you are using a commodity home desktop machine you may see a difference, but if you have a server class machine it will be insignificant.
The difference between rotational and SSD drives will be FAR more significant.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux raid fails to add a hard drive to the raid on boot up evansmb Linux - Software 3 09-24-2014 09:31 AM
LXer: Tutorial: Linux RAID Smackdown: Crush RAID 5 with RAID 10 LXer Syndicated Linux News 0 08-14-2008 11:20 PM
LXer: Linux RAID Smackdown: Crush RAID 5 with RAID 10 LXer Syndicated Linux News 0 02-26-2008 09:40 PM
does linux support the sata raid and ide raid in k7n2 delta ilsr? spyghost Linux - Hardware 10 04-16-2004 05:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:25 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
Open Source Consulting | Domain Registration