OpenVZ Forum


Home » General » Support » *SOLVED* Kernel install problem
*SOLVED* Kernel install problem [message #6503] Tue, 19 September 2006 13:07 Go to next message
dagr is currently offline  dagr
Messages: 83
Registered: February 2006
Member
I tried ovzkernel-smp-2.6.9-023stab016.2.i686.rpm on several hosts and it was ok , until i tried it on the production one which uses SCSI AIC7xxx
diskdumplib 4940 0 [aic7xxx]
sd_mod 13968 12
scsi_mod 106924 3 [sr_mod sg aic7xxx sd_mod]

its RHEL3 (i already tried it on another RHEL3 and all was ok) , but this time i got :
[dagr@ws-ca openvz]$ sudo rpm -ivh ovzkernel-smp-2.6.9-023stab016.2.i686
.rpm
warning: ovzkernel-smp-2.6.9-023stab016.2.i686.rpm: V3 DSA signature: NOKEY, key
ID a7a1d4b6
Preparing... ########################################### [100%]
1:ovzkernel-smp ########################################### [100%]
No module aic7xxx found for kernel 2.6.9-023stab016.2-smp, aborting.
mkinitrd failed
error: %post(ovzkernel-smp-2.6.9-023stab016.2) scriptlet failed, exit status 1


//////////////////////////////////////
i checked /boot dir - and saw that it created kernels but not initrd file and also left intact grub.conf
///////////////////////////////////////////////////////

i tried to compile it manually
downloaded src rpm ovzkernel-2.6.9-023stab016.2.src.rpm
substituted kernel-2.6.9-023stab016-i686-smp.config.ovz instead of .config . Made make menuconfig - changed aic7xxx new and old to M and saved. Then i run `make bzImage` and finally got this


arch/i386/power/built-in.o(.text+0x1cd): In function `swsusp_arch_resume':
: undefined reference to `swsusp_pg_dir'
make: *** [.tmp_vmlinux1] Error 1

So i gave up for now and want to ask - how to fix it ?
Also can you give me link to simple howto - how to build binary rpm - from compiled kernel and kernel-ovz.spec file which you share with src rpm.


[Updated on: Wed, 20 September 2006 07:32] by Moderator

Report message to a moderator

Re: Kernel install problem [message #6506 is a reply to message #6503] Tue, 19 September 2006 13:29 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
The problem is that this driver is compiled in OpenVZ kernel. mkinitrd doesn't find module and complains on it...
Can you tell me distribution you use, please?

At the moment you can create initrd manually specifying
--builtin=builtin=module.

However this seems to be bug in mkinitrd and i'm waiting for your answer about distribution.

As concerns compiling from src. I'll check it tomorrow.


HTH,
vass.
Re: Kernel install problem [message #6510 is a reply to message #6503] Tue, 19 September 2006 15:35 Go to previous messageGo to next message
dagr is currently offline  dagr
Messages: 83
Registered: February 2006
Member
Red Hat Enterprise Linux ES release 3 (Taroon Update 6)
Re: Kernel install problem [message #6518 is a reply to message #6510] Tue, 19 September 2006 19:50 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
RHEL3 is 2.4 based distribution and do not support 2.6 kernels. I would like to recommend you to reinstall 2.6 based distribution on the node (RHEL4u4 or CentOs 4.4).
If you wish to work on RHEL3 distribution you should update your modutils package, original version cannot work witch 2.6 modules.
You can take modutils from FC2 distribution -- it has dual kernel support (both 2.6 and 2.4 kernels).

Without modutils update you will be able to load 2.6 kernel (without any initrd), but you will not be able to load any modules.
Re: Kernel install problem [message #6534 is a reply to message #6503] Wed, 20 September 2006 06:17 Go to previous messageGo to next message
dagr is currently offline  dagr
Messages: 83
Registered: February 2006
Member
i know about modutils - updated them up to modutils-2.4.26-16.i386.rpm (from fedora). Like i said i tried this kernel on another host with RHEL3 and updated modutils and all was ok
Re: Kernel install problem [message #6538 is a reply to message #6534] Wed, 20 September 2006 06:45 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Ok, thank you.
In this case I think you should be able to boot 2.6 kernel without initrd. Are you tried to do it?
Re: Kernel install problem [message #6541 is a reply to message #6503] Wed, 20 September 2006 07:30 Go to previous message
dagr is currently offline  dagr
Messages: 83
Registered: February 2006
Member
i just made mkinitrd --builtin=aic7xxx manually and reboot was ok, later i found out that more simple way is comment out aic7xxx line in modules.conf before installing rpm , i tried it and rpm install went smooth , although initrd images size were slightly different in these cases. Anyway i was able to boot with new kernel both times. scsi and Gb interfaces drivers seems ok.
Previous Topic: *SOLVED* arp entries on HN
Next Topic: SSH connection closed at node!
Goto Forum:
  


Current Time: Wed Aug 14 10:36:07 GMT 2024

Total time taken to generate the page: 0.02861 seconds