[OpenAFS] Solaris 10 and AFS cache in various places

Douglas E. Engert deengert@anl.gov
Thu, 20 Nov 2008 08:44:50 -0600


Atro Tossavainen wrote:
> Hello all,
> 
> I've got this old E220R running S10 (kernel patch 137111-08 at present)
> that I seem to have some issues with.  OpenAFS is 1.4.7.
> 
> I didn't think to include a separate partition to use as the AFS cache
> when I installed the box, so I've been using a small cache on the root
> partition.  It works otherwise fine, but seems to be a little slow, so
> I figured I'd give memcache a go.  AFS started up fine, but any processes
> accessing files on AFS deadlocked and I needed to power cycle the box
> because a soft reboot hung.

Can you try 1.4.8?

>
> Next, I mounted /usr/vice/cache on tmpfs.  Starting AFS after that caused
> a kernel panic and cycled the box.  All hints welcome, particularly if
> it seems I'm trying to do something that isn't even supposed to work.

AFS on Solaris only runs on UFS file systems at the moment. I have submitted a
patch to allow it to use any type file system, including ZFS and tmpfs.
See  http://rt.central.org/rt/Ticket/Display.html?id=123677
Also see the Linux tmpfs thread on this mail list. It has similar problems.


> 
> Nov 20 10:47:48 x afs: [ID 888289 kern.notice] Starting AFS cache scan...
> Nov 20 10:47:48 x unix: [ID 836849 kern.notice] 
> Nov 20 10:47:48 x ^Mpanic[cpu0]/thread=30003151c60: 
> Nov 20 10:47:48 x unix: [ID 340138 kern.notice] BAD TRAP: type=31 rp=2a100b0f0a0 addr=38 mmu_fsr=0 occurred in module "ufs" due to a NULL pointer dereference
> Nov 20 10:47:48 x unix: [ID 100000 kern.notice] 
> Nov 20 10:47:48 x unix: [ID 839527 kern.notice] afsd.openafs.1.4: 
> Nov 20 10:47:48 x unix: [ID 520581 kern.notice] trap type = 0x31
> Nov 20 10:47:48 x unix: [ID 381800 kern.notice] addr=0x38
> Nov 20 10:47:48 x unix: [ID 101969 kern.notice] pid=1083, pc=0x1239b88, sp=0x2a100b0e941, tstate=0x4400001602, context=0x79d
> Nov 20 10:47:48 x unix: [ID 743441 kern.notice] g1-g7: 7b275114, 3fff, 0, 30001064000, 3d3d0, 0, 30003151c60
> Nov 20 10:47:48 x unix: [ID 100000 kern.notice] 
> Nov 20 10:47:48 x genunix: [ID 723222 kern.notice] 000002a100b0edc0 unix:die+78 (31, 2a100b0f0a0, 38, 0, 2a100b0ee80, 1083400)
> Nov 20 10:47:48 x genunix: [ID 179002 kern.notice]   %l0-3: 0000000000001fff 0000000000000031 0000000001000000 0000000000002000
> Nov 20 10:47:48 x   %l4-7: 000000000181b710 000000000181b400 0000000000000000 0000004400001602
> Nov 20 10:47:49 x genunix: [ID 723222 kern.notice] 000002a100b0eea0 unix:trap+9e0 (2a100b0f0a0, 0, 1fff, 5, 0, 1)
> Nov 20 10:47:49 x genunix: [ID 179002 kern.notice]   %l0-3: 0000000000000000 000003000228b888 0000000000000031 0000000000001c00
> Nov 20 10:47:49 x   %l4-7: 0000000000000000 0000000000000001 ffffffffffffe000 0000000000000005
> Nov 20 10:47:49 x genunix: [ID 723222 kern.notice] 000002a100b0eff0 unix:ktl0+48 (300012f6cf8, 30003151c60, fd3d, 300010a6000, 18d6800, 180c000)
> Nov 20 10:47:49 x genunix: [ID 179002 kern.notice]   %l0-3: 0000000000000003 0000000000001400 0000004400001602 000000000101b920
> Nov 20 10:47:49 x   %l4-7: 0000030000059ac0 000000000183f270 0000000000000000 000002a100b0f0a0
> Nov 20 10:47:49 x genunix: [ID 723222 kern.notice] 000002a100b0f140 ufs:ufs_iget_internal+1e8 (300000a8700, 5f3d3d, 3d3d, 0, 0, 300012f6cf8)
> Nov 20 10:47:49 x genunix: [ID 179002 kern.notice]   %l0-3: 00000300010a13d0 000000000180c000 00000300010c49e8 0000012e00000004
> Nov 20 10:47:49 x   %l4-7: 0000000000001000 00000300010a13d0 0000000000000001 0000000000000000
> Nov 20 10:47:49 x genunix: [ID 723222 kern.notice] 000002a100b0f200 afs:afs_xserver+b064074 (300000a8700, 4, 5f3d3d, 2a100b0f3d8, 300003ac168, 2a100b0f4d8)
> Nov 20 10:47:49 x genunix: [ID 179002 kern.notice]   %l0-3: 00000000012398c0 000000007020a000 0000000000000036 0000000000070206
> Nov 20 10:47:49 x   %l4-7: 0000000000070000 0000000000002069 00000300012f6cf8 00000000018724f0
> Nov 20 10:47:50 x genunix: [ID 723222 kern.notice] 000002a100b0f320 afs:afs_xserver+b064110 (300000a8700, 4, 5f3d3d, 2a100b0f4e8, 300003ac168, 2a100b0f4d8)
> Nov 20 10:47:50 x genunix: [ID 179002 kern.notice]   %l0-3: 0000000000000001 000000007020a000 0000000049252434 0000000000000001
> Nov 20 10:47:50 x   %l4-7: 0000000070206530 00000000701eb000 0000000000000000 0000000000070206
> Nov 20 10:47:50 x genunix: [ID 723222 kern.notice] 000002a100b0f420 afs:osi_UfsOpen+70 (5f3d3d, 30003151c60, 300033e6f08, 3d03, 0, 3000328b080)
> Nov 20 10:47:50 x genunix: [ID 179002 kern.notice]   %l0-3: 0000000070208000 00000300000a8700 0000000000002000 0000000000000004
> Nov 20 10:47:50 x   %l4-7: 00000300010ef500 000002a100b0f4e8 0000000070210f00 0000000000000806
> Nov 20 10:47:50 x genunix: [ID 723222 kern.notice] 000002a100b0f500 afs:osi_UFSOpen+cc (5f3d3d, 0, 78df, 300033e6f08, 30003151c64, 30003151c5c)
> Nov 20 10:47:50 x genunix: [ID 179002 kern.notice]   %l0-3: 0000000000000000 00000000701e0000 00000300012f6cf8 000003000561a3c0
> Nov 20 10:47:50 x   %l4-7: 00000300010ef500 00000300033e6a80 0000030002f9eaa0 0000000000001004
> Nov 20 10:47:50 x genunix: [ID 723222 kern.notice] 000002a100b0f5c0 afs:afs_InitCacheInfo+138 (30003295780, 70210000, 70210, 70000, 70210000, 70208000)
> Nov 20 10:47:51 x genunix: [ID 179002 kern.notice]   %l0-3: 00000000701e0000 00000000000701e0 0000000000070000 0000000000070000
> Nov 20 10:47:51 x   %l4-7: 0000000000002000 0000000070210000 0000000000070210 0000000000070000
> Nov 20 10:47:51 x genunix: [ID 723222 kern.notice] 000002a100b0f720 afs:afs_syscall_call+f48 (7, 63b28, 0, 800, 63800, 0)
> Nov 20 10:47:51 x genunix: [ID 179002 kern.notice]   %l0-3: 0000000000000000 0000030003295780 0000000000003000 0000000000000007
> Nov 20 10:47:51 x   %l4-7: 0000000070210f00 0000000000000007 000000000000043b 0000030004223a68
> Nov 20 10:47:51 x genunix: [ID 723222 kern.notice] 000002a100b0f860 afs:Afs_syscall+ac (300003ac168, 2a100b0fbd0, 2a100b0fa28, 1c, 186fc00, 0)
> Nov 20 10:47:51 x genunix: [ID 179002 kern.notice]   %l0-3: 0000000000000001 00000000ffbfc6e8 000000000000000f 0000000000000007
> Nov 20 10:47:51 x   %l4-7: 0000000000063b28 0000000000000000 0000000000000800 0000000000063800
> Nov 20 10:47:51 x genunix: [ID 723222 kern.notice] 000002a100b0f970 genunix:syscall_ap+58 (820, 7, 18724f0, 7b281df0, 41, 18)
> Nov 20 10:47:51 x genunix: [ID 179002 kern.notice]   %l0-3: 0000030002fa20c0 0000000000000003 0000000020420604 00000000ff3f4354
> Nov 20 10:47:51 x   %l4-7: 0000030005438080 00000300032b9998 000002a100b0fb90 0000000000000006
> Nov 20 10:47:51 x genunix: [ID 723222 kern.notice] 000002a100b0fa30 genunix:loadable_syscall+6c (1c, 7, 63b28, 0, 800, 63800)
> Nov 20 10:47:51 x genunix: [ID 179002 kern.notice]   %l0-3: 0000000000000001 0000000000000000 00000300000d8638 0000000000008713
> Nov 20 10:47:51 x   %l4-7: 0000000000000041 0000000000000820 0000000000000041 00000000018724f0
> Nov 20 10:47:52 x unix: [ID 100000 kern.notice] 
> Nov 20 10:47:52 x genunix: [ID 672855 kern.notice] syncing file systems...
> Nov 20 10:47:52 x genunix: [ID 733762 kern.notice]  1
> Nov 20 10:47:53 x genunix: [ID 904073 kern.notice]  done
> Nov 20 10:47:54 x genunix: [ID 111219 kern.notice] dumping to /dev/md/dsk/d1, offset 322306048, content: kernel
> Nov 20 10:48:15 x genunix: [ID 409368 kern.notice] ^M100% done: 13897 pages dumped, compression ratio 2.52, 
> Nov 20 10:48:15 x genunix: [ID 851671 kern.notice] dump succeeded
> 
> 

-- 

  Douglas E. Engert  <DEEngert@anl.gov>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444