LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 09-17-2009, 12:08 PM   #1
dbj
LQ Newbie
 
Registered: Sep 2009
Posts: 19
Thanked: 1
Software raid1 missing md0 and md2


[Log in to get rid of this advertisement]
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
windows_xp_2003 dbj is offline  
Tag This Post , ,
Reply With Quote
Old 09-17-2009, 02:45 PM   #2
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Etch/Lenny/Squeeze
Posts: 2,301
Thanked: 89
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
linuxdebian jlinkels is online now     Reply With Quote
Old 09-18-2009, 03:53 AM   #3
dbj
LQ Newbie
 
Registered: Sep 2009
Posts: 19
Thanked: 1

Original Poster
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
windows_xp_2003 dbj is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 05:34 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration