[OpenAFS] OpenAFS 1.2.8 and Redhat 8.0

Mike Esler mike.esler@nrlssc.navy.mil
07 Feb 2003 16:06:04 -0600


Hello, 

I'm trying to install the latest RPM release builds of OpenAFS on Redhat
8.0 but I'm running into a module problem. 

Initially, /sbin/service afs start would fail completely, and I
determined that it couldn't find a suitable module to load and the 
startup script was exiting. 

After some playing, I found that I had to set the LIBAFS environment
variable in the /etc/sysconfig/afs file on my system to tell it exactly 
what kernel module to load (libafs-2.4.18-14-athlon) 

After doing this, the afs kernel module loads, but it doesn't function
correctly (I get kernel error messages, and afs doesn't work.)  What am
I doing wrong? 

Thanks in advance.  Below will be interesting logs and info on my
particular setup (which is basically stock.) 




Kernel Logs:

Starting AFS cache scan...Can't open inode 111417 
Unable to handle kernel paging request at virtual address ffffffff 
printing eip: 
d0a40aa0 
*pde = 00001063 
*pte = 00000000 
Oops: 0002 
libafs-2.4.18-14-athlon nfs lockd sunrpc 3c59x iptable_filter ip_tables
moused 
CPU:    0 
EIP:    0010:[<d0a40aa0>]    Tainted: PF 
EFLAGS: 00010286 

EIP is at osi_Panic [libafs-2.4.18-14-athlon] 0x20 (2.4.18-14) 
eax: 00000018   ebx: c998a040   ecx: 00000001   edx: cce6df7c 
esi: cd22b8c0   edi: cd22b93c   ebp: 0001b339   esp: c9c33bf4 
ds: 0018   es: 0018   ss: 0018 
Process afsd (pid: 942, stackpage=c9c33000) 
Stack: d0a5e4f2 0001b339 fffffffb fffffffb cd22b8c0 cd22b93c 0001b339
d0a4a6ad 
       d0a5e4f2 0001b339 fffffffb fffffffb cd22bac0 00000010 fffffffb
00000000 
       d0c59000 00000000 00000001 d0a10bc1 0001b339 00000000 000003ae
000003ae 
Call Trace: [<d0a5e4f2>] .rodata.str1.1 [libafs-2.4.18-14-athlon] 0xe02
(0xc9c33bf4)) 
[<d0a4a6ad>] osi_UFSOpen [libafs-2.4.18-14-athlon] 0x10d (0xc9c33c10)) 
[<d0a5e4f2>] .rodata.str1.1 [libafs-2.4.18-14-athlon] 0xe02
(0xc9c33c14)) 
[<d0a10bc1>] afs_InitCacheFile [libafs-2.4.18-14-athlon] 0x111
(0xc9c33c40)) 
[<d0a4ed77>] afs_syscall_call [libafs-2.4.18-14-athlon] 0x587
(0xc9c33c90)) 
[<c01ab8be>] ide_do_request [kernel] 0xce (0xc9c33cc4)) 
[<c0117c08>] schedule [kernel] 0x178 (0xc9c33ce4)) 
[<c011fc5a>] __run_task_queue [kernel] 0x5a (0xc9c33cfc)) 
[<c01412f0>] getblk [kernel] 0x30 (0xc9c33d20)) 
[<c014157c>] bread [kernel] 0x2c (0xc9c33d3c)) 
[<d0825364>] is_tree_node [reiserfs] 0x74 (0xc9c33d58)) 
[<d0825637>] search_by_key [reiserfs] 0x2c7 (0xc9c33d6c)) 
[<d081cffe>] reiserfs_dirty_inode [reiserfs] 0x7e (0xc9c33dac)) 
[<d08112f9>] search_by_entry_key [reiserfs] 0xb9 (0xc9c33dd8)) 
[<d0831e24>] .rodata [reiserfs] 0x23c (0xc9c33df0)) 
[<d08250a1>] pathrelse [reiserfs] 0x21 (0xc9c33df8)) 
[<d08189f7>] reiserfs_readdir [reiserfs] 0x3c7 (0xc9c33e08)) 
[<c012acb8>] do_wp_page [kernel] 0x58 (0xc9c33ec0)) 
[<c012b664>] handle_mm_fault [kernel] 0x114 (0xc9c33ee0)) 
[<d0a4f31f>] afs_syscall [libafs-2.4.18-14-athlon] 0x18f (0xc9c33f40)) 
[<c01400af>] fput [kernel] 0xcf (0xc9c33f7c)) 
[<c013e78e>] sys_close [kernel] 0x4e (0xc9c33fb0)) 
[<c01090ff>] system_call [kernel] 0x33 (0xc9c33fc0)) 


Code: c6 05 ff ff ff ff 2a 83 c4 1c c3 90 8d 74 26 00 b8 d5 e1 a5 
<1>Unable to handle kernel paging request at virtual address d0a4bb0d 
printing eip: 
d0a4bb0d 
*pde = 01aef067 
*pte = 00000000 
Oops: 0000 
nfs lockd sunrpc 3c59x iptable_filter ip_tables mousedev keybdev hid
input usb 
CPU:    0 
EIP:    0010:[<d0a4bb0d>]    Tainted: PF 
EFLAGS: 00010296 

EIP is at __insmod_nfs_S.bss_L32 [nfs] 0x5f849 (2.4.18-14) 
eax: 00000000   ebx: cc26af00   ecx: c9ac1f08   edx: 00000000 
esi: c9ac0000   edi: cc26af10   ebp: c9ac1f54   esp: c9ac1f34 
ds: 0018   es: 0018   ss: 0018 
Process afs_rxevent (pid: 951, stackpage=c9ac1000) 
Stack: c9ac1f5c c9c610c0 00000101 00000000 00000000 c9ac0000 00000000
00000000 
       00000000 c9ac0000 cc26af10 cc26af10 36346132 66646332 66393730
3e44270c 
       00000000 000001f4 00000000 d0a4b772 d0a79de0 000001f4 00000000
00000034 
Call Trace: [<c024123f>] sprintf [kernel] 0x1f (0xc9ac1fc0)) 
[<c010744e>] kernel_thread [kernel] 0x2e (0xc9ac1ff0)) 


Code:  Bad EIP value. 
sock_release(rx_socket) FIXME 
AFS: RX failed to initialize. 





Info on my system: 

sh-2.05b$ uname -a 
Linux ren.nrlssc.navy.mil 2.4.18-14 #1 Wed Sep 4 12:13:11 EDT 2002 i686
athlon i386 GNU/Linux 




sh-2.05b$ rpm -q kernel 
kernel-2.4.18-14  (I verified that this is the athlon kernel) 



OpenAFS packages installed (downloaded from http://www.openafs.org):
openafs-1.2.8-rh8.0.1.i386.rpm 
openafs-client-1.2.8-rh8.0.1.i386.rpm 
openafs-kernel-1.2.8-rh8.0.1.i386.rpm 
openafs-kernel-source-1.2.8-rh8.0.1.i386.rpm 
openafs-kpasswd-1.2.8-rh8.0.1.i386.rpm 
openafs-krb5-1.2.8-rh8.0.1.i386.rpm 



An /sbin/lsmod after starting afs: 
sh-2.05b$ /sbin/lsmod
Module                  Size  Used by    Tainted: PF
ide-cd                 33608   0 (autoclean)
cdrom                  33696   0 (autoclean) [ide-cd]
via82cxxx_audio        23480   0 (autoclean)
uart401                 8420   0 (autoclean) [via82cxxx_audio]
ac97_codec             13384   0 (autoclean) [via82cxxx_audio]
sound                  74228   0 (autoclean) [via82cxxx_audio uart401]
soundcore               6500   4 (autoclean) [via82cxxx_audio sound]
libafs-2.4.18-14-athlon  479376   0 (unused)
nfs                    82660   3 (autoclean)
lockd                  58096   1 (autoclean) [nfs]
sunrpc                 79420   1 (autoclean) [nfs lockd]
3c59x                  30608   1
iptable_filter          2412   0 (autoclean) (unused)
ip_tables              14840   1 [iptable_filter]
mousedev                5524   1
keybdev                 2976   0 (unused)
hid                    22244   0 (unused)
input                   5888   0 [mousedev keybdev hid]
usb-uhci               26188   0 (unused)
usbcore                77056   1 [hid usb-uhci]
reiserfs              199632   1