LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-17-2009, 11:08 AM   #1
dbj
LQ Newbie
 
Registered: Sep 2009
Posts: 23

Rep: Reputation: 16
Software raid1 missing md0 and md2


I installed debian on /dev/sda. /dev/sda1 is /boot /dev/sda2 is '/' dev/sda3 is swap,
then I made a degraded raid1 with /dev/sdb


When booting from /dev/sda I have:

server:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid5] [raid4] [raid6]
[raid10]
md0 : active raid1 sdb1[1]
104320 blocks [2/1] [_U]

md1 : active raid1 sdb2[1]
243585472 blocks [2/1] [_U]

md2 : active raid1 sdb3[1]
505920 blocks [2/1] [_U]


Data was copied over so when booting from /dev/sdb md0 will be /boot, md1 will be '/' and md2 will be swap. But see what I got (booting from /dev/sdb):

server:/# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb2[1]
243585472 blocks [2/1] [_U]

unused devices: <none>


As you can see md0 and md2 is missing why?
How has this happen?





Here some extra information:

# fdisk -l /dev/sdb

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 13 104422 fd Linux raid autodetect
/dev/sdb2 14 30338 243585562+ fd Linux raid autodetect
/dev/sdb3 30339 30401 506047+ fd Linux raid autodetect
 
Old 09-17-2009, 01:45 PM   #2
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,162

Rep: Reputation: 505Reputation: 505Reputation: 505Reputation: 505Reputation: 505Reputation: 505
Did you clear the superblocks on both drives, and did you convert all partitions on the second drive to 0xfd?

Double check if your sequence was identical to the one described here:
http://www200.pair.com/mecham/raid/r...aded-etch.html. If not, go back to a point in the instruction list where you know you had a condiguration which worked as expected. Then redo your actions.

I can assure you it works in Debian, followed this list last week also on a sda/sdb configuration.

jlinkels
 
Old 09-18-2009, 02:53 AM   #3
dbj
LQ Newbie
 
Registered: Sep 2009
Posts: 23

Original Poster
Rep: Reputation: 16
Solved

Quote:
Originally Posted by jlinkels View Post
Did you clear the superblocks on both drives, and did you convert all partitions on the second drive to 0xfd?

Double check if your sequence was identical to the one described here:
http://www200.pair.com/mecham/raid/r...aded-etch.html. If not, go back to a point in the instruction list where you know you had a condiguration which worked as expected. Then redo your actions.

I can assure you it works in Debian, followed this list last week also on a sda/sdb configuration.

jlinkels
Thanks . It gave me a hint and the problem was caused by a wrong configuration of mdadm.

In "/etc/default/mdadm" there must be a AUTOSTART=yes
 
  


Reply

Tags
boot, degraded, raid1


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
linux software raid1 porlock Linux - Newbie 1 03-18-2013 06:40 PM
Software RAID1 SBN Linux - General 1 01-21-2009 08:47 AM
Software raid1 shadowers Linux - Hardware 2 10-24-2008 04:08 PM
Have software raid1, but like to change to raid1+0 or 0+1, how? spaceuser Debian 8 03-17-2008 02:07 PM
FC5 installer software RAID maker messed up old /dev/md0 cruiserparts Fedora 2 04-05-2006 08:43 AM


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