[OpenAFS] afsmodname getting it wrong?

Matt Cocker matt@cs.auckland.ac.nz
Mon, 24 Jun 2002 08:47:16 +1200


Hi

We are running openafs-1.2.4 and 1.2.5 clients/servers on Redhat Linux 
boxes and are having problems with afsmodname selecting the wrong 
kernels at start up if we use the i686 kernel. Here is the info from 
Symtable

# Symbol  Version       MinCPU  Module
#=======  ============  ======  ====================
iget4     17142487      -       2.4.18-3-athlon
 > sock_create=5056bd0b
iget4     1c443e56      -       2.4.18-3-i386
 > sock_create=fae5f706
iget4     smp_847728e5  -       2.4.18-3-i586.mp
 > sock_create=smp_1ea6201a
iget4     bd093f49      -       2.4.18-3-i586
 > sock_create=62edb064
iget4     smp_e0311e23  -       2.4.18-3-i686.mp
 > sock_create=smp_083c8c04
iget4     17142487      -       2.4.18-3-i686
 > sock_create=678f2269
iget4     smp_e0311e23  -       2.4.18-3
 > sock_create=smp_083c8c04

Here is afsmodname -d

Try 2.4.18-3-athlon (iget4=17142487)
get_ksym(iget4) => [addr=c0158b10, vers=smp_e0311e23, mod=KERNEL]
get_ksym(sock_create) => [addr=c01d5d80, vers=smp_083c8c04, mod=KERNEL]
Try 2.4.18-3-i386 (iget4=1c443e56)
Try 2.4.18-3-i586.mp (iget4=smp_847728e5)
Try 2.4.18-3-i586 (iget4=bd093f49)
Try 2.4.18-3-i686.mp (iget4=smp_e0311e23)
Try 2.4.18-3-i686 (iget4=17142487)
Try 2.4.18-3 (iget4=smp_e0311e23)
libafs-2.4.18-3.o

This causes all sorts of problems when the libafs-2.4.18-3.o kernel 
module tries to load. I fixed it by deleting the "iget4 smp_e0311e23  - 
2.4.18-3" line. But is there a better way?

Also on one machine there is no iget4 lines in /proc/ksyms

/etc/openafs/afsmodname -d
Try 2.4.18-4-athlon.mp (iget4=smp_e0311e23)
get_ksym(iget4) => not found
get_ksym(sock_create) => not found
Try 2.4.18-4-athlon (iget4=17142487)
Try 2.4.18-4-i386 (iget4=1c443e56)
Try 2.4.18-4-i586.mp (iget4=smp_847728e5)
Try 2.4.18-4-i586 (iget4=bd093f49)
Try 2.4.18-4-i686.bm (iget4=smp_453e301d)
Try 2.4.18-4-i686.mp (iget4=smp_e0311e23)
Try 2.4.18-4-i686 (iget4=17142487)
Try 2.4.18-4 (iget4=1c443e56)
Hmm...  I can't seem to find an AFS kernel module suitable for your Linux
kernel.  That means you will need to build or obtain a suitable module.
The following information may be of some use in obtaining assistance:
CPU Type:       686.intel.8
Linux version:  2.4.18-4 #1 Thu May 2 18:47:38 EDT 2002
RedHat release: Red Hat Linux release 7.3 (Valhalla)
Symbol versions:
get_ksym(__iget) => not found
get_ksym(__iget4) => not found
get_ksym(iget) => not found


Again a manual edit of the init.d script fixes it.

Cheers

Matt