LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 08-04-2012, 06:04 PM   #1
fireball1974
LQ Newbie
 
Registered: Apr 2008
Posts: 11

Rep: Reputation: 1
Why can't I create a RAID array?


I am trying to create a Linux software RAID array on Debian Squeeze. First I created the following partitions:

/dev/sdc2
/dev/sdd2

Both are formatted as FD (Linux RAID autodetect).
Now I try using mdadm to create a level-1 RAID array:

# mdadm --verbose --create /dev/md2 --level=1 --raid-devices=2 /dev/sdc2 /dev/sdd2

I get the following error messages:

mdadm: super1.x cannot open /dev/sdc2: No such file or directory
mdadm: ddf: Cannot open /dev/sdc2: No such file or directory
mdadm: Cannot open /dev/sdc2: No such file or directory
mdadm: device /dev/sdc2 not suitable for any style of array

What am I doing wrong?
 
Old 08-04-2012, 09:06 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,988

Rep: Reputation: 261Reputation: 261Reputation: 261
The error message seems straightforward -- /dev/sdc2 doesn't seem to exist. Have you checked in /dev to see if it, in fact, there? Depending on the partitioning tool you used and your hardware, you may need to reboot the machine to see newly created partitions.
 
Old 08-04-2012, 09:07 PM   #3
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,880

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I've never done this, but, judging by the Debian wiki, you might have missed a step in creating the partitions:

http://wiki.debian.org/SoftwareRAID
 
Old 08-05-2012, 09:09 PM   #4
fireball1974
LQ Newbie
 
Registered: Apr 2008
Posts: 11

Original Poster
Rep: Reputation: 1
Solved

I am not sure why, but this problem disappeared after I rebooted. Thank you for your suggestions!
 
Old 08-06-2012, 07:31 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994
If you go into eg fdisk & create partitions, even when using 'w' to write the new partition table, sometimes the kernel won't see it until after a reboot.
One trick is to run the cmd partprobe http://linux.die.net/man/8/partprobe after using 'w' & exiting fdisk
 
2 members found this post helpful.
Old 08-06-2012, 11:54 PM   #6
fireball1974
LQ Newbie
 
Registered: Apr 2008
Posts: 11

Original Poster
Rep: Reputation: 1
Thank you! That will help me in the future.

BTW, the tool I used to create the partitions was cfdisk.
 
Old 08-07-2012, 12:01 AM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994
Never used it, but after 'saving changes' however cfdisk does it, exit and try partprobe anyway, then list the partitions however you want, or
Code:
cat /proc/partitions
 
  


Reply

Tags
linux, mdadm, raid


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a software raid array from 3TB drives? (parted?) swingliner Linux - Server 2 10-13-2011 09:34 PM
mdadm create,, raid array is not clean dbj Linux - Server 2 11-16-2009 05:36 PM
How to create an initial raid 5 array with 2 disk? metabaron Linux - General 2 12-09-2006 05:54 PM
fasted way to create a new RAID array on blank drives jerp Linux - General 0 08-14-2006 01:40 PM
Create RAID 5 software array wesleywest Red Hat 3 02-09-2005 02:41 AM


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