On Wed, Jan 16, 2003 at 05:43:06PM +0100, [EMAIL PROTECTED] wrote: > Hi all,^M > ^M > I recompiled the kernel 2.4.16 on my Indigo2 just slightly modifying the > ..config file coming with the stock kernel, in order to add RAID > functionalities. The relevant modules were linked with the kernel itself.^M > ^M > #^M > # Multi-device support (RAID and LVM)^M > #^M > CONFIG_MD=y^M > CONFIG_BLK_DEV_MD=y^M > CONFIG_MD_LINEAR=m^M > CONFIG_MD_RAID0=m^M > CONFIG_MD_RAID1=y^M > CONFIG_MD_RAID5=y^M > CONFIG_MD_MULTIPATH=m^M > CONFIG_BLK_DEV_LVM=m^M > ^M > Unfortunatelly the kernel doesn't perform the MD autorun and the /dev/md0 > raid entry point can't be mounted.^M > Anybody got success in doing this ?^M > Any hint will be greatly appreciated.^M > ^M
Have you set the partition types to 0xfd ? Are you using a dos partition
table ?
I guess you are using an sgi disklabel - and the sgi code misses the
call into the raid layer in case there is a raid partition.
You might want to try this patch against current 2.4 cvs
Index: fs/partitions/sgi.c
===================================================================
RCS file: /home/cvs/linux/fs/partitions/sgi.c,v
retrieving revision 1.5
diff -u -r1.5 sgi.c
--- fs/partitions/sgi.c 5 Nov 2001 20:16:21 -0000 1.5
+++ fs/partitions/sgi.c 15 Jan 2003 17:54:56 -0000
@@ -14,6 +14,10 @@
#include <asm/byteorder.h>
#include <asm/system.h>
+#if CONFIG_BLK_DEV_MD
+extern void md_autodetect_dev(kdev_t dev);
+#endif
+
#include "check.h"
#include "sgi.h"
@@ -74,6 +78,12 @@
for(i = 0; i < 16; i++, p++) {
blocks = be32_to_cpu(p->num_blocks);
start = be32_to_cpu(p->first_block);
+
+#if CONFIG_BLK_DEV_MD
+ if (be32_to_cpu(p) == LINUX_RAID_PARTITION) {
+ md_autodetect_dev(MKDEV(hd->major,*current_minor));
+ }
+#endif
if(!blocks)
continue;
add_gd_partition(hd, current_minor, start, blocks);
Its completely untested (compile wise and i did not run it)
Tell me if it helps.
Flo
PS: Your MUA or MTA is broken and appends CR's at the end of all lines.
--
Florian Lohoff [EMAIL PROTECTED] +49-5201-669912
Heisenberg may have been here.
pgpfIv53i4rHr.pgp
Description: PGP signature

