Kernel 2.2.13 - software raid 1

Kernel 2.2.13 - software raid 1

Post by CableModemHel » Sun, 31 Dec 1899 09:00:00



Hi.

   I am trying to compile the 2.2.13 kernel on a machine that is
running software raid and has / mounted to a raid device. The machine
is basically a vanilla RedHat 6.1 install. Two disks (IBM 13 GB) with
various raid partion. /boot is not 'raided'. Everything runs fine with
2.2.12.

   However, after compiling 2.2.13, mkinitrd, lilo and such, it paniks
at the following point:

RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Loading raid1 module
raid1 personality registered
Bad md_map in ll_rw_block
EXT2-fs: unalbe to read superblock
Kernel panic: VFS: Unable to mount root fs on 09:00.

The kernel is based on the standard 2.2.13 source with raid0145-
19990824-2.2.11 applied (I get the same error message without).

I did a 2.2.12 recompile just to see and it worked fine (no error).
I mounted both initrd's and don't see a difference (2.2.13 has the
newer raid1.o of course).

Any help?

--
----
Cable Modem FAQ: http://www.cablemodemhelp.com

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Kernel 2.2.13 - software raid 1

Post by Peter T. Breue » Sun, 31 Dec 1899 09:00:00


:    I am trying to compile the 2.2.13 kernel on a machine that is
: running software raid and has / mounted to a raid device. The machine
: is basically a vanilla RedHat 6.1 install. Two disks (IBM 13 GB) with
: various raid partion. /boot is not 'raided'. Everything runs fine with
: 2.2.12.

Interesting. I didn't know one could have a raides boot these days. Is
it raid1?

:    However, after compiling 2.2.13, mkinitrd, lilo and such, it paniks
: at the following point:

Probably a bug that should be reported! I am also playing with the new
raid patches (on 2.2.10 - the unpatched kernel seems to have been
faulty on raid1).

: RAMDISK: Compressed image found at block 0
: VFS: Mounted root (ext2 filesystem).
: Loading raid1 module
: raid1 personality registered

Ah yes.

: Bad md_map in ll_rw_block
: EXT2-fs: unalbe to read superblock
: Kernel panic: VFS: Unable to mount root fs on 09:00.

: The kernel is based on the standard 2.2.13 source with raid0145-
: 19990824-2.2.11 applied (I get the same error message without).

I have 2.2.10 and that patch.

: I did a 2.2.12 recompile just to see and it worked fine (no error).

Excellent. Prima facae bug. Report it.

Peter

 
 
 

Kernel 2.2.13 - software raid 1

Post by Rasmus B?g Hanse » Sun, 31 Dec 1899 09:00:00


Have you initialized the raid-array in the new raidpatch-way (That is -
using the new raidtools)? The partitions used in the raid-array should be
of type 0xfd (As far as i remember) to be autodetected, and "raid array
autodetection" in the kernel config should be enabled. If your raid-array
is of the old type (that is non-autodetectable), you have to pass a kernel
optin like "md=0,1,4,0,/dev/hdb1,/dev/hdc1". Read the Documentation/md.txt
for more info on the boot parameter. If you have initialized them in the
old way, DONT DO IN THE NEW WAY, or you will destroy the contents of the
array.

Rasmus B?g Hansen



> :    I am trying to compile the 2.2.13 kernel on a machine that is
> : running software raid and has / mounted to a raid device. The machine
> : is basically a vanilla RedHat 6.1 install. Two disks (IBM 13 GB) with
> : various raid partion. /boot is not 'raided'. Everything runs fine with
> : 2.2.12.

> Interesting. I didn't know one could have a raides boot these days. Is
> it raid1?

> :    However, after compiling 2.2.13, mkinitrd, lilo and such, it paniks
> : at the following point:

> Probably a bug that should be reported! I am also playing with the new
> raid patches (on 2.2.10 - the unpatched kernel seems to have been
> faulty on raid1).

> : RAMDISK: Compressed image found at block 0
> : VFS: Mounted root (ext2 filesystem).
> : Loading raid1 module
> : raid1 personality registered

> Ah yes.

> : Bad md_map in ll_rw_block
> : EXT2-fs: unalbe to read superblock
> : Kernel panic: VFS: Unable to mount root fs on 09:00.

> : The kernel is based on the standard 2.2.13 source with raid0145-
> : 19990824-2.2.11 applied (I get the same error message without).

> I have 2.2.10 and that patch.

> : I did a 2.2.12 recompile just to see and it worked fine (no error).

> Excellent. Prima facae bug. Report it.

> Peter

===============================================================================
    ,-----.
   {|[;["[|=-.   ?l blev jo opfundet ved en fejltagelse
   `|[.[ [| ))   Fejltagelsen bestod i, at det ikke blev opfundet noget f?r
    |[ [ [|//                     -- Monrad & Rislund
    |[ [ [|'
    `====='
 
 
 

Kernel 2.2.13 - software raid 1

Post by CableModemHel » Sun, 31 Dec 1899 09:00:00


I found the solution myself...
I used 'make menuconfig' to configure the kernel. I did select the
'Autodetect RAID option'. However, somehow it did not work. I had to add
a line '#define CONFIG_AUTODETECT_RAID' to
/usr/src/linux/drivers/block/md.c to make things work. This is the only
file that uses the option. The raid patch is still necessary to get the
version of md.c that includes autodetect raid..

I am not sure what the exact workaround is for a non autodetecting
kernel. One probably can still get it to work using the right boot
options..



Quote:> Hi.

>    I am trying to compile the 2.2.13 kernel on a machine that is
> running software raid and has / mounted to a raid device. The machine
> is basically a vanilla RedHat 6.1 install. Two disks (IBM 13 GB) with
> various raid partion. /boot is not 'raided'. Everything runs fine with
> 2.2.12.

>    However, after compiling 2.2.13, mkinitrd, lilo and such, it paniks
> at the following point:

> RAMDISK: Compressed image found at block 0
> VFS: Mounted root (ext2 filesystem).
> Loading raid1 module
> raid1 personality registered
> Bad md_map in ll_rw_block
> EXT2-fs: unalbe to read superblock
> Kernel panic: VFS: Unable to mount root fs on 09:00.

> The kernel is based on the standard 2.2.13 source with raid0145-
> 19990824-2.2.11 applied (I get the same error message without).

> I did a 2.2.12 recompile just to see and it worked fine (no error).
> I mounted both initrd's and don't see a difference (2.2.13 has the
> newer raid1.o of course).

> Any help?

> --
> ----
> Cable Modem FAQ: http://www.cablemodemhelp.com

> Sent via Deja.com http://www.deja.com/
> Before you buy.

--
----
Cable Modem FAQ: http://www.cablemodemhelp.com

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Kernel 2.2.13 - software raid 1

Post by ge.. » Sun, 31 Dec 1899 09:00:00


When I patch the 2.2.13 Kernel with the raid patch.
I get errors.  Can I just ignore the errors.

With the stock 2.2.13 kernel there is no option of auto-
detect RAID.

thanks,

geoff nordli



> I found the solution myself...
> I used 'make menuconfig' to configure the kernel. I did select the
> 'Autodetect RAID option'. However, somehow it did not work. I had to
add
> a line '#define CONFIG_AUTODETECT_RAID' to
> /usr/src/linux/drivers/block/md.c to make things work. This is the
only
> file that uses the option. The raid patch is still necessary to get
the
> version of md.c that includes autodetect raid..

> I am not sure what the exact workaround is for a non autodetecting
> kernel. One probably can still get it to work using the right boot
> options..



> > Hi.

> >    I am trying to compile the 2.2.13 kernel on a machine that is
> > running software raid and has / mounted to a raid device. The
machine
> > is basically a vanilla RedHat 6.1 install. Two disks (IBM 13 GB)
with
> > various raid partion. /boot is not 'raided'. Everything runs fine
with
> > 2.2.12.

> >    However, after compiling 2.2.13, mkinitrd, lilo and such, it
paniks
> > at the following point:

> > RAMDISK: Compressed image found at block 0
> > VFS: Mounted root (ext2 filesystem).
> > Loading raid1 module
> > raid1 personality registered
> > Bad md_map in ll_rw_block
> > EXT2-fs: unalbe to read superblock
> > Kernel panic: VFS: Unable to mount root fs on 09:00.

> > The kernel is based on the standard 2.2.13 source with raid0145-
> > 19990824-2.2.11 applied (I get the same error message without).

> > I did a 2.2.12 recompile just to see and it worked fine (no error).
> > I mounted both initrd's and don't see a difference (2.2.13 has the
> > newer raid1.o of course).

> > Any help?

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

Kernel 2.2.13 - software raid 1

Post by ge.. » Sun, 31 Dec 1899 09:00:00


I guess I can ignore the errors.  I looked at the rejects,
and they had nothing to do with the i386 platform.

I ran menuconfig, and the "auto-detect Raid" option was there.

Also of note, I looked at my partition type, and it said
"fd".  That is supposedly important in the newer version
of raid.

I recompiled successfully, and re-booted.  Everything
seems to be working great.  I have everything mirrored
except for "/boot"

So in summary install the patch into the newer kernel,
and ignore the errors.

geoff nordlil


> When I patch the 2.2.13 Kernel with the raid patch.
> I get errors.  Can I just ignore the errors.

> With the stock 2.2.13 kernel there is no option of auto-
> detect RAID.

> thanks,

> geoff nordli



> > I found the solution myself...
> > I used 'make menuconfig' to configure the kernel. I did select the
> > 'Autodetect RAID option'. However, somehow it did not work. I had to
> add
> > a line '#define CONFIG_AUTODETECT_RAID' to
> > /usr/src/linux/drivers/block/md.c to make things work. This is the
> only
> > file that uses the option. The raid patch is still necessary to get
> the
> > version of md.c that includes autodetect raid..

> > I am not sure what the exact workaround is for a non autodetecting
> > kernel. One probably can still get it to work using the right boot
> > options..



> > > Hi.

> > >    I am trying to compile the 2.2.13 kernel on a machine that is
> > > running software raid and has / mounted to a raid device. The
> machine
> > > is basically a vanilla RedHat 6.1 install. Two disks (IBM 13 GB)
> with
> > > various raid partion. /boot is not 'raided'. Everything runs fine
> with
> > > 2.2.12.

> > >    However, after compiling 2.2.13, mkinitrd, lilo and such, it
> paniks
> > > at the following point:

> > > RAMDISK: Compressed image found at block 0
> > > VFS: Mounted root (ext2 filesystem).
> > > Loading raid1 module
> > > raid1 personality registered
> > > Bad md_map in ll_rw_block
> > > EXT2-fs: unalbe to read superblock
> > > Kernel panic: VFS: Unable to mount root fs on 09:00.

> > > The kernel is based on the standard 2.2.13 source with raid0145-
> > > 19990824-2.2.11 applied (I get the same error message without).

> > > I did a 2.2.12 recompile just to see and it worked fine (no
error).
> > > I mounted both initrd's and don't see a difference (2.2.13 has the
> > > newer raid1.o of course).

> > > Any help?

> Sent via Deja.com http://www.deja.com/
> Before you buy.

Sent via Deja.com http://www.deja.com/
Before you buy.