Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Raid Array will not autodetect & start properly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
vt_guy
n00b
n00b


Joined: 21 Dec 2004
Posts: 66

PostPosted: Wed Jan 10, 2007 1:17 am    Post subject: Raid Array will not autodetect & start properly Reply with quote

Raid array will not start during boot, only manually using mdadm.
This hardware used to work fine in my old Gentoo install but after a wipe out and rebuild no joy. Thus I believe there are no hardware issues involved.
Any ideas what I've done wrong?

Thanks, Eric

System Info:

Created a RAID5 array with mdadm:
Code:

mdadm -C /dev/md0 -l 5 -n 4 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1

cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sde1[3] sdd1[2] sdc1[1] sdb1[0]
      732587712 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
unused devices: <none>


Added a file system, mounted fine.

Rebooted:
Code:

dmesg
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
md: Autodetecting RAID arrays.
md: autorun ...
md: considering sde1 ...
md:  adding sde1 ...
md: created md0
md: bind<sde1>
md: running: <sde1>
raid5: not enough operational devices for md0 (4/4 failed)
raid5: failed to run raid set md0
md: pers->run() failed ...
md: do_md_run() returned -5
md: md0 stopped.
md: unbind<sde1>
md: export_rdev(sde1)
md: ... autorun DONE.


If I then manually start it everything is fine:

Code:

mdadm -A  /dev/md0


Here is the mdadm.conf file I created by using the scan option after the initial create:
Code:

ARRAY /dev/md0 level=raid5 num-devices=4 UUID=b5468a71:eda1953a:905aafe6:8af6747
4

_________________
Thanks,
Eric
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Wed Jan 10, 2007 2:15 am    Post subject: Reply with quote

Check the output of "fdisk -l" to see if all your RAID partitions are "type fd".

From the md:autorun output you posted, it looks like only /dev/sde1 has the correct partition type.
Back to top
View user's profile Send private message
vt_guy
n00b
n00b


Joined: 21 Dec 2004
Posts: 66

PostPosted: Wed Jan 10, 2007 1:58 pm    Post subject: Solved Reply with quote

Yep, figured that out this AM. :oops:

The other 3 disks were of LVM type.
Thinking back on the old build I was possibly using raidtab and it didn't matter then.

Dooh.... Sorry for the bother.

Thanks!
_________________
Thanks,
Eric
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum