OpenVZ Forum


Home » General » Support » /* solved */ kernel panic with megaraid_sas-v00.00.03.16-1 patch
icon9.gif  /* solved */ kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30240] Sun, 18 May 2008 14:29 Go to next message
paveo is currently offline  paveo
Messages: 17
Registered: April 2008
Junior Member
I had install megaraid_sas-v00.00.03.16-1.noarch.rpm for kernel 2.6.18-53.1.13.el5.028stab053.10, but unsuccessful, reboot and kernel panic. Server is DELL 2950.

Any idea?

[Updated on: Fri, 06 June 2008 07:57] by Moderator

Report message to a moderator

Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30247 is a reply to message #30240] Mon, 19 May 2008 04:23 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Hi Paveo,

could you please explain, why you need to install any additional drivers? This our kernel based on RHEL5 and as far as I know it includes this driver. Are you tried to use it?

thank you,
Vasily Averin
Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30249 is a reply to message #30247] Mon, 19 May 2008 05:42 Go to previous messageGo to next message
paveo is currently offline  paveo
Messages: 17
Registered: April 2008
Junior Member
Thanks for your reply.

My server reports the warning like this(Dell OMSA):

Driver Version 00.00.03.10
Minimum Required Driver Version 00.00.03.13

My raid card is Dell PERC 5/i Integrated, OMSA said my system's Firmware and Driver versions are out of date, so I want to upgrade it but kernel panic happened. Sad



Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30250 is a reply to message #30249] Mon, 19 May 2008 06:01 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
ok, thank you for explanation.

I expect the new driver was re-compiled incorrectly. Could you please show me the logs of this procedure?

The kernel crash messages are interesting for me too.

thank you,
Vasily Averin
Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30279 is a reply to message #30250] Mon, 19 May 2008 18:27 Go to previous messageGo to next message
paveo is currently offline  paveo
Messages: 17
Registered: April 2008
Junior Member
I can't got error log from files, so I got some screen shots. Thanks Razz
  • Attachment: Archive.zip
    (Size: 130.56KB, Downloaded 307 times)
Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30296 is a reply to message #30279] Tue, 20 May 2008 12:23 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
1.gif shows the messages
megaraid_sas: disagrees about version of symbol struct_module
insmod /lib/megaraid_sas.ko: -1 Invalid module format.

These messages means that the module was re-build incorrectly (or may be it was compiled for some other kernel).

You need to rebuild it again. You can use auto-build again -- in this case I would like to look at the messages.
Also if you wish I can explain You how to re-build thsi module manually.

thank you,
Vasily Averin
Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30298 is a reply to message #30296] Tue, 20 May 2008 12:47 Go to previous messageGo to next message
paveo is currently offline  paveo
Messages: 17
Registered: April 2008
Junior Member
The problem module was built by dkms tool, I try to rebuild it with no effect.

Thank you very much to tell me how to build a working module Smile
Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30304 is a reply to message #30298] Tue, 20 May 2008 14:59 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
First of all -- I wold note that you need to build this driver by the same comiler that was used for the kernel build.

Do you have RHEL5 host OS? If not -- You need to create new Container based on this template, and install the kernel and kernel-devel packages -- it contains the Makefiles and headers reuired for the driver compilation.

Then you need take megaraid_sas-v00.00.03.16-src.tgz tarball, it is included into megaraid_sas-v00.00.03.16-1.noarch.rpm, in /usr/src/megaraid_sas-v00.00.03.16-1 directory.

Extract it by using "tar xvzf" command, cd to dkms_source_tree/ directory and look at the following files:
Makefile
megaraid_sas.c
megaraid_sas.h

Then you can compile the driver by using the following command:
make -C /lib/modules/<kernel version>/build \
SUBDIRS=<full_path_to_the_current_dir> modules

for example

# make -C /lib/modules/2.6.18-028stab053.10/build \
SUBDIRS=/root/dkms_source_tree/ modules
make: Entering directory `/usr/src/kernels/2.6.18-028stab053.6-i686'
CC [M] /root/dkms_source_tree/megaraid_sas.o
/root/dkms_source_tree/megaraid_sas.c: In function ‘megasas_probe_one’:
/root/dkms_source_tree/megaraid_sas.c:2650: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/dkms_source_tree/megaraid_sas.c: In function ‘megasas_resume’:
/root/dkms_source_tree/megaraid_sas.c:2881: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
Building modules, stage 2.
MODPOST
CC /root/dkms_source_tree/megaraid_sas.mod.o
LD [M] /root/dkms_source_tree/megaraid_sas.ko
make: Leaving directory `/usr/src/kernels/2.6.18-028stab053.6-i686'
#

As you can see it generates some warnings but I think it is not an issue in our case.
Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30305 is a reply to message #30304] Tue, 20 May 2008 15:13 Go to previous messageGo to next message
paveo is currently offline  paveo
Messages: 17
Registered: April 2008
Junior Member
Thanks for your details.

My host system is CentOS 5.1, if I compiled the module, how can I install it, it seems must modify initrd.img.
Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30306 is a reply to message #30305] Tue, 20 May 2008 15:25 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
just replace original module in /lib/module/<kernelversion>,
call depmod, and then re-build initrd by using mkinitrd utility
Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30336 is a reply to message #30306] Wed, 21 May 2008 18:37 Go to previous messageGo to next message
paveo is currently offline  paveo
Messages: 17
Registered: April 2008
Junior Member
Hi, vaverin. I'm following your guide to install driver manually but kernel panic again Sad It seems some one have the same problem with me:

http://lists.xensource.com/archives/html/xen-users/2007-07/m sg00350.html
Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30338 is a reply to message #30336] Wed, 21 May 2008 18:43 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Is the modul loaded via the initramdisk, and the kernel cannot mount the root fs ?

Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30339 is a reply to message #30338] Wed, 21 May 2008 18:46 Go to previous messageGo to next message
paveo is currently offline  paveo
Messages: 17
Registered: April 2008
Junior Member
How can I know is it loaded from initramdisk?
Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30346 is a reply to message #30339] Thu, 22 May 2008 02:30 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
after replacing the module you need execute mkinitrd, it creates initramfs image that should be used on the kernel boot.
Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30347 is a reply to message #30346] Thu, 22 May 2008 04:07 Go to previous messageGo to next message
paveo is currently offline  paveo
Messages: 17
Registered: April 2008
Junior Member
I executed mkinitrd and reboot, but failed. Confused
Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30348 is a reply to message #30347] Thu, 22 May 2008 04:25 Go to previous message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Could you please give me access credential to your node (via Private Messaging),

thank you,
Vasily Averin
Previous Topic: Ftp error
Next Topic: vpnc in a VE locks out local traffic ?
Goto Forum:
  


Current Time: Tue May 28 12:15:37 GMT 2024

Total time taken to generate the page: 0.00497 seconds