LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 07-24-2007, 03:33 PM   #1
Ezplan
Member
 
Registered: Dec 2003
Location: MA
Distribution: CentOS 5, Linux Mint
Posts: 58
Blog Entries: 1

Rep: Reputation: 15
mdadm error creating raid1


Hi all,

I'm running FC6, trying to set up simple raid1. This is what happens:

Code:
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
mdadm: ADD_NEW_DISK for /dev/sda1 failed: Invalid argument
Any idea whats going on?

Thanks!
 
Old 07-24-2007, 05:12 PM   #2
beatupbilly
Member
 
Registered: Jan 2004
Location: Pinr Lake, GA
Distribution: Slackware, LinuxMint, FreeBSD, Xandros, CentOS, Fedora Core, RedHat, Chakra, etc etc
Posts: 215

Rep: Reputation: 30
What is your system configuration?
 
Old 07-25-2007, 08:54 AM   #3
Ezplan
Member
 
Registered: Dec 2003
Location: MA
Distribution: CentOS 5, Linux Mint
Posts: 58
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Sorry! Here it is:

Processor: AMD Athlon MP 2000+
Graphics: ATI Rage XL (on MB)
MB: Tyan Thunder K7X Pro
Memory: 2Gb PC2100 DDR RAM
HD (OS):100Gb IDE
SCSI controller: Tekram DC-390U3D
SCSI HD: 4 x 36Gb Seagate Cheetah 7200 RPM
 
Old 07-25-2007, 09:28 AM   #4
beatupbilly
Member
 
Registered: Jan 2004
Location: Pinr Lake, GA
Distribution: Slackware, LinuxMint, FreeBSD, Xandros, CentOS, Fedora Core, RedHat, Chakra, etc etc
Posts: 215

Rep: Reputation: 30
Not much experience with this but maybe sda1 sda2 sda3 sda4 and so on might work? Or possibly just sda and sdb?
 
Old 07-25-2007, 10:08 AM   #5
Ezplan
Member
 
Registered: Dec 2003
Location: MA
Distribution: CentOS 5, Linux Mint
Posts: 58
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Thanks for the reply!

I did try just using sda and sdb but got the same error. I believe you have to list the devices as they exist in /dev. sda2, sda3 etc don't exist, just sda and sda1, sdb and sdb1 etc because each SCSI drive only has only 1 partition.
 
Old 07-25-2007, 09:39 PM   #6
beatupbilly
Member
 
Registered: Jan 2004
Location: Pinr Lake, GA
Distribution: Slackware, LinuxMint, FreeBSD, Xandros, CentOS, Fedora Core, RedHat, Chakra, etc etc
Posts: 215

Rep: Reputation: 30
Have you tried:
mkraid [options] [devices]

and then perform:
raidstart [options] [devices]
 
Old 07-25-2007, 10:28 PM   #7
RottenMutt
Member
 
Registered: Jul 2003
Location: dfw
Distribution: Latest Fedora Release
Posts: 186

Rep: Reputation: 30
cat /proc/mdstat
mdadm --misc --detail /dev/md0

i was able to add a drive to an existing array using
mdadm /dev/md0 --reaa /dev/sdd1

google, there are lots of guides available for doing it from scratch.
 
Old 07-26-2007, 10:35 AM   #8
Ezplan
Member
 
Registered: Dec 2003
Location: MA
Distribution: CentOS 5, Linux Mint
Posts: 58
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Thanks for everyone's responses! But there is something else going on here. I'm getting errors in the scsi bus, seeing them at boot time too. I need to get that straightened out before I worry about making raid arrays. I'm going to assume the scsi errors are causing mdadm to fail.
 
  


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
Software RAID1 with mdadm bujecas Debian 0 10-26-2006 09:56 AM
Problems with setting up raid1 with mdadm on slackware kikola Slackware 0 08-21-2006 05:29 AM
using raid1 with mdadm to "restore" system to previous state predder Linux - Enterprise 0 08-08-2006 07:57 PM
Change raid1-mdadm disks Debian Suhy Linux - Software 1 07-03-2006 03:48 PM
raid1 using mdadm? help plz akadidm Linux - Hardware 3 06-09-2005 04:58 AM


All times are GMT -5. The time now is 04:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration