[OpenAFS] afs_syscall(0x1c, 0x11, 0x1, 0xbfffe810, 0xbfffc3b0) = -1 ENOSYS (Function not implemented)

Marc Schmitt mschmitt@inf.ethz.ch
Thu, 16 Dec 2004 20:49:51 +0100


This is a multi-part message in MIME format.
--------------000909080605070009090505
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello all,

All of a sudden I have 6 RedHat 7.3 machines where AFS stopped working 
after a reboot because of this most annoying problem where afsd appears 
not to be able to communicate with the libafs module anymore. The 
machine did not get any new patches or anything. I've tried a lot of 
stuff to solve the problem to no avail.

I found many references on the list where users had the same problem but 
nobody was ever capable of solving it unless the machines was completely 
re-installed from scratch.

The module truly is loaded:

cat /proc/ksyms | grep afs_syscall
f89f8660 afs_syscall_icreate    [libafs-2.4.20-30.7.legacy]
f89f8680 afs_syscall_iincdec    [libafs-2.4.20-30.7.legacy]
f89fd3e0 afs_syscall    [libafs-2.4.20-30.7.legacy]
f89fc6a0 afs_syscall_call       [libafs-2.4.20-30.7.legacy]
f8a00a70 afs_syscall_pioctl     [libafs-2.4.20-30.7.legacy]
f89f8670 afs_syscall_iopen      [libafs-2.4.20-30.7.legacy]

But afsd does not see it (c.f. attachment).

Then I thought I'd give the unstable branch a try, but versions 
1.3.[75|76] do not compile under RedHat 7.3, the module compilation 
bails out with:

gcc -pipe -I. -I.. -I../nfs -I/usr/src/redhat/BUILD/openafs-1.3.76/src 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/afs 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/afs/LINUX 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/config 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/rx/LINUX 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/rxkad 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/rxkad/domestic 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/util 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/afs 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/afs/LINUX 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/util 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/rxkad 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/config 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/fsint 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/vlserver 
-I/usr/src/redhat/BUILD/openafs-1.3.76/include 
-I/usr/src/redhat/BUILD/openafs-1.3.76/include/afs    -O2 
-fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing 
-fno-common -pipe -march=pentium -D__KERNEL__ -DKERNEL -D_KERNEL 
-DMODULE -DREDHAT_FIX -DCPU=586 -I. -I../ 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/config 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/rx 
-I/usr/src/redhat/BUILD/openafs-1.3.76/src/rxstat -c 
/usr/src/redhat/BUILD/openafs-1.3.76/src/afs/LINUX/osi_vnodeops.c
In file included from 
/usr/src/redhat/BUILD/openafs-1.3.76/src/afs/LINUX/osi_vnodeops.c:33:
../h/mm_inline.h:28: warning: initialization makes integer from pointer 
without a cast
../h/mm_inline.h:28: initializer element is not computable at load time
/usr/src/redhat/BUILD/openafs-1.3.76/src/afs/LINUX/osi_vnodeops.c: In 
function `afs_linux_unlink':
/usr/src/redhat/BUILD/openafs-1.3.76/src/afs/LINUX/osi_vnodeops.c:1200: 
warning: assignment from incompatible pointer type
make[4]: *** [osi_vnodeops.o] Error 1
make[4]: Leaving directory 
`/usr/src/redhat/BUILD/openafs-1.3.76/src/libafs/MODLOAD-2.4.20-30.7.legacy-i386-SP'
make[3]: *** [linux_compdirs] Error 2
make[3]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.3.76/src/libafs'
make[2]: *** [libafs] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.3.76'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.3.76'
make: *** [only_libafs] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.24020 (%build)


Any help is appreciated for either problem. Thanks.

	Marc

--------------000909080605070009090505
Content-Type: text/plain;
 name="strace.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="strace.txt"

execve("/usr/vice/etc/afsd", ["/usr/vice/etc/afsd", "-memcache"], [/* 23 vars */]) = 0
uname({sys="Linux", node="frey", ...})  = 0
brk(0)                                  = 0x8070590
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=109593, ...}) = 0
old_mmap(NULL, 109593, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)                                = 0
open("/lib/libresolv.so.2", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\'\0"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=68925, ...}) = 0
old_mmap(NULL, 69408, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4002f000
mprotect(0x4003d000, 12064, PROT_NONE)  = 0
old_mmap(0x4003d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe000) = 0x4003d000
old_mmap(0x4003e000, 7968, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4003e000
close(3)                                = 0
open("/lib/i686/libc.so.6", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0Pv\1B4\0"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1402035, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40040000
old_mmap(0x42000000, 1264960, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x42000000
mprotect(0x4212c000, 36160, PROT_NONE)  = 0
old_mmap(0x4212c000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12c000) = 0x4212c000
old_mmap(0x42131000, 15680, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x42131000
close(3)                                = 0
munmap(0x40014000, 109593)              = 0
brk(0)                                  = 0x8070590
brk(0x80705c0)                          = 0x80705c0
brk(0x8071000)                          = 0x8071000
brk(0x8072000)                          = 0x8072000
open("/usr/vice/etc/ThisCell", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=8, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
read(3, "ethz.ch\n", 4096)              = 8
close(3)                                = 0
munmap(0x40014000, 4096)                = 0
stat64("/usr/vice/etc/CellServDB", {st_mode=S_IFREG|0644, st_size=338, ...}) = 0
open("/usr/vice/etc/CellServDB", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=338, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
read(3, ">ethz.ch                #Swiss F"..., 4096) = 338
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40014000, 4096)                = 0
open("/usr/vice/etc/CellAlias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/vice/etc/KeyFile", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/vice/etc/CellServDB", {st_mode=S_IFREG|0644, st_size=338, ...}) = 0
open("/usr/vice/etc/cacheinfo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
read(3, "/afs:/.afs_cache:70000\n", 4096) = 23
close(3)                                = 0
munmap(0x40014000, 4096)                = 0
open("/usr/vice/etc/AFSLog", O_RDWR)    = 3
close(3)                                = 0
brk(0x807b000)                          = 0x807b000
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, 0x8912, 0xbffede28)            = 0
ioctl(3, 0x8913, 0xbffede30)            = 0
ioctl(3, 0x8913, 0xbffede50)            = 0
ioctl(3, 0x891b, 0xbffede50)            = 0
ioctl(3, 0x8921, 0xbffede50)            = 0
close(3)                                = 0
open("/usr/vice/etc/NetInfo", O_RDONLY) = -1 ENOENT (No such file or directory)
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, 0x8912, 0xbffede28)            = 0
ioctl(3, 0x8913, 0xbffede30)            = 0
ioctl(3, 0x8913, 0xbffede50)            = 0
ioctl(3, 0x891b, 0xbffede50)            = 0
ioctl(3, 0x8921, 0xbffede50)            = 0
close(3)                                = 0
open("/usr/vice/etc/NetRestrict", O_RDONLY) = -1 ENOENT (No such file or directory)
afs_syscall(0x1c, 0x11, 0x1, 0xbfffdb10, 0xbfffb6b0) = -1 ENOSYS (Function not implemented)
fork()                                  = 15023
--- SIGCHLD (Child exited) ---
fork()                                  = 15024
--- SIGCHLD (Child exited) ---
fork()                                  = 15025
--- SIGCHLD (Child exited) ---
afs_syscall(0x1c, 0x24, 0x1, 0x68, 0xbfffb6c0) = -1 ENOSYS (Function not implemented)
fstat64(1, {st_mode=S_IFREG|0644, st_size=4629, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
afs_syscall(0x1c, 0x6, 0x806e8a0, 0xffffffff, 0xbfffb6c0) = -1 ENOSYS (Function not implemented)
afs_syscall(0x1c, 0x22, 0x806d080, 0xffffffff, 0xbfffb6c0) = -1 ENOSYS (Function not implemented)
afs_syscall(0x1c, 0x1d, 0xbfffb690, 0x8071304, 0xbfffb640) = -1 ENOSYS (Function not implemented)
afs_syscall(0x1c, 0x23, 0x806f100, 0, 0xbfffb6c0) = -1 ENOSYS (Function not implemented)
fork()                                  = 15026
afsd: Error -1 in basic initialization.
Adding cell 'ethz.ch': error -1
--- SIGCHLD (Child exited) ---
fork()                                  = 15027
afsd: Error -1 in basic initialization.
Adding cell 'ethz.ch': error -1
afsd: No check server daemon in client.
--- SIGCHLD (Child exited) ---
fork()                                  = 15028
afsd: Error -1 in basic initialization.
Adding cell 'ethz.ch': error -1
--- SIGCHLD (Child exited) ---
fork()                                  = 15029
afsd: Error -1 in basic initialization.
Adding cell 'ethz.ch': error -1
--- SIGCHLD (Child exited) ---
afs_syscall(0x1c, 0x8, 0x806d480, 0, 0xbfffb6c0) = -1 ENOSYS (Function not implemented)
afs_syscall(0x1c, 0x64, 0x1, 0, 0xbfffb6c0) = -1 ENOSYS (Function not implemented)
fork()                                  = 15030
afsd: Error -1 in basic initialization.
Adding cell 'ethz.ch': error -1
afsd: All AFS daemons started.
--- SIGCHLD (Child exited) ---
mount("AFS", "/afs", "afs", , 0)        = -1 EINVAL (Invalid argument)
write(1, "afsd: Error -1 in basic initiali"..., 137afsd: Error -1 in basic initialization.
Adding cell 'ethz.ch': error -1
afsd: All AFS daemons started.
afsd: Can't mount AFS on /afs(22)
) = 137
munmap(0x40014000, 4096)                = 0
_exit(1)                                = ?

--------------000909080605070009090505--