• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] OpenAFS client unter 12.1

Hallo!

Ich möchte gerne OpenAFS verwenden, ein Netzwerkdateisystem, das weltweit viele Server einbindet, die auf die dann beispielsweise über /afs/desy.de/... zugegriffen werden kann.

Im Prinzip habe ich mit dem Update Suse 11.3->12.1 gewartet, bis der AFS-Client im filesystems-Repository auftauchte, weil ich es eben permanent benötige.
Als es so weit war, habe ich zum Testen Suse 12.1 in einer VirtualBox installiert, und auch OpenAFS installiert. Funktioniert alles tadellos.
Daher habe ich das Update auch auf meinen Laptop gezogen. Wenn ich nun den openafs-Client starte, gibts das hier:

Code:
Dec 21 15:35:20 linux-mhrz kernel: [ 5937.962593] libafs: module license 'http://www.openafs.org/dl/license10.html' taints kernel.
Dec 21 15:35:20 linux-mhrz kernel: [ 5937.962600] Disabling lock debugging due to kernel taint
Dec 21 15:35:20 linux-mhrz kernel: [ 5938.060146] enabling dynamically allocated vcaches
Dec 21 15:35:20 linux-mhrz kernel: [ 5938.060151] Starting AFS cache scan...
Dec 21 15:35:20 linux-mhrz kernel: [ 5938.165382] vmap allocation for size 135168 failed: use vmalloc=<size> to increase size.
Dec 21 15:35:21 linux-mhrz kernel: [ 5939.164382] vmap allocation for size 135168 failed: use vmalloc=<size> to increase size.
Dec 21 15:35:22 linux-mhrz kernel: [ 5940.164235] vmap allocation for size 135168 failed: use vmalloc=<size> to increase size.
Dec 21 15:35:23 linux-mhrz kernel: [ 5941.164376] vmap allocation for size 135168 failed: use vmalloc=<size> to increase size.
Dec 21 15:35:24 linux-mhrz kernel: [ 5942.164235] vmap allocation for size 135168 failed: use vmalloc=<size> to increase size.
Dec 21 15:35:25 linux-mhrz kernel: [ 5943.165374] vmap allocation for size 135168 failed: use vmalloc=<size> to increase size.
Dec 21 15:35:26 linux-mhrz kernel: [ 5944.164293] vmap allocation for size 135168 failed: use vmalloc=<size> to increase size.
Dec 21 15:35:27 linux-mhrz kernel: [ 5945.164254] vmap allocation for size 135168 failed: use vmalloc=<size> to increase size.
Dec 21 15:35:28 linux-mhrz kernel: [ 5946.164235] vmap allocation for size 135168 failed: use vmalloc=<size> to increase size.
Dec 21 15:35:29 linux-mhrz kernel: [ 5947.164230] vmap allocation for size 135168 failed: use vmalloc=<size> to increase size.
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.164203] afs_osi_Alloc: Can't vmalloc 131072 bytes.
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.164211] afsd:  memCache allocation failure at 101632 KB.
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.180864] afsd: memory cache too large for available memory.
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.180871] afsd: AFS files cannot be accessed.
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.180874] 
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.186705] found 0 non-empty cache files (0%).
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.190964] *pde = 00000000 
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.190995] Modules linked in: libafs(P) nls_iso8859_1 nls_cp437 vfat fat ip6t_LOG xt_tcpudp xt_pkttype ipt_LOG xt_limit rfcomm bnep ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw xt_NOTRACK ipt_REJECT iptable_raw iptable_filter af_packet ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables cpufreq_conservative cpufreq_userspace cpufreq_powersave microcode acpi_cpufreq mperf fuse yenta_socket ipw2200 libipw snd_intel8x0m b44 dm_mod mmc_block snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_timer snd ssb firewire_ohci firewire_core soundcore cfg80211 pcmcia_rsrc pcmcia snd_page_alloc sr_mod crc_itu_t iTCO_wdt i2c_i801 pcmcia_core lib80211 video iTCO_vendor_support cdrom sg pcspkr battery ac joydev sdhci_pci sdhci mmc_core ecb btusb button bluetooth dell_laptop rfkill dcdbas autofs4 usbhid hid uhci_hcd rtc_cmos thermal radeon ttm drm_kms_helper ehci_hcd ata
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.191583] 
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.191592] Pid: 5113, comm: afs_cachetrim Tainted: P            3.1.0-1.2-default #1 Dell Inc. Inspiron 9300                   /0C5668
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.191632] EIP: 0060:[<fa590b0c>] EFLAGS: 00010206 CPU: 0
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.191666] EIP is at afs_GetDownD.isra.9+0x18c/0x890 [libafs]
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.191683] EAX: 00000004 EBX: 000007dd ECX: fa5ffbf0 EDX: 00000000
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.191702] ESI: fa5ffbd0 EDI: 00000000 EBP: 46f1e6a0 ESP: e21a5e48
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.191721]  DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.191769]  7f0b4f69 000000ac 00000000 00989680 f6a4d5c0 7f06562e fa5ffbd0 f10c1280
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.191816]  00000003 00000000 00000000 00000004 00000010 00000001 f112a0f0 00000000
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.191863]  e21a5fb8 f3d9a3c0 f3d9a0c0 f112a0f0 00000000 00000000 f6a4d5c0 00000000
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.192015]  [<fa59166a>] afs_CacheTruncateDaemon+0x10a/0x4b0 [libafs]
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.192015]  [<fa5d9de5>] afsd_thread+0x3f5/0x620 [libafs]
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.192015]  [<c068ab26>] kernel_thread_helper+0x6/0xd
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.230006] ---[ end trace c451f10066d62933 ]---
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.190871] BUG: unable to handle kernel paging request at 46f1e764
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.190912] IP: [<fa590b0c>] afs_GetDownD.isra.9+0x18c/0x890 [libafs]
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.190978] Oops: 0000 [#1] SMP 
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.191738] Process afs_cachetrim (pid: 5113, ti=e21a4000 task=f112a0f0 task.ti=e21a4000)
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.191760] Stack:
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.191909] Call Trace:
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.192015] Code: 00 00 00 00 89 7c 24 10 8d b4 26 00 00 00 00 0f b6 14 06 f6 c2 46 0f 85 8b 00 00 00 8b 7c 24 18 8b 2c 87 85 ed 74 1a 8b 7c 24 24 
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.192015] EIP: [<fa590b0c>] afs_GetDownD.isra.9+0x18c/0x890 [libafs] SS:ESP 0068:e21a5e48
Dec 21 15:35:30 linux-mhrz kernel: [ 5948.192015] CR2: 0000000046f1e764
Dec 21 15:40:20 linux-mhrz systemd[1]: openafs-client.service operation timed out. Terminating.

Da ist die Sache mit der vmap allocation, das kann ich beseitigen, indem ich beim Booten ein vmemcache=... o.ä. mitgebe, allerdings ändert das nichts an meinem grundlegenden Problem.
Ich habe mal statt dem Desktop-Kernel den Standard-Kernel (und das entsprechende AFS-Modul) probiert, das macht keinen Unterschied.

Auch habe ich mein System nochmal komplett neu aufgesetzt, und direkt zu Beginn AFS installiert. So hoffte ich, möglichst nahe an der Installation in meiner VBox zu bleiben, aber auch das ändert nix.

Ich bin jetzt jedenfalls ratlos, aber vielleicht kennt ja wer das Problem und hat ne Lösung parat.


Wer spielen möchte: OpenAFS client aus 'filesystems' installieren, und den Client danach starten. Danach existiert das Verzeichnis /afs, und man sollte z.B. ein 'cd /afs/desy.de' machen können. Aber man sollte damit rechnen, nach dem Starten des Dienstes den Rechner hart neustarten zu müssen.
 

giopoupr

Newbie
Mit dem neuen openafs-Package aus dem Suse Reposotory (Stand 5. Januar) und Disk Cache statt Memory Cache geht es jetzt bei mir
 
Hallo!

Tatsächlich, da gibt es ein Update. Das scheint aber etwas schlampig zu sein, ich habe alle openAFS-Pakete deinstalliert, bei der Neuinstallation hat es nicht erkannt, daß das Kernelmodul auch benötigt wird... Aber gut.

Mir war nicht aufgefallen, daß openAFS anscheinend nur den Cache benutzt, und hatte die o.g. Meldungen nicht darauf bezogen.

Ich danke dir für den Hinweis, nu funktioniert es endlich!

Vielleicht nochmal zur Vollständigkeit: Die Konfiguration steht in

/etc/sysconfig/openafs-client

Hierin wie von dir angegeben :
Code:
## Type:        yesno
## Default:     yes
#
# use memory-only cache
#
MEMCACHE="no"

Anschließend taucht das Problem auf, daß mein cache-Verzeichnis keine eigene Partition ist, und er dann mit der automatischen Bestimmung der Cache-Größe Probleme hat...

Code:
## Type:        string(AUTOMATIC)
## Default:     AUTOMATIC
#
# if you set CACHESIZE to "AUTOMATIC", it will automatically be chosen
# deduced by parition sizes (does not work if your cache is on / or
# /usr or /var) or by machine memory size for memory-only cache,
# otherwise the value in (1k-blocks) specified here will be used.
#
CACHESIZE="50000"
 
Oben