2003-03-19 07:30:44

by Martin J. Bligh

[permalink] [raw]
Subject: [Bug 471] New: Root on software raid don't boot on new 2.5 kernel since after 2.5.45

http://bugme.osdl.org/show_bug.cgi?id=471

Summary: Root on software raid don't boot on new 2.5 kernel since
after 2.5.45
Kernel Version: 2.5.65
Status: NEW
Severity: high
Owner: [email protected]
Submitter: [email protected]


Distribution:
Linux Mandrake 9.0 (std kernel 2.4.21-pre1)
Hardware Environment:
ASUS A7M266-D ACPI BIOS Revision 1006
Promise 20268 PCI IDE Controler
Intel Ethernet Pro 100
ATI Radeon QD

Problem Description:
The software raid setup I have boots on 2.4 but not on newer 2.5 kernels, i
have everything need compiled in and the 2.5 kernel also rapports that it has
found /dev/md2 but it rapports that is's unable to mount the root partition for
this device. I have tried to pass /dev/md0 as the root but this hangs the
kernel, is root on raid broaken in kernel 2.5 or am I doing something wrong?

lilo:
image=/boot/vmlinuz-2.4.21-pre1
label=linux
root=/dev/md2
read-only
append=" devfs=mount"

image=/boot/vmlinuz-2.5.65
label=linux25
root=/dev/md2
read-only
append=" devfs=mount"

fdisk:
/dev/hda1 1 20318 10240240+ 7 HPFS/NTFS
/dev/hda2 20319 116301 48375432 5 Extended
/dev/hda5 20319 20522 102784+ 83 Linux
/dev/hda6 20523 22554 1024096+ 83 Linux
/dev/hda7 22555 116301 47248456+ fd Linux raid autodetect

mdadm: # UUID removed
#devices=/dev/hdd5,/dev/hdc5
ARRAY /dev/md0 level=raid1 num-devices=2
#devices=/dev/hdd6,/dev/hdc6
ARRAY /dev/md1 level=raid1 num-devices=2
#devices=/dev/hdd7,/dev/hdc7
ARRAY /dev/md2 level=raid1 num-devices=2
#devices=/dev/hdg5,/dev/hde5
ARRAY /dev/md3 level=raid0 num-devices=2

mount:
/dev/md0 on /boot type ext3 (rw)
/dev/md2 on / type reiserfs (rw,notail)
/dev/md3 on /dist type reiserfs (rw,notail)

fstab:
/dev/md2 / reiserfs notail 1 1
/dev/md0 /boot ext3 defaults 1 2
/dev/md1 swap swap defaults 0 0
/dev/md3 /dist reiserfs notail 1 1


2003-03-19 10:01:43

by Helge Hafting

[permalink] [raw]
Subject: Re: [Bug 471] New: Root on software raid don't boot on new 2.5 kernel since after 2.5.45

Martin J. Bligh wrote:
> http://bugme.osdl.org/show_bug.cgi?id=471
>
> Summary: Root on software raid don't boot on new 2.5 kernel since
> after 2.5.45

Root on raid-1 works fine for me, with and without devfs. My kernel has
no module support, everything is compiled in. I don't use initrd.
I have used root-raid with every 2.5 kernel except for a few that had
raid bugs. (Affecting all raid, the root weren't special.)

Until recently the root raid always did an unclean shutdown, but this didn't
cause other trouble than a bootup resync.

> Problem Description:
> The software raid setup I have boots on 2.4 but not on newer 2.5 kernels, i
> have everything need compiled in and the 2.5 kernel also rapports that it has
> found /dev/md2 but it rapports that is's unable to mount the root partition for
> this device. I have tried to pass /dev/md0 as the root but this hangs the
> kernel, is root on raid broaken in kernel 2.5 or am I doing something wrong?
>
> lilo:
> image=/boot/vmlinuz-2.4.21-pre1
> label=linux
> root=/dev/md2
> read-only
> append=" devfs=mount"
>
> image=/boot/vmlinuz-2.5.65
> label=linux25
> root=/dev/md2
> read-only
> append=" devfs=mount"

Are you using devfs? I expect the name of the raid device
to be something like /dev/md/2 instead of /dev/md2 in that case.

Helge Hafting