Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Software RAID5 Boot on PPC (Oldworld and BootX)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Siftah
n00b
n00b


Joined: 16 Jun 2003
Posts: 39
Location: Manchester, UK

PostPosted: Mon Dec 26, 2005 11:08 pm    Post subject: Software RAID5 Boot on PPC (Oldworld and BootX) Reply with quote

I've just spent a while fiddling with this and had trouble passing Google the correct incantation to find me the answer, as a result I thought I'd best post it here, both so someone else may benefit and also because I just know I'm going forget this at some point in the future and need to look for it ;)

I'm using a Beige G3/300 AV, overclocked to 400mhz, 3 x 80gig IDE Maxtor Drives in a software RAID5 configuration. I've used the latest 2005.1 Gentoo CD to do the installation and have then configured my own kernel with some additional things built in.

You must build the RAID items into the kernel, using them as modules won't work without a ram disk.

As I'm also using a HighPoint HPT370 based IDE card, this module has also been built into the kernel (this is to get round a weird feature of the gossamer/heathrow machines whereby the secondary IDE bus won't support a Hard Drive - it will work but you will see hundreds of timeouts and errors in dmesg and disk performance will be slow and unreliable).

Once your RAID5 is created and you've installed a nice fresh gentoo onto it, you will need to build your kernel, install it to the MacOS partition for BootX to find etc etc.

For some reason "Linux RAID Autodetect" which works lovely on x86 machines, doesn't work on Mac style disk partitions, therefore when you try to boot your raid array isn't detected and the machine fails to boot, the work around for this is to append the following to your kernel args: md=0,/dev/hda1,/dev/hdc1 boot=/dev/md0

Obviously swapping the necessary details out - this should then let the array be assembled and started at boot time and allow you to boot from it, it should work for any of the supported raid levels, just as long as the module's compiled in.

You could also get around this by using a ram disk - but the above is much simpler!

Hope that helps someone!
Back to top
View user's profile Send private message
Sejam
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2004
Posts: 80

PostPosted: Thu May 04, 2006 5:35 pm    Post subject: Reply with quote

Did you get it working. I'm currently stumped.

I have a G4 xserve that I'm trying to install Gentoo on. I have two 120G hard drives (/dev/hdc and /dev/hde) that I would like to have RAID1 on. I'm not finding information on how to do that either with the Promise FastTrak or software raid. Any help would be GREATLY appreciated.
Back to top
View user's profile Send private message
Siftah
n00b
n00b


Joined: 16 Jun 2003
Posts: 39
Location: Manchester, UK

PostPosted: Fri May 05, 2006 5:08 am    Post subject: Reply with quote

Sejam wrote:
Did you get it working. I'm currently stumped.

I have a G4 xserve that I'm trying to install Gentoo on. I have two 120G hard drives (/dev/hdc and /dev/hde) that I would like to have RAID1 on. I'm not finding information on how to do that either with the Promise FastTrak or software raid. Any help would be GREATLY appreciated.


Hi Sejam,

Yes I posted the information after having successfully got it up and running, so it definitely works, the machine is still running with this config at the moment and has been very reliable.

Which bits not working? :)

You'll need to do much as I described, build the raid modules into your kernel and then append something like the following to your kernel args:

md=0,/dev/hdc1,/dev/hde1 boot=/dev/md0

Obviously depending on whether you've configured the drive as md0 and whether your `fd` partitions are the first on the drive.

If you can post more info as to where you're up to I'll try and help...
Back to top
View user's profile Send private message
Sejam
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2004
Posts: 80

PostPosted: Mon May 08, 2006 5:23 pm    Post subject: Reply with quote

How did you partition the disks, using fdisk or mac-fdisk? Also when I tried to create mapping for the first parition, it said that the partition was too small.
Back to top
View user's profile Send private message
Siftah
n00b
n00b


Joined: 16 Jun 2003
Posts: 39
Location: Manchester, UK

PostPosted: Mon May 08, 2006 5:33 pm    Post subject: Reply with quote

Sejam wrote:
How did you partition the disks, using fdisk or mac-fdisk? Also when I tried to create mapping for the first parition, it said that the partition was too small.


The disk is formatted so that the Mac can boot off it (it's Oldworld) so it will have been done with mac-fdisk and using a Mac partition table.

I'm not too sure what you mean by a "mapping" for the first partition - do you mean the entry in /etc/fstab?
Back to top
View user's profile Send private message
Sejam
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2004
Posts: 80

PostPosted: Wed Nov 29, 2006 5:45 am    Post subject: Reply with quote

I'm using Newworld, so partition 1p and 2p are already taken up for booting. When I partition, should the types be fd or Apple_UNIX_SVR2 for my two linux partions that I will be using (3p and 4p).
Back to top
View user's profile Send private message
Siftah
n00b
n00b


Joined: 16 Jun 2003
Posts: 39
Location: Manchester, UK

PostPosted: Wed Nov 29, 2006 1:43 pm    Post subject: Reply with quote

Sejam wrote:
I'm using Newworld, so partition 1p and 2p are already taken up for booting. When I partition, should the types be fd or Apple_UNIX_SVR2 for my two linux partions that I will be using (3p and 4p).


The partition type is: Linux_raid_autodetect
_________________
http://www.siftah.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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