Hi !
Not very blocking because the smp module loads perfectly.
# yum --exclude=kmod-drbd*\plus* install kmod-drbd Setting up Install Process Setting up repositories Reading repository metadata in from local files Excluding Packages in global exclude list Finished Reducing CentOS-4 - Plus to included packages only Finished Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package kmod-drbd.i686 0:0.7.24-1.2.6.9_55.0.2.EL set to be updated --> Running transaction check
Dependencies Resolved
============================================================================= Package Arch Version Repository Size ============================================================================= Installing: kmod-drbd i686 0.7.24-1.2.6.9_55.0.2.EL extras 472 k
Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 472 k Is this ok [y/N]: y Downloading Packages: Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: kmod-drbd ######################### [1/1] WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol _spin_unlock_irq WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol _spin_unlock WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol _spin_unlock_irqrestore WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol _spin_lock_irq WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol del_timer_sync WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol _spin_lock_irqsave WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol _spin_lock
Installed: kmod-drbd.i686 0:0.7.24-1.2.6.9_55.0.2.EL Complete!
# uname -a Linux *** 2.6.9-55.0.2.EL #1 Tue Jun 26 14:08:18 EDT 2007 i686 i686 i386 GNU/Linux
# modprobe drbd FATAL: Error inserting drbd (/lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko): Invalid module format
(PS: I think something really needs to be done with the --exclude / plus issue)
/!\ sorry, inverted smp and no-smp in the subject !
Le Mon, 30 Jul 2007 16:32:32 +0200 Martin Hamant mh@accelance.fr écrivait:
Hi !
Not very blocking because the smp module loads perfectly.
# yum --exclude=kmod-drbd*\plus* install kmod-drbd Setting up Install Process Setting up repositories Reading repository metadata in from local files Excluding Packages in global exclude list Finished Reducing CentOS-4 - Plus to included packages only Finished Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package kmod-drbd.i686 0:0.7.24-1.2.6.9_55.0.2.EL set to be updated --> Running transaction check
Dependencies Resolved
============================================================================= Package Arch Version Repository Size ============================================================================= Installing: kmod-drbd i686 0.7.24-1.2.6.9_55.0.2.EL extras 472 k
Transaction Summary
Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 472 k Is this ok [y/N]: y Downloading Packages: Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: kmod-drbd ######################### [1/1] WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol _spin_unlock_irq WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol _spin_unlock WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol _spin_unlock_irqrestore WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol _spin_lock_irq WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol del_timer_sync WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol _spin_lock_irqsave WARNING: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko needs unknown symbol _spin_lock
Installed: kmod-drbd.i686 0:0.7.24-1.2.6.9_55.0.2.EL Complete!
# uname -a Linux *** 2.6.9-55.0.2.EL #1 Tue Jun 26 14:08:18 EDT 2007 i686 i686 i386 GNU/Linux
# modprobe drbd FATAL: Error inserting drbd (/lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko): Invalid module format
(PS: I think something really needs to be done with the --exclude / plus issue)
On 7/30/07, Martin Hamant mh@accelance.fr wrote:
# uname -a Linux *** 2.6.9-55.0.2.EL #1 Tue Jun 26 14:08:18 EDT 2007 i686 i686 i386 GNU/Linux
# modprobe drbd FATAL: Error inserting drbd (/lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko): Invalid module format
What do you see with this command?
/sbin/modinfo /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko
Akemi
On 7/30/07, Martin Hamant mh@accelance.fr wrote:
# uname -a Linux *** 2.6.9-55.0.2.EL #1 Tue Jun 26 14:08:18 EDT 2007 i686 i686 i386 GNU/Linux
# modprobe drbd FATAL: Error inserting drbd (/lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko): Invalid module format
What do you see with this command?
/sbin/modinfo /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko
Akemi
I had the same unknown symbol errors when installing the x86_64 kmod-drbd modules from the centosplus repo. I resolved this myself by rebuilding the source RPM.
-ken
On 7/30/07, Ken Price kprice@nowyouknow.net wrote:
On 7/30/07, Martin Hamant mh@accelance.fr wrote:
# uname -a Linux *** 2.6.9-55.0.2.EL #1 Tue Jun 26 14:08:18 EDT 2007 i686 i686 i386 GNU/Linux
# modprobe drbd FATAL: Error inserting drbd (/lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko): Invalid module format
What do you see with this command?
/sbin/modinfo /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko
Akemi
I had the same unknown symbol errors when installing the x86_64 kmod-drbd modules from the centosplus repo. I resolved this myself by rebuilding the source RPM.
-ken
Yes, I did, too. This is under investigation now.
Akemi
Le Mon, 30 Jul 2007 10:39:38 -0700 "Akemi Yagi" amyagi@gmail.com écrivait:
On 7/30/07, Martin Hamant mh@accelance.fr wrote:
# uname -a Linux *** 2.6.9-55.0.2.EL #1 Tue Jun 26 14:08:18 EDT 2007 i686 i686 i386 GNU/Linux
# modprobe drbd FATAL: Error inserting drbd (/lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko): Invalid module format
What do you see with this command?
/sbin/modinfo /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko
Hi !
Here it is: # /sbin/modinfo /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko filename: /lib/modules/2.6.9-55.0.2.EL/extra/drbd.ko author: Philipp Reisner phil@linbit.com, Lars Ellenberg lars@linbit.com description: drbd - Distributed Replicated Block Device v0.7.24 license: GPL parm: use_nbd_major:DEPRECATED! use nbd device major nr (43) instead of the default 147 parm: minor_count:Maximum number of drbd devices (1-255) parm: disable_bd_claim:DONT USE! disables block device claiming vermagic: 2.6.9-55.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4 depends:
Martin Hamant wrote:
Hi !
Not very blocking because the smp module loads perfectly.
<snip>
OK ... there was a problem with some of the drbd modules (all except the smp ones). This problem is now fixed and the changes are syncing to the mirrors.
The new version is: kmod-drbd-0.7.24-2.<kernel-version>.
The old (broken) ones have been removed.
(PS: I think something really needs to be done with the --exclude / plus issue)
OK ... For the drbd-kmod*.plus kernels, they are now in the CentOSPlus directory / Repository. If you are using CentOSPlus kernel, you need to also get your module for DRBD (or XFS) from there too.
If you are using the Base Kernel (non-Plus one) then you would get your DRBD Modules (or XFS modules) from extras.
This should prevent the exclude requirement to get non-Plus kernel modules.
SO ... if you need a module for the base kernel, it is in extras ... if you need a module for the centosplus kernel, it is in centosplus.
Thanks, Johnny Hughes
Le Tue, 31 Jul 2007 05:17:08 -0500 Johnny Hughes johnny@centos.org écrivait:
Martin Hamant wrote:
Hi !
Not very blocking because the smp module loads perfectly.
<snip>
OK ... there was a problem with some of the drbd modules (all except the smp ones). This problem is now fixed and the changes are syncing to the mirrors.
The new version is: kmod-drbd-0.7.24-2.<kernel-version>.
The old (broken) ones have been removed.
Yes ! Thank you :)
(PS: I think something really needs to be done with the --exclude / plus issue)
OK ... For the drbd-kmod*.plus kernels, they are now in the CentOSPlus directory / Repository. If you are using CentOSPlus kernel, you need to also get your module for DRBD (or XFS) from there too.
If you are using the Base Kernel (non-Plus one) then you would get your DRBD Modules (or XFS modules) from extras.
This should prevent the exclude requirement to get non-Plus kernel modules.
SO ... if you need a module for the base kernel, it is in extras ... if you need a module for the centosplus kernel, it is in centosplus.
Sounds great.
The last problem is if "plus" and "extras" repos are both activated: it occurs for centosbase/centosplus kernels the same way as for kmod-drbd... because last version is determined by the text pattern :(
The centosplus repo should be activated with care...
About updating drbd modules, what is the current behavior when you issue a "yum update" ? Is the new kmod-drbd is install automatically (like kernels are) ? With the precedent package you'll had to install the new one manually if you didn't want to get stuck with a new fresh default kernel without any drbd support ^^
I'm asking this because it becomes complicated between servers which have drbd modules installed, and others. "yum update" on a drbd-ready machine should not be rebooted after an kernel upgrade as long as the corresponding kmod has not been released (ie: editing grub.conf to change default entry for a while in case of a unexpected reboot).
I don't know how it's possible to improve this, maybe a yum plugin which could detect any drbd modules and if it's matches with any installed kernels... what do you think ?
Thanks to you :)
Le Tue, 31 Jul 2007 14:16:54 +0200 Martin Hamant mh@accelance.fr écrivait:
(snip)
I don't know how it's possible to improve this, maybe a yum plugin which could detect any drbd modules and if it's matches with any installed kernels... what do you think ?
Thanks to you :)
Hmm in other words, I can contribute if something started to improve the system ;)
Cheers
On Fri, 2007-08-03 at 13:49 +0200, Martin Hamant wrote:
Le Tue, 31 Jul 2007 14:16:54 +0200 Martin Hamant mh@accelance.fr écrivait:
(snip)
I don't know how it's possible to improve this, maybe a yum plugin which could detect any drbd modules and if it's matches with any installed kernels... what do you think ?
Thanks to you :)
Hmm in other words, I can contribute if something started to improve the system ;)
I have written a plugin to carry over modules that are kabi compatible if no new package was found to cover for the module for a new kernel. The latest alpha version is available from:
http://people.centos.org/~daniel/code/yum/3.0/yum-kmodorphans/
Please don't use this for production machines! There are still some glitches that need fixing, and the policy of what to handle still has to be finalized.
-- Daniel
Le Fri, 03 Aug 2007 14:08:32 +0200 Daniel de Kok danieldk@pobox.com écrivait:
On Fri, 2007-08-03 at 13:49 +0200, Martin Hamant wrote:
Le Tue, 31 Jul 2007 14:16:54 +0200 Martin Hamant mh@accelance.fr écrivait:
(snip)
I don't know how it's possible to improve this, maybe a yum plugin which could detect any drbd modules and if it's matches with any installed kernels... what do you think ?
Thanks to you :)
Hmm in other words, I can contribute if something started to improve the system ;)
I have written a plugin to carry over modules that are kabi compatible if no new package was found to cover for the module for a new kernel. The latest alpha version is available from:
http://people.centos.org/~daniel/code/yum/3.0/yum-kmodorphans/
Please don't use this for production machines! There are still some glitches that need fixing, and the policy of what to handle still has to be finalized.
Thank you Daniel, I'll take a look !