Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So I installed a S-ATA RAID PCI controller I purchased from Newegg.com for like $20 bucks which seems pretty simple. I installed it and then threw on my 2 Seagate 500GB S-ATA drives.
When my machine POST's, I can see the Silicon Image RAID controller on the card being loaded and I was able to create a RAID1 array on the controller using the 2 identical drives I added but then when it came to installing the OS, I was not sure if it saw or detected the drives separately or how that worked. Regardless, I processed through the Debian install and installed on what appeared to be /dev/sda1. I would assume that I should not install on /dev/sdb1 since that was the mirrored drive or at least going to be the mirrored drive.
Now when I am in my Gnome OS and everything is working, I am not sure if Linux just thinks I have 2 drives as primary and slave or if it knows that I have a RAID hardware controller in place.
When I check my disk manager in Gnome, I can see that my /dev/sdb1 is not formatted nor is there or appear to be any data written to the disk. I think this is bad as RAID 1 is not being applied for whatever reason.
A RAID controller should be doing hardware RAID meaning that by the time the OS (software) saw the disk it should appear to be a single disk. If you're seeing two disks in the OS it sounds as if it doesn't recognize your RAID setup.
I've not done it on SATA but in a recent thread Quakeboy2 put a link indicating there may be issues with SATA RAID controllers for Linux:
Here's the bad news: If it's a $20 card, then it's not a hardware RAID. I believe that paragraph 8 in http://linux-ata.org/faq-sata-raid.html will answer the OPs question of how to add an ATARAID to a running system. Unfortunately, it's not clear how to install to an ATARAID RAID1 boot disk set from those instructions, and I've never tried it, so I can't help.
I just installed software RAID1 for both /boot and / (the latter with LVM) on a few servers, but with RHEL4/U4 manual partition with Disk Druid. When I get a chance, I plan to try the same thing with Debian. I tested the RHEL install by removing the drives one at a time (Sun Fire servers, drives in carriers making replacement easy and quick), and it worked very well.
Keep us posted on how it goes for you ... cheers, makyo
What about the expensive 3ware 9560SE RAID SATA controller?
3ware does hardware RAID controllers, they work well in Linux. Your controller is simply a HDD controller which can instruct Windows to load software RAID.
Back to the original question: "So I installed a S-ATA RAID PCI controller I purchased from Newegg.com for like $20 bucks which seems pretty simple. I installed it and then threw on my 2 Seagate 500GB S-ATA drives."
If you don't plan to have any Microsoft OS on this, then I can help you along with installing software RAID. I did this recently with a Debian RAID0 installation, so RAID1 should be similar.
During the install process, where you partition the drives, set the main partition to Software Raid, not Linux. I believe it's type "FD". After that, then select "Configure RAID" or something like that, and select RAID1. I've only created a software RAID0, so I'm not quite sure what you'll get after this point. Hopefully it will install grub on both drives, etc.
There is one thing, though. I believe that the Debian installer will install "mdadm", and not "dmraid". I don't know how this will affect your situation. If you run into problems, I'll continue to monitor this thread. I've still got an old Promise FasTrak and a couple of drives that I could put into my spare machine if you need specific help during the process. True, it's not SATA, but the process should be the same.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.