Hi Allan,
m. allan noah <[EMAIL PROTECTED]> said:
> you actually found the problem already:
> <4>md.c: sizeof(mdp_super_t) = 4104
>
> that should be 4096 IIRC. has to do with integer alignment on a 64 bit
> machine. there have been patches circulating on the list to make this work for
> PPC, if you check the archives, or the author of those patches responds to
> this thread, you should be able to patch the kernel to make the superblock
> correctly aligned...
>
> allan
I applied the suggested patch and now the system says on booting:
----------------------------------------------------------------------
hda: FUJITSU MPD3108AT, 9541MB w/512kB Cache, CHS=19386/16/63
md driver 0.90.0 MAX_MD_DEVS=256, MAX_REAL=12
raid0 personality registered
md.c: sizeof(mdp_super_t) = 4096
Partition check:
hda: hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8
autodetecting RAID arrays
autorun ...
... autorun DONE.
VFS: Mounted root (ext2 filesystem) readonly.
----------------------------------------------------------------------
So integer alignment seems to be correct now but autodetection still
does not work. :-(
After looking into drivers/block/genhd.c I found out that partition
types were never set for any partition-table beside MSDOS or SUN
partitions.
Furthermore I detected that the partitions used as "BSD"-partitions
actually are named OSF-partitions in genhd.c.
So the following patch helped to make autodetection run on my system:
----------------------------------------------------------------------
--- linux.orig/drivers/block/genhd.c Thu Apr 13 13:28:25 2000
+++ linux/drivers/block/genhd.c Mon Apr 17 12:12:19 2000
@@ -729,7 +729,7 @@
if (partition->p_size)
add_partition(hd, current_minor,
first_sector+partition->p_offset,
- partition->p_size, 0);
+ partition->p_size, partition->p_fstype);
current_minor++;
}
printk("\n");
----------------------------------------------------------------------
Ciao,
Norbert
> Norbert Eicker <[EMAIL PROTECTED]> said:
>
> >
> >
> > Hi list,
> >
> > I'm playing around with RAID-0 on an Compaq DS10 with an Alpha
> > processor running Kernel 2.2.14 + raid-2.2.14-B1 patch.
> >
> > When I try to do autodetection on my RAID partition I fail:
> >
> > - I put autodetection support into the kernel.
> >
> > - I created /dev/md0 with persistent superblock
> >
> > - Since the DS10 has an SRM console I have to BSD disklabels to boot
> > properly from harddisk. I tried to set the partition-type of my
> > RAID partitions to 0xfd as mentioned in the Software RAID HOWTO but
> > I'm not really sure if I succeeded, since the know partition-type
> > mentioned by fdisk only tell about a range from 0x0 to 0xf. Anyway,
> > fdisk tells me about 0xfd.
> >
> > But when I reboot the system, everything I get is:
> >
> > ----------------------------------------------------------------------
> > <4>md.c: sizeof(mdp_super_t) = 4104
> > <6>autodetecting RAID arrays
> > <4>autorun ...
> > <4>... autorun DONE.
> > ----------------------------------------------------------------------
> >
> > So, the RAID-0 is not detected.
> >
> > I suspect that the problem is related to the BSD-disklabels.
> > Any suggestions?
> >
> >
> > Ciao
> >
> > Norbert
> >