Operating System - Linux
1821220 Members
2999 Online
109632 Solutions
New Discussion юеВ

Pb with DL320 G2 Raid and RH8 kernel-2.4.20-24.8

 
Cedric_8
Advisor

Pb with DL320 G2 Raid and RH8 kernel-2.4.20-24.8

Hello,

I have a DL320 G2 2.26GHz with 2 IDE HD.
I have configured a RAID 1 array.
For Megaide RAID ATA to be recognized by redhat 8.0 (so that I see only one HD and not two), I had to use other drivers than the one in the RedHat 8.0 distrib, I used the 5.04f from LSI on a floppy.
The install was successfull.
I had then kernel 2.4.18-14.
When I tried to install the latest kernel I had the following error message :

root@neptune root]# rpm -ivh kernel-2.4.20-24.8.i386.rpm
Preparing... ########################################### [100%]
1:kernel ########################################### [100%]
No module megaide found for kernel 2.4.20-24.8
error: %post(kernel-2.4.20-24.8) scriptlet failed, exit status 1

I've also tried to install lsi-megaide-drvr-rh80-2.26e-1.i386.rpm I found on HP site and rerun the rpm install for the new kernel but same error message.

I think the right question would then be: Where can I find LSI megaide ATA RAID drivers/modules for RH8.0 kernel-2.4.20-24.8 ?

Thanks in advance,
Cedric.
3 REPLIES 3
Cedric_8
Advisor

Re: Pb with DL320 G2 Raid and RH8 kernel-2.4.20-24.8

Cedric_8
Advisor

Re: Pb with DL320 G2 Raid and RH8 kernel-2.4.20-24.8

Hello,

For those having the same issue, here is what I did to finally solve it.
LSI sent me the sources for the driver megaide.o and I had to recompile a kernel with it. (find sources attached).

Then I typed the following commands on my linux machine, running 2.14-18 RH8.0 kernel with already megaide driver running on it (2 IDE disks already in RAID 1) :

Install RH8.0 kernel-2.4.20-24.8 on DL320 with MegaRaid ATA IDE.

# rpm -ivh kernel-2.4.20-24.8.i386.rpm
# rpm -Uvh kernel-source-2.4.20-24.8.i386.rpm
# /usr/src/linux-2.4 (link to /usr/src/linux-2.4.20-24.8)
# make clean
# make mrproper
# cp configs/kernel-2.4.20-i386.config .config
# make oldconfig
# make dep
# cp ~root/shim-source-megaide-5.06v-generic-1.tgz /usr/src/linux-2.4/drivers/scsi
# cd /usr/src/linux-2.4/drivers/scsi
# tar -zxvf shim-source-megaide-5.06v-generic-1.tgz
This will creat a subfolder megaide

Modify linux source tree makefile
# cd /usr/src/linux-2.4
# vi Makefile

Add following lines to end of Makfile

megaide:
$(MAKE) -C drivers/scsi/megaide

Compile driver
# cd /usr/src/linux-2.4
# make megaide
This will create driver image (megaide.o) in /usr/src/linux-2.4/drivers/scsi/megaide

directory

# make bzImage

Install megaide driver module that created
#cp /usr/src/linux-2.4/drivers/scsi/megaide/megaide.o

/lib/modules/2.4.20-24.8custom/kernel/drivers/scsi/megaide.o

# make install
# make modules
# make modules_install
# shutdown -r 0

Have fun :)
Stuart Browne
Honored Contributor

Re: Pb with DL320 G2 Raid and RH8 kernel-2.4.20-24.8

Very nice!

Thank you very much for these steps Cedric!

I'm sure they will be a great help to those who will follow your footsteps in the future!
One long-haired git at your service...