Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RAID5 fails to start after reboot
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
amster56
n00b
n00b


Joined: 26 Aug 2008
Posts: 2

PostPosted: Tue Aug 26, 2008 3:30 am    Post subject: RAID5 fails to start after reboot Reply with quote

I have a pre-exisitng RAID5 from an earlier gentoo installation that I can't get to start after a reboot.

I've installed a new 2008.0 version for AMD64, emerged mdadm and added to the default level with rc-update.

Here's my mdadm.conf file:

Code:

DEVICE /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
ARRAY /dev/md0 UUID=2f998135:eb929f10:1269aa3b:b7c68877


I'm mounting /dev/md0 as /home

Each time I reboot I have a reassmble the raid. After I do that, it works fine:

Code:

~ # mdadm --detail --scan
ARRAY /dev/md0 level=raid5 num-devices=4 metadata=00.90 UUID=2f998135:eb929f10:1269aa3b:b7c68877
~ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4]
md0 : active raid5 sdb1[0] sde1[3] sdd1[2] sdc1[1]
      732587712 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
     
unused devices: <none>


This is odd because I've used this RAID for a long time (2+ years) even with various reinstalls, and I'm only now running into this problem.
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 513
Location: San Diego, California USA

PostPosted: Tue Aug 26, 2008 11:57 pm    Post subject: Reply with quote

Set the partition types to 'fd' (Linux RAID autodetect) and the kernel should reconstruct the RAID when it boots assuming you have the RAID functionality compiled into the kernel.
Back to top
View user's profile Send private message
amster56
n00b
n00b


Joined: 26 Aug 2008
Posts: 2

PostPosted: Wed Aug 27, 2008 3:06 am    Post subject: Reply with quote

Thanks for the tip. I did read this elsewhere...

Wouldn't that destroy the filesystem? I don't have anything to back it up to, so I was hoping I wouldn't need to. Also, I didn't have this set before and it was working. Do you know what might have changed?

If it's working now, with a manual assemble after boot, I would assume that the kernel has what it needs for it to work. Might I be missing something?

thanks in advance...
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