Hi! I installed openafs on a new ubuntu (12.04) client machine and at first everything looked dandy. But then I noticed, that the machine would hang on shutdown (see log at the end). This is openafs 1.6.1-1 built via dkms (gcc-Version 4.6.3) from the sources as they come from the ubuntu package repo. I have this setup running on other machines (different hardware) without this problem. The kernel is 3.2.0-24-generic-pae.
I guess there is no simple answer on how to solve this, but I thought I'll let you know. For now I had to remove openafs from that machine completely. Thanks, Alex The hardware is: *processor : 0 vendor_id : AuthenticAMD cpu family : 20 model : 1 model name : AMD E-350 Processor stepping : 0 microcode : 0x5000028 cpu MHz : 800.000 cache size : 512 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 6 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc nonstop_tsc extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt arat npt lbrv svm_lock nrip_save pausefilter bogomips : 3199.81 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate * *afs: COLD shutting down of: vcaches... CB... afs... BkG... CTrunc... AFSDB... RxEvent... UnmaskRxkSignals... RxListener... ALL allocated tables... done enabling dynamically allocated vcaches Starting AFS cache scan...found 21 non-empty cache files (1%). ------------[ cut here ]------------ WARNING: at /build/buildd/linux-3.2.0/fs/sysfs/dir.c:481 sysfs_add_one+0x9b/0xd0() Hardware name: NT-A2400&NT-A3500 sysfs: cannot create duplicate filename '/devices/virtual/bdi/afs' Modules linked in: openafs(P) ufs qnx4 hfsplus hfs minix ntfs vfat msdos fat jfs xfs reiserfs ext2 ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp iptable_filter ip_tables x_tables bridge stp kvm_amd kvm rfcomm dm_crypt bnep parport_pc bluetooth ppdev snd_hda_codec_realtek arc4 snd_hda_codec_hdmi ums_realtek psmouse uas serio_raw ath9k mac80211 snd_hda_intel snd_hda_codec snd_hwdep k10temp ath9k_common ath9k_hw ath snd_pcm cfg80211 snd_seq_midi snd_rawmidi sp5100_tco i2c_piix4 snd_seq_midi_event snd_seq snd_timer snd_seq_device fglrx(P) snd mac_hid soundcore snd_page_alloc lp parport btrfs zlib_deflate libcrc32c vesafb usb_storage usbhid hid r8169 pata_atiixp [last unloaded: openafs] Pid: 25951, comm: afsd Tainted: P O 3.2.0-24-generic-pae #37-Ubuntu Call Trace: [<c105a512>] warn_slowpath_common+0x72/0xa0 [<c11a743b>] ? sysfs_add_one+0x9b/0xd0 [<c11a743b>] ? sysfs_add_one+0x9b/0xd0 [<c105a5e3>] warn_slowpath_fmt+0x33/0x40 [<c11a743b>] sysfs_add_one+0x9b/0xd0 [<c11a74c7>] create_dir+0x57/0xb0 [<c11a75c1>] sysfs_create_dir+0x71/0xb0 [<c12ad31d>] kobject_add_internal+0x8d/0x1d0 [<c11111b6>] ? pcpu_next_pop+0x36/0x50 [<c12ad282>] ? kobject_get+0x12/0x20 [<c12ad715>] kobject_add+0x35/0x80 [<c1382056>] device_add+0xd6/0x380 [<c138b089>] ? device_pm_init+0x49/0x70 [<c1382317>] device_register+0x17/0x20 [<c13823d1>] device_create_vargs+0xb1/0xe0 [<c1110100>] bdi_register+0x50/0x190 [<c110fd89>] ? bdi_init+0x189/0x1f0 [<fadc7694>] afs_fill_super+0x114/0x2a0 [openafs] [<c1146fc7>] mount_nodev+0x47/0xa0 [<fadc72ca>] afs_mount+0x1a/0x20 [openafs] [<fadc7580>] ? afs_root.isra.1+0x130/0x130 [openafs] [<c1147b66>] mount_fs+0x36/0x180 [<c11124cf>] ? __alloc_percpu+0xf/0x20 [<c115e83e>] ? alloc_vfsmnt+0xae/0x130 [<c115e951>] vfs_kern_mount+0x51/0xa0 [<c115fa7e>] do_kern_mount+0x3e/0xe0 [<c1161174>] do_mount+0x164/0x200 [<c11615ab>] sys_mount+0x6b/0xa0 [<c15af11f>] sysenter_do_call+0x12/0x28 ---[ end trace 011ba5b5dc2b6096 ]--- kobject_add_internal failed for afs with -EEXIST, don't try to register things with the same name in the same directory. Pid: 25951, comm: afsd Tainted: P W O 3.2.0-24-generic-pae #37-Ubuntu Call Trace: [<c1592732>] ? printk+0x2d/0x2f [<c12ad3c8>] kobject_add_internal+0x138/0x1d0 [<c12ad715>] kobject_add+0x35/0x80 [<c1382056>] device_add+0xd6/0x380 [<c138b089>] ? device_pm_init+0x49/0x70 [<c1382317>] device_register+0x17/0x20 [<c13823d1>] device_create_vargs+0xb1/0xe0 [<c1110100>] bdi_register+0x50/0x190 [<c110fd89>] ? bdi_init+0x189/0x1f0 [<fadc7694>] afs_fill_super+0x114/0x2a0 [openafs] [<c1146fc7>] mount_nodev+0x47/0xa0 [<fadc72ca>] afs_mount+0x1a/0x20 [openafs] [<fadc7580>] ? afs_root.isra.1+0x130/0x130 [openafs] [<c1147b66>] mount_fs+0x36/0x180 [<c11124cf>] ? __alloc_percpu+0xf/0x20 [<c115e83e>] ? alloc_vfsmnt+0xae/0x130 [<c115e951>] vfs_kern_mount+0x51/0xa0 [<c115fa7e>] do_kern_mount+0x3e/0xe0 [<c1161174>] do_mount+0x164/0x200 [<c11615ab>] sys_mount+0x6b/0xa0 [<c15af11f>] sysenter_do_call+0x12/0x28*
