Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Software raid1 problems again.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Mon Mar 07, 2005 8:07 pm    Post subject: Software raid1 problems again. Reply with quote

I tried again installing a system on a raid1 setup using the Gentoo 2004.3 CD and the md software approach.

I have two identical drives /dev/hde and /dev/hdg.
I assemble the the drives into two seperate arrays /dev/md0 for / an /dev/md1 for swap.
No problems, wait for syncing..... continue with normal gentoo install.
Everything builds and installs fine. (md support is compiled into kernel)

Install grub like this:
Code:
root (hd0,0)
setup (hd0)
root (hd1,0)
setup(hd1)

/boot/grub/grub.conf on contains:
Code:
kernel (hd0,0)/boot/kernel-2.6.10-gentoo-r6


I unmount everything and reboot and grub appears as expected.
It starts to boot the above line which is the only option. Kernel messages appear on framebuffer screen and both raids are seen and assembled. Says root is on md0 and then last message is it turns on swap on md1

Computer then reboots.
After reboot, let it try again.
After second reboot, grub comes up with Grub error 16.

Load Gentoo 2004.3 LiveCD and try to mount /dev/hde1 or /dev/hdg1 and told errors.
Run reiserfsck and says need to run with rebuild-tree to fix. Running with this option recovers most files, but destroys directory structure.

/etc/fstab is correctly setup up using /dev/mdX entries.

I tried the install twice and same thing both times, any suggestions?
(I have no floppy drive, so GRUB boot disk is not possible)
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Tue Mar 08, 2005 5:49 am    Post subject: Reply with quote

Tried a third time and same result, reboots and then drive corrupted.
Grub gives error 16 and try to mount partition from LiveCD gives this:
Code:
mount: wrong fs type, bad option, bad superblock on /dev/md0,
       or too many mounted file systems

I did reassemble the array before trying to mount.
Back to top
View user's profile Send private message
gcasillo
l33t
l33t


Joined: 23 Sep 2003
Posts: 739
Location: Cincinnati, Ohio, USA

PostPosted: Tue Mar 08, 2005 9:12 am    Post subject: Reply with quote

This may be related to your problem. Check out the bug report linked at the bottom of the thread. In short, the boot scripts from baselayout in versions < 1.11.9 appear to be hosed and preventing mutl-devices (e.g. /dev/md1) from being mounted.

Good luck. I spent a long weekend banging my head against the wall before I found the bug report.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Tue Mar 08, 2005 3:46 pm    Post subject: Reply with quote

gcasillo wrote:
This may be related to your problem. Check out the bug report linked at the bottom of the thread. In short, the boot scripts from baselayout in versions < 1.11.9 appear to be hosed and preventing mutl-devices (e.g. /dev/md1) from being mounted.

Good luck. I spent a long weekend banging my head against the wall before I found the bug report.

Thanks, I'll check that out. I have baselayout-1.11.9-r1 on my server, but I don't think I do on this machine.

Edit:
Well, I tried installing back just to a regular partition (no md devices) and I get the same problem there now too. :cry:

It seems that the disk geometry has changed on one of the disk. Weird.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Tue Mar 08, 2005 6:04 pm    Post subject: Reply with quote

I used Suse 9.2 to try installing on a md partition and it worked fine. The only difference being I created a separate /boot partition instead of including it on the raid partition.
I will try again with Gentoo and see what happens.

BTW, noticed Suse 9.2 has dev-mapper and dmraid functions builtin already. Maybe time to try that buildin PDC20276 chip :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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