LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-28-2022, 02:26 PM   #1
debianlearner
Member
 
Registered: May 2019
Posts: 80
Blog Entries: 1

Rep: Reputation: Disabled
Hardware RAID controller


I am thinking of setting up a RAID 1 array of two SATA HDDs using a hardware RAID controller on a desktop
computer running Debian 11.

I would like some advice regarding a suitable controller that costs no more than about 100 pounds.

I understand that the lsi/Broadcom Megaraid RAID software can be set up for Debian :-

https://www.mybluelinux.com/debian-linu ... araid-sas/
 
Old 01-28-2022, 02:55 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
I'm sure some may question the need for it seeing how there are software choices. Also filesystem raid exists.

Anyway, not sure you can get a real hardware raid card for that much. Maybe used from some enterprise pull could be better.
 
Old 01-28-2022, 04:11 PM   #3
obobskivich
Member
 
Registered: Jun 2020
Posts: 596

Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Anyway, not sure you can get a real hardware raid card for that much. Maybe used from some enterprise pull could be better.
If you're okay with the used market, Dell PERC cards are a common suggestion - they're generally LSI based and many of them have appeared on the Ubuntu Server QVL, and will be recognized by megaraidcli. Do your homework on the specific card though, and seriously consider what you're attemping to do with this system - softRAID (e.g. mdadm) may be worth thinking about as well, or (imho the better way) figure out how to architect this as a non-RAID system (and for clarity: I'm guessing what I'm including in 'non-RAID' jefro would include as 'filesystem RAID').
 
1 members found this post helpful.
Old 01-29-2022, 11:44 AM   #4
debianlearner
Member
 
Registered: May 2019
Posts: 80

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thanks very much for all your replies.

I should have made the situation clearer.

I actually require to have the OS on a RAID 1 array of two SATA HDDs and the user data on another RAID 1
array of another two SATA HDDs.

I realise I can set up the user data RAID 1 using software RAID (e.g. mdadm).

The problem is with setting up the OS RAID 1. Often this is possible using the motherboard RAID.

Unfortunately, the AMD Ryzen motherboard I am using appears not to have motherboard RAID support for Linux.

So the only option for the OS RAID appears to be the use of a Hardware RAID controller. I realise such a controller
can cost hundreds of pounds, but I was hoping to find such a controller for about 100 pounds.

I am not interested in RAID arrays other than RAID 1.
 
Old 01-29-2022, 02:58 PM   #5
obobskivich
Member
 
Registered: Jun 2020
Posts: 596

Rep: Reputation: Disabled
Quote:
Originally Posted by debianlearner View Post
Thanks very much for all your replies.

I should have made the situation clearer.

I actually require to have the OS on a RAID 1 array of two SATA HDDs and the user data on another RAID 1
array of another two SATA HDDs.
You've defined a classic XY problem here - you have a solution in search of a requirement, instead of defining a root problem and looking for solutions to it. You've also duplicated threads: https://www.linuxquestions.org/quest...up-4175706965/


Quote:
I realise I can set up the user data RAID 1 using software RAID (e.g. mdadm).

The problem is with setting up the OS RAID 1. Often this is possible using the motherboard RAID.

Unfortunately, the AMD Ryzen motherboard I am using appears not to have motherboard RAID support for Linux.
You were told in your other thread that both are possible in Debian.

Further, most 'motherboard RAID' is itself a form of software/fake RAID (like mdadm), just a Windows-exclusive driver in most cases. Again, see your previous thread for an answer to this using software RAID in Debian. You could also probably do this with lvm, and distros that use Anaconda may help you do this graphically.

Quote:
So the only option for the OS RAID appears to be the use of a Hardware RAID controller.
Again, you were told this is not the case in your previous thread on the same topic.

Quote:
I realise such a controller can cost hundreds of pounds, but I was hoping to find such a controller for about 100 pounds.
I gave you some broad suggestions in this thread. It will require you to do some legwork to make use of that information (and part of the 'reason why' for that is that availability of used/second-hard hardware is never guranteed) - if you require to be spoonfed or need a canned solution, you may want to consider finding a system integrator or vendor who can offer a pre-built system to your specs (it's also hard to suggest you anything specific when you've provided no specifics).

Quote:
I am not interested in RAID arrays other than RAID 1.
Again, this is likely an XY problem, but for what its worth nobody has suggested anything else in either thread, however the exact nomenclature will vary depending on what software implementation you use. Nothing about this goal 'requires' a hardware controller (generally hardware controllers are useful if you need nested RAID, parity RAID, or a great big number of ports, but for a simple 1:1 mirror that can be done in software as well - without knowing anything about your actual root problem/requirements it is impossible to assess what would be a 'good' or 'bad' solution for your goals).
 
Old 01-30-2022, 06:03 AM   #6
debianlearner
Member
 
Registered: May 2019
Posts: 80

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Many thanks for your replies.

My RAID questions are connected with the following situation :-

A desktop PC is being built for me by a company.

The CPU is an AMD Ryzen 5 5600x and the operating system is Debian 11.

My RAID requirement is to have the OS on a pair of HDDs in RAID 1 configuration and
the user data on another pair of HDDs in another RAID 1 configuration.

I do not know which AMD motherboard is being used.

The company told me that the AMD motherboard does not support RAID for Linux. The only
AMD motherboards which support RAID for Linux are those for very expensive Threadripper
CPUs.

The company suggested I needed a Hardware RAID controller card. They could not find any
cheap cards which support Linux, so they proposed looking for business class cards costing
in excess of 500 pounds.

Hence my quest for cheaper cards, although it may be the company would not want to use
such a card if it is second hand.
 
Old 01-30-2022, 07:01 AM   #7
Arnulf
Member
 
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 274

Rep: Reputation: 89
Quote:
Originally Posted by debianlearner View Post
My RAID requirement is to have the OS on a pair of HDDs in RAID 1 configuration and
the user data on another pair of HDDs in another RAID 1 configuration.
Think about following:
  • RAID1 for user data is OK.
  • RAID1 for user data doesn't substitute backups!
  • RAID1 with two HDDs for operating system dramatically decreases system performance.
  • RAID1 for operating system is useless in most cases because operating system can be reinstalled in case of hardware defect. A backup of config files is enough.
  • Install operating system on a single SSD to take advantage of performance of your new Ryzen based system.
  • Installing operating system to a single drive make its installation much easier.
  • Software RAID for operating system is very delicate to handle because this implements a "chicken or the egg causality dilemma".
 
2 members found this post helpful.
Old 01-30-2022, 11:26 AM   #8
obobskivich
Member
 
Registered: Jun 2020
Posts: 596

Rep: Reputation: Disabled
Quote:
Originally Posted by debianlearner View Post
Many thanks for your replies.

My RAID questions are connected with the following situation :-

A desktop PC is being built for me by a company.

The CPU is an AMD Ryzen 5 5600x and the operating system is Debian 11.

My RAID requirement is to have the OS on a pair of HDDs in RAID 1 configuration and
the user data on another pair of HDDs in another RAID 1 configuration.

I do not know which AMD motherboard is being used.

The company told me that the AMD motherboard does not support RAID for Linux. The only
AMD motherboards which support RAID for Linux are those for very expensive Threadripper
CPUs.

The company suggested I needed a Hardware RAID controller card. They could not find any
cheap cards which support Linux, so they proposed looking for business class cards costing
in excess of 500 pounds.

Hence my quest for cheaper cards, although it may be the company would not want to use
such a card if it is second hand.
You still have not gotten past the XY problem - you're still stating a solution (RAID1) as a requirement, and looking for ways to implement it cheap'n'dirty, which will mean buying used/spare enterprise hardware (e.g. an old Dell PERC) - there's nothing wrong with that (as in, the device probably will work fine) but performance will be sub-optimal and you're creating a lot of other potential headaches for this system (startup time will be not awesome, system performance may be not awesome, you'll give up PCIe lanes that could otherwise be used by GPU, you'll probably end up creating a legacy dependency to ensure driver support for the older card, additional cabling/mess inside the tower, the cost of four disk drives to not use half of them, etc).

What problem are you attempting to solve with RAID1? Arnulf is on the right track here - I would probably scrap this entire idea, go with an SSD for the system (depending on capacity needs and budget you could just put the whole thing on a large SSD to be completely honest), and get an external hard drive for regular backups. But again - we're guessing at your problem because you're wedded to a solution without giving us any context.

Quote:
Originally Posted by Arnulf View Post
Think about following:
  • RAID1 for user data is OK.
  • RAID1 for user data doesn't substitute backups!
  • RAID1 with two HDDs for operating system dramatically decreases system performance.
  • RAID1 for operating system is useless in most cases because operating system can be reinstalled in case of hardware defect. A backup of config files is enough.
  • Install operating system on a single SSD to take advantage of performance of your new Ryzen based system.
  • Installing operating system to a single drive make its installation much easier.
  • Software RAID for operating system is very delicate to handle because this implements a "chicken or the egg causality dilemma".
Agree on every point.
 
Old 01-31-2022, 03:01 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
You should consider the used raid card from a pulled server.
Take a look at zfs, btrfs and lvm raids.

Last edited by jefro; 01-31-2022 at 03:02 PM.
 
Old 02-03-2022, 07:42 PM   #10
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by debianlearner View Post
Thanks very much for all your replies.

I should have made the situation clearer.

I actually require to have the OS on a RAID 1 array of two SATA HDDs and the user data on another RAID 1
array of another two SATA HDDs.

I realise I can set up the user data RAID 1 using software RAID (e.g. mdadm).

The problem is with setting up the OS RAID 1. Often this is possible using the motherboard RAID.

Unfortunately, the AMD Ryzen motherboard I am using appears not to have motherboard RAID support for Linux.

So the only option for the OS RAID appears to be the use of a Hardware RAID controller. I realise such a controller
can cost hundreds of pounds, but I was hoping to find such a controller for about 100 pounds.

I am not interested in RAID arrays other than RAID 1.
You can easily use raid 1 with mdadm for the OS and boot that way. It does not actually activate the raid until part way through the boot, but with raid 1 (mirrored) it does not need to for booting from one of those devices. Simply do the install on one drive that will be used for booting, then after the OS is installed use that device as one of the mirrored pair in the raid 1 array. If the current boot device fails then switch the boot in bios to the second of the pair and you will still be able to move forward.

The only thing you will need to be cautious about is that you use the raw device, such as /dev/sda and /dev/sdb for the array with the partitions defined on the array and not on the drive, and that you do not just mirror the partitions. This will ensure the boot loader will be able to look at the array and not at an individual partition.
 
  


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] Moving a non-RAID disk to a server with Hardware RAID Controller hgoles Linux - Server 10 03-08-2020 12:20 PM
Can't install RAID created with Windows (and raid controller) on laptop running Linux with no hardware controller rollim01 Linux - Hardware 7 01-14-2020 07:47 PM
Hardware raid vs software raid, is hardware raid portable? MikeyCarter Linux - Hardware 2 01-06-2016 03:30 PM
[SOLVED] How to check a hardware level raid with PERC H710 raid controller? abelosorio Debian 1 01-13-2015 09:57 AM
RAID controller card override onboard RAID controller? Dr. Psy Linux - Enterprise 1 05-30-2005 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:50 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