Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RAID1 falls apart after each reboot?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
celem
n00b
n00b


Joined: 25 Aug 2008
Posts: 4

PostPosted: Mon Aug 25, 2008 1:37 am    Post subject: RAID1 falls apart after each reboot? Reply with quote

I am having trouble with getting Software RAID-1 to work correctly on 2.6.25-sabayon-r1, a Gentoo derivative.
The motherboard is a BioStar TF8200A2+. The drives are Western Digital SATAII, 250GB each.

I have had no problem setting up software RAID on Ubuntu using the same methodology. I have three SATA drives. The two drive partitions that I want to setup in RAID-1 are /dev/sdba and /dev/sdc1.
I partitioned them both and set the type to FD.
I created /dev/md0 with: mdadm --create --verbose /dev/md0 /dev/sdb1 /dev/sdc1
I formated with: mkfs.ext3 -T fd /dev/md0
I setup mdadm.conf with: mdadm --detail --scan > /etc/mdadm.conf
I setup /etc/fstab with: /dev/md0 /raid ext3 noatime 0 1

/dev/md0 mounts correctly with: mount -a

However, when I reboot, /dev/md0 is not booted and the RAID is no longer combined, requiring a mdadm -A to reestablish it.

In frustration, I tried other things like "rc-update add mdadm default"

Please, any ideas? I don't understand why this isn't working.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43006
Location: 56N 3W

PostPosted: Mon Aug 25, 2008 11:06 am    Post subject: Reply with quote

celem,

We don\t support Sabayon so moved here to avoid confusing other Gentoo users later.

Raid autoassembly is depreciated. You need some commands on the kernel line in grub.conf and may need mdadm in an initrd too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
celem
n00b
n00b


Joined: 25 Aug 2008
Posts: 4

PostPosted: Mon Aug 25, 2008 1:22 pm    Post subject: Reply with quote

Thank you for the pointer. I suspected that a Saboyon post might get rejected, but since it is based on Gentoo, I had to try.

I did attempt to use Gentoo - without success. I couldn't get the full install CD to recognize my hardware correctly (it would hang) so I tried the minimal install, which went better but after carefully following the instructions on two attempts, the final result wasn't a usable system. Still wanting a Gentoo system, I tried Saboyon DVD install and it immediately worked, except for the RAID issue.
Back to top
View user's profile Send private message
celem
n00b
n00b


Joined: 25 Aug 2008
Posts: 4

PostPosted: Mon Aug 25, 2008 2:13 pm    Post subject: Reply with quote

[SOLVED] Success! - I found an obscure tip at he bottom of od Gentoo Wiki (http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID#Troubleshooting) that said "Note: With latest genkernel, you should pass domdadm option to kernel. In case if busybox can't find /etc/mdadm.conf, it will try to autodetect arrays. ". This made the RAID automount work!!!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43006
Location: 56N 3W

PostPosted: Mon Aug 25, 2008 4:11 pm    Post subject: Reply with quote

celem,

Your post wasn't rejected, it was segregated.

The domdadm option for genkernel, adds mdadm to the initrd that genkernel makes. I'm glad you have your problem resolved.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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