Page 1 of 1

Kernel update 2.6.18-92.1.17.el5 just uninstalled drbd drive

Posted: 2008/11/10 09:12:55
by simonb
It seems the latest kernel update causes the drbd drivers to be erased.

From yum.log...

Nov 05 18:52:50 Installed: kernel-xen.x86_64 2.6.18-92.1.17.el5
Nov 05 18:52:58 Erased: kmod-drbd82-xen
Nov 05 18:52:58 Erased: kmod-drbd82

This just caused two production machines to lock up and hard reboot themselves. Nasty.

Re: Kernel update 2.6.18-92.1.17.el5 just uninstalled drbd drivers

Posted: 2008/11/10 13:01:56
by toracat
Hmmm... that is indeed weird. Before the kernel update, did you have these two:

kmod-drbd82-8.2.6-2.x86_64.rpm
kmod-drbd82-xen-8.2.6-2.x86_64.rpm

installed on your system? And you have been using kmod-drbd82, not kmod-drbd, is this correct?

Re: Kernel update 2.6.18-92.1.17.el5 just uninstalled drbd drivers

Posted: 2008/11/10 13:39:25
by simonb
[quote]
toracat wrote:
Hmmm... that is indeed weird. Before the kernel update, did you have these two:

kmod-drbd82-8.2.6-2.x86_64.rpm
kmod-drbd82-xen-8.2.6-2.x86_64.rpm

installed on your system? And you have been using kmod-drbd82, not kmod-drbd, is this correct?[/quote]

This is what I have now...

rpm -qa | grep drbd
kmod-drbd82-xen-8.2.6-1.2.6.18_92.1.10.el5
drbd82-8.2.6-1.el5.centos
kmod-drbd82-8.2.6-2
kmod-drbd82-xen-8.2.6-2
kmod-drbd82-8.2.6-1.2.6.18_92.1.10.el5

...which would appear to include the right package.

On one machine I simply uninstalled the most recent kernel and did a reboot. I found I had to do "chkconfig --add drbd" again but after that drbd came back to life. So I'm a bit mystified as to what actually got erased.

Re: Kernel update 2.6.18-92.1.17.el5 just uninstalled drbd drivers

Posted: 2008/11/10 15:19:58
by toracat
Could you show us the output of:

ls -l `find /lib/modules -name drbd.ko`

I'm curious to know how the drbd module is now installed on your systems. I expect you would find it in the weak-updates directory (in addition to the original one. The 'erase' message you saw might be the erasure of an older version.

By the way, why do you have both standard and xen versions? Is your running kernel xen?

Re: Kernel update 2.6.18-92.1.17.el5 just uninstalled drbd drivers

Posted: 2008/11/11 08:56:17
by simonb
The non-Xen kernels are redundant and I have now deleted them. The machines in question both are Dom0.

The result of ls -l `find /lib/modules -name drbd.ko` is as follows...
-rw-r--r-- 1 root root 2945057 Aug 7 23:50 /lib/modules/2.6.18-92.1.10.el5xen/extra/drbd82/drbd.ko
lrwxrwxrwx 1 root root 55 Oct 20 21:04 /lib/modules/2.6.18-92.1.10.el5xen/weak-updates/drbd82/drbd.ko -> /lib/modules/2.6.18-92.1.13.el5xen/extra/drbd82/drbd.ko
-rw-r--r-- 1 root root 2945057 Oct 3 17:30 /lib/modules/2.6.18-92.1.13.el5xen/extra/drbd82/drbd.ko
lrwxrwxrwx 1 root root 54 Sep 25 21:02 /lib/modules/2.6.18-92.1.13.el5xen/weak-updates/drbd82/drbd.ko -> /lib/modules/2.6.18-92.1.6.el5xen/extra/drbd82/drbd.ko

The last symlink to /lib/modules/2.6.18-92.1.6.el5xen/extra/drbd82/drbd.ko is a broken link.

The installed kernels are as follows...
rpm -q kernel-xen
kernel-xen-2.6.18-92.1.10.el5
kernel-xen-2.6.18-92.1.13.el5

So it figures that a link to a 2.6.18-92.1.6 kernel would be broken.

It may be that the erased drbd82 packages were old anyway, as you suggest. The problem in that case is that there were no new drbd82 modules to accompany the latest kernel update and that this wasn't declared as a dependency to be detected by yum/rpm.