View previous topic :: View next topic |
Author |
Message |
amster56 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Aug 2008 Posts: 2
|
Posted: Tue Aug 26, 2008 3:30 am Post subject: RAID5 fails to start after reboot |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
gentoo_ram Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 25 Oct 2007 Posts: 513 Location: San Diego, California USA
|
Posted: Tue Aug 26, 2008 11:57 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
amster56 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Aug 2008 Posts: 2
|
Posted: Wed Aug 27, 2008 3:06 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|