LinuxQuestions.org
Review your favorite Linux distribution.
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 02-15-2007, 10:49 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
RAID1 = Is It Working?


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.

Here is what I see:

1 - /dev/scd0
2 - /dev/sda1
3 - /dev/sdb1

Now /dev/scd0 has no partition info but I would assume this is my RAID 1 array.

The /dev/sda1 and /dev/sdb1 both have mount points but obviously sbd1 is not formatted.

What do you guys think? Is RAID1 working on my box or is there any way to test or verify if the info I have provided is not sufficient?
 
Old 02-15-2007, 02:12 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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:

http://linux-ata.org/faq-sata-raid.html
 
Old 02-15-2007, 02:27 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
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.
 
Old 02-15-2007, 04:05 PM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
So basically from everyones perspective, everyone agrees that RAID is not working then on my system, right...?
 
Old 02-15-2007, 04:33 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Basically you have no RAID unless you use software RAID. Kernel RAID for Linux-only box, dmraid for dual-boot.
 
Old 02-15-2007, 04:42 PM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by Emerson
Basically you have no RAID unless you use software RAID. Kernel RAID for Linux-only box, dmraid for dual-boot.
What about the expensive 3ware 9560SE RAID SATA controller?
 
Old 02-15-2007, 05:35 PM   #7
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 735

Rep: Reputation: 76
Hi.

This may have some information of interest:
http://linux-ata.org/faq-sata-raid.html
as well as:
http://www.debian-administration.org/articles/238
which is on sarge.

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
 
Old 02-15-2007, 05:43 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by Carlwill
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.
 
Old 02-15-2007, 06:28 PM   #9
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
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.
 
  


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
Raid1 and Networking SheHateMe Linux - Newbie 5 11-02-2006 11:34 PM
RAID1 remove vexedsa Linux - General 2 05-25-2005 02:16 AM
Raid1 setup spitfire999 Linux - Newbie 1 03-27-2005 10:50 PM
read_ahead in raid1 jdt Linux - General 2 11-20-2003 10:18 AM
RedHat9 HW RAID1 R_Hellvis Linux - Hardware 0 07-29-2003 03:14 PM

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

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