Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Question on software raid partition
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
Sejam
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2004
Posts: 80

PostPosted: Wed Nov 29, 2006 5:22 am    Post subject: Question on software raid partition Reply with quote

I tried this a long time ago and didn't get it working and didn't really find any answers, this time around I'm trying it again. I'm following the softare raid guide in the gentoo wiki. For this most part it is for intel, so I'm trying to adapt for ppc. I used mac-fdisk to create the partition tables. When I print out the partition table, I get this:

/dev/hde
# type name length base ( size ) system
/dev/hde1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hde2 Apple_Bootstrap bootstrap 1600 @ 64 (800.0k) NewWorld bootblock
/dev/hde3 fd swap 2097152 @ 1664 ( 1.0G) Linux swap
/dev/hde4 fd root 232342832 @ 2098816 (110.8G) Unknown

My question is, does this look right for a softare raid setup for hde3 and hde4? I had created the hde3 and hde4 using the "C" command where you can specify the type. When it asked for the type, I typed in "fd" like you were suppose to when using If you let it specify the type manually, it would have been of type, "Apple_UNIX_SVR2". I know someone out there has done this before, but I haven't found any good documentation for ppc software raids.
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 8:18 am    Post subject: Reply with quote

Ok, I got a little farther at this point before I call it the night. I still don't have it working yet. I've been able to get yaboot to start up correctly and start to load up the kernel. From there I get the following error:
Code:
md: raid1 personality registered for level 1
md: multipath personality registered for level -4
md: faulty personality registered for level -5
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised:
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
input: PMU as /class/input/input2
md: Autodecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
VFS: Canot open root device "md2" or unkown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
 <0>Rebooting in 180 seconds..




My two drivers, which are /dev/hdc and /dev/hde have the third partition (3p) as the swap and the fourth partition (4p) as root. The p command through max-fdisk looks like this for both:
Code:
/dev/hdc
/dev/hde
        #                    type name                  length   base      ( size )  system
/dev/hde1     Apple_partition_map Apple                     63 @ 1         ( 31.5k)  Partition map
/dev/hde2         Apple_Bootstrap bootstrap               1600 @ 64        (800.0k)  NewWorld bootblock
/dev/hde3                      fd swap                 2097152 @ 1664      (  1.0G)  Unknown
/dev/hde4                      fd root               232342832 @ 2098816   (110.8G)  Unknown




I had to do a yaboot manually, in which case I modified it twice each time because I manually installed it on each disk. Here's teh configuration that I made up for them though:
Code:
# Simple yaboot.conf
device=hd:2
partition=4
magicboot=/usr/local/lib/yaboot/ofboot
timeout=5
boot=/dev/hdc2

image=/boot/vmlinux
    label=linux
    md=1,/dev/hdc3,/dev/hde3
    md=2,/dev/hdc4,/dev/hde4
    partition=4
    root=/dev/md2
    read-only



Has anybody made it this far or know what I'm missing here. I'm trying to figure out the yaboot.conf a little better since this is my first time messing with it.

Also not sure if it how I noted above in an earlier post that the partitions (3p and 4p) might be the wrong type. I set them as fd using the "C" command in mac-fdisk, but the defaults for linux when you don't specify the type is "Apple_UNIX_SVR2". To determine this is pretty tedious as the best I know I would need to recreate the partitions using the other type and then completely reinstall gentoo just to test, which will take another day.

Any help would be appreciated if you've seen this or been through this before.
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