LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-12-2005, 01:15 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,411

Rep: Reputation: 55
raid card is not mirroring


Hi,

I am a raid newbie.

I installed a raid card and configured my array as raid 1, I install linux to sda1 and it boots ok, but if I unplug sda1 it cannot boot off sdb1. Why didnt my raid card automatically mirror everything on sda1 over to sdb1?

What am I missing?

Thanks in advance.
 
Old 09-12-2005, 04:01 PM   #2
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
What raid card/motherboard raid are you useing?
Most likely its software raid.Most raid devices nowadays are not true hardware raid.
You must use mdadm and set up software raid useing sda sdb.
You will then do cat /proc/mdstat and see something like this;

md0 : active raid1 sdb1[1] sda1[0]
128384 blocks [2/2] [UU]

to create you would use something like this;

mdadm -Cv /dev/md0 -l1 -n2 -c128 /dev/sd{a,b}1

this would creat(-C) in verbose mode(v) /dev/md0 with raid level(-l) 1 with two disks(-n) with a chunk level (-c) of 128kb on sda1 and sdb1.

:~$ sudo mdadm --detail /dev/md0
/dev/md0:
Version : 00.90.02
Creation Time : Wed Mar 2 06:30:44 2005
Raid Level : raid1
Array Size : 128384 (125.40 MiB 131.47 MB)
Device Size : 128384 (125.40 MiB 131.47 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Mon Sep 12 16:00:40 2005
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 35f43e63:179c140e:567ee505:6a74b35a
Events : 0.3238

Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1

thats a detailed output of the md0 raid.

I have 2 raid 5 arrays as well in which I use 3drives and one spare.How I would set that up is;

mdadm -Cv /dev/md0 -l5 -n3 -s1 -c128 /dev/sd{a,b,c,d,}2
raid level 5 (-l5) with 3 disks(-n3) and one spare disk(-s1) on /dev/sda2 sdb2 sdc2 sdd2

Its quite easy with mdadm.
adding drives to an array is simple as well.
You might even get 2 more drives and make 2 raid one then stripe both raid one arrays with raid 0.

Have a look on google for "raid 1 with mdadm" you will find quite a bit of info as well as specifics for your distro.Mdadm should be in your distro's repository....no need to compile from source.
 
Old 09-12-2005, 07:34 PM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,411

Original Poster
Rep: Reputation: 55
Thanks!

I have a adaptec Raid card and a gigabyte mother board, could that be software raid?
 
Old 09-12-2005, 08:55 PM   #4
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
What is the exact adaptec raid cards modle number,I will look it up.
Almost positive all adaptec cards are software raid.
 
Old 09-13-2005, 12:31 AM   #5
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,411

Original Poster
Rep: Reputation: 55
I have this one:
Adaptec Serial ATA RAID 1210SA

The Adaptec Serial ATA RAID 1210SA provides cost-effective, high-performance storage connectivity and data protection for desktops, workstations and sub-entry servers. This two-port controller features Adaptec HostRAIDô - an integrated RAID technology that maximizes system performance and uptime.

The Adaptec 1210SA supports up to two Serial ATA drives and offers RAID levels 0, 1, and JBOD. The controller supports bootable arrays, provides background initialization and features 48-bit LBA that allows for the use of drive sizes exceeding 137 GByte. The Adaptec 1210SA supports Windows XP, Windows 2000, RedHat, and SuSE Linux and is managed by Adaptec Storage Managerô - Browser Edition.

The Adaptec 1210SA is the first in a family of Serial ATA RAID controllers delivered by Adaptec. The family of controllers is a key part of the Adaptec effort to help organizations cost-effectively deploy, manage, scale, and protect storage resources.

Highlights
2-port native Serial ATA RAID controller
RAID 0, 1 and JBOD
48-bit LBA supports drive sizes larger than 137GB
Low-profile form design
Bootable array support
32-bit/66MHz PCI
Complete List of Supported Operating Systems
 
Old 09-13-2005, 03:11 PM   #6
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,411

Original Poster
Rep: Reputation: 55
I am assuming, I have to create all the partitions first, same sizes on both drives and then run these commands:
mdadm -Cv /dev/md0 -l1 -n2 -c128 /dev/sd{a,b}1
mdadm -Cv /dev/md0 -l1 -n2 -c128 /dev/sd{a,b}2
mdadm -Cv /dev/md0 -l1 -n2 -c128 /dev/sd{a,b}3
mdadm -Cv /dev/md0 -l1 -n2 -c128 /dev/sd{a,b}4
mdadm -Cv /dev/md0 -l1 -n2 -c128 /dev/sd{a,b}5

How is this different from doing the same thing but with the drives connected to my MB directly and not connected to the Raid card?
 
Old 09-13-2005, 11:28 PM   #7
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
Quote:
I am assuming, I have to create all the partitions first, same sizes on both drives and then run these commands
Yes.
Make sure you make them raid partitions.I had to actually set my raid card to jbod for each disk.


Quote:
4. I have an Adaptec 1210SA SATA RAID card. Why doesn't Linux support my hardware RAID?
A. It's not hardware RAID. It is software RAID, provided by the BIOS on the card.
Taken from;
http://linux.yyz.us/sata/faq-sata-raid.html#ad1210

Quote:
How is this different from doing the same thing but with the drives connected to my MB directly and not connected to the Raid card?
It uses the bios from the raid card...maybe not much of an improvement over the motherboard controller but may take some of the load of the boards bios.Other than that im not really sure.
I have always used hardware raid up until this last box I built.I use a promise sx4 sata150;

Quote:
7. I have a Promise SX4 SATA RAID card. Why doesn't Linux support my hardware RAID?
A. SX4 has extensive "RAID accelerator" features. While not true hardware RAID, this card has several features which do indeed accelerate RAID support. Unfortunately, Linux does not support the SX4's special RAID accelerator features at this time.

For certain configurations, Promise's Linux driver will perform better than the native Linux SATA driver.
It has a 256mb ecc pc133 ram module in it.I figured eventually linux will catch up to that card and it was cheap.
 
  


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
SATAII RAID(1) Mirroring industris Slackware 2 09-19-2005 02:52 AM
kt7a-raid + debian + raid0 (mirroring) heller Linux - Hardware 5 08-09-2005 11:17 PM
raid 1 (mirroring) using usb device bmgz Linux - Hardware 7 11-16-2004 07:57 PM
Raid 1 mirroring in RH7.3 prue3 Linux - Software 1 07-03-2002 05:49 PM
Disk Druid Mirroring 2 hd on a raid newnix Linux - Software 1 07-04-2001 10:13 AM

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

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