PATCH - Software RAID Autodetection for OSF partitions

PATCH - Software RAID Autodetection for OSF partitions

Post by Neil Brow » Tue, 11 Sep 2001 08:40:07


> Here's a quick patch that I wrote-up for 2.4.10-pre5 (should work with
> other 2.4.x kernels too), so that the OSF partition code should
> auto-detect partitions with a fstype of 0xFD (software RAID).

> It seems to work for me, except that the software RAID code in 2.4.10-pre5
> (both with and without my patch) keep dying with superblock errors on line
> 1574 of md.c.  If anybody knows how to fix this error, please let me know
> :).

line 1574 of md.c is an MD_BUG which gets called if "analyse_sbs"
returns non-zero.
analyse_sbs returns non-zero only if the label "abort:" is jumped.
Every "goto abort" is preceeded by an "MD_BUG" or a printk except one
after check_disk_sb and one after alloc_array_sb.
These both print messages in cases were they fail, except for
alloc_array_sb which won't print a message if __get_free_pages

So, if the message about "1574 of md.c" is the first message you get,
then __get_free_page must be failing.  It it isn't, please tell us the
first error message that you get.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at
Please read the FAQ at


1. RAID autodetection not working


I see some similar posts, but they have to do with booting from a soft
RAID.  My RH 7.1 system boots from IDE drives.  I made a RAID 5 array
from 3 drives on a SCSI controller manually, after initial
installation.  The raid device is not detected on boot.  However, it
can be started manually, and then works fine.

I followed the how-to to set it all up.  The raid disks' partitions
are FD with autodetection. Persistent superblock is set to 1.  I think
that the kernel has raid autodetection built in.  In dmesg I see thing
like "autodetecting RAID arrays," and starting RAID devices.  However,
the raid doesn't start until I start it manually.

Seems like autodetection isn't working right.  So, I need to start the
raid manually somewhere.  
Where and how do I do that?

Thank you.


I thought I am the "System Administrator?!?"

2. root/ Locked Directory: Is there a way out of this please- kfm shwing this on status line

3. soft RAID autodetection not working

4. Shadow headers missing (shadow.h)

5. software raid patch

6. NAT and Firewall

7. Where to find software RAID patches?

8. need some help with ls command

9. Software RAID 5 and the raid0145 patch

10. HPT366 patch+Software RAID problems ("lost interrupt")

11. What are the recommended software RAID patch(es) for 2.2.20?

12. Software RAID-1 > Normal Partition

13. FW: Poor performance, high disk queue on software RAID partition