2001-02-03 23:29:21

by Jean-Eric Cuendet

[permalink] [raw]
Subject: RAID autodetect and 2.4.1


Hi,
I have a server with RAID1 partitions with linux 2.4.1 (stock,
self-compiled) installed.
It was easy to create the RAID partitions but when booting, no
auto-detection is successful.
The kernel says that autodetect is running, then done, but nothing is
auto-detected.
My devices are IDE devices (hda + hdc) and all drivers are bult-ins (no
initrd nor modules).
After the boot, making a raidstart works like a charm...
Any advice?
Help welcomed.

Thanks
-jec

PS: I'm not in the list, so CC me please.

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Jean-Eric Cuendet
Linkvest SA
Av des Baumettes 19, 1020 Renens Switzerland
Tel +41 21 632 9043 Fax +41 21 632 9090
http://www.linkvest.com E-mail: [email protected]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _




2001-02-03 23:39:55

by Chris

[permalink] [raw]
Subject: RAID autodetect and 2.4.1

> Hi,
> I have a server with RAID1 partitions with linux 2.4.1 (stock,
> self-compiled) installed. It was easy to create the RAID partitions
> but when booting, no auto-detection is successful. The kernel says
> that autodetect is running, then done, but nothing is auto-detected.
> My devices are IDE devices (hda + hdc) and all drivers are bult-ins
> (no initrd nor modules). After the boot, making a raidstart works
> like a charm...
>
> Any advice?
> Help welcomed.

Sounds like you didn't set the partition type to be "FD" which is what
the raid autodetect looks for. (Read the Software-RAID howto). I
did the same thing yesterday. :)

--
Chris Bayly

Email: [email protected] | CNS, UNIX Support
| 151 General Services Building
| University of Alberta
Web: http://www.ualberta.ca/~cbayly/ | Edmonton, Alberta
| Canada T6G 2S7

2001-02-04 20:54:33

by Jakob Oestergaard

[permalink] [raw]
Subject: Re: RAID autodetect and 2.4.1

On Sun, Feb 04, 2001 at 12:28:30AM +0100, Jean-Eric Cuendet wrote:
>
> Hi,
> I have a server with RAID1 partitions with linux 2.4.1 (stock,
> self-compiled) installed.
> It was easy to create the RAID partitions but when booting, no
> auto-detection is successful.
> The kernel says that autodetect is running, then done, but nothing is
> auto-detected.
> My devices are IDE devices (hda + hdc) and all drivers are bult-ins (no
> initrd nor modules).
> After the boot, making a raidstart works like a charm...
> Any advice?
> Help welcomed.

>From http://unthought.net/Software-RAID.HOWTO/Software-RAID.HOWTO-4.html#ss4.10

---------------------------------------------
4.10 Autodetection

Autodetection allows the RAID devices to be automatically recognized by the kernel at boot-time, right after the ordinary partition detection is done.

This requires several things:
* You need autodetection support in the kernel. Check this
* You must have created the RAID devices using persistent-superblock
* The partition-types of the devices used in the RAID must be set to 0xFD (use fdisk and set the type to ``fd'')
---------------------------------------------

I guess you forgot to mark the partitions as type 0xfd. I have a similar box
here with 2.4.1 and autodetect works like a charm.

Cheers,

--
................................................................
: [email protected] : And I see the elder races, :
:.........................: putrid forms of man :
: Jakob ?stergaard : See him rise and claim the earth, :
: OZ9ABN : his downfall is at hand. :
:.........................:............{Konkhra}...............: