Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 2002 23:18:23 -0400
From:      "Michael R. Wayne" <wayne@staff.msen.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   SCSI hang with Adaptec aic7896/7
Message-ID:  <200206130318.XAA43638@manor.msen.com>

next in thread | raw e-mail | index | archive | help

FreeBSD 4.3-RELEASE-p19 

This box has recently developed intermittent hangs (approx once
every 4 weeks).  Today, we were doing
   cd disk1:/dir ; tar -cf - . | (cd disk2:/ ; tar -xpf -)
to move some user files around and got it to hang reliably during
the tar with errors like those listed below.  This was doing
transfers from one physical disk (da1), which was also a mount
point to another (da2) which was also a mount point.  Note that
da1 and da2 are on the same controller, we did not test it across
controllers.

Cables and (off drive) termination appear OK.  The SCSI controllers
are on the motherboard.  System was built by Tesys/BSDi/iXsystems
in July of 2000 (their stuff usually works well w/ FreeBSD).

Upon each reboot, the filesystem on disk2 was corrupt to the point
that fsck wanted manual attention.  The shutdown did not go cleanly
either.

A little Googling showed a few similar reports since 3.3 but no
information that a clear cause has been found.  Any pointers
or workarounds?

   From /var/log/messages:
Jun 12 17:14:19 ww1 /kernel: (da2:ahc1:0:1:0): SCB 0x25 - timed out while idle, SEQADDR == 0x18
Jun 12 17:14:19 ww1 /kernel: STACK == 0x17, 0x17c, 0x166, 0x0
Jun 12 17:14:19 ww1 /kernel: SXFRCTL0 == 0x80
Jun 12 17:14:19 ww1 /kernel: ahc1: Dumping Card State at SEQADDR 0x18
Jun 12 17:14:19 ww1 /kernel: SCSISEQ = 0x5a, SBLKCTL = 0xa, SSTAT0 0x10
Jun 12 17:14:19 ww1 /kernel: SCB count = 140
Jun 12 17:14:19 ww1 /kernel: Kernel NEXTQSCB = 79
Jun 12 17:14:19 ww1 /kernel: Card NEXTQSCB = 2
Jun 12 17:14:19 ww1 /kernel: QINFIFO entries: 2 116 64 101 121 76 21 56 33 41 124 81 112 60 128 27 98 74 66 36 19 139 108 107 113 29 25 
32 9 54 
Jun 12 17:14:19 ww1 /kernel: Waiting Queue entries: 14:75 
Jun 12 17:14:19 ww1 /kernel: Disconnected Queue entries: 25:122 30:37 
Jun 12 17:14:19 ww1 /kernel: QOUTFIFO entries: 
Jun 12 17:14:19 ww1 /kernel: Sequencer Free SCB List: 20 18 7 21 10 24 2 4 28 0 31 29 15 6 13 1 19 11 27 22 12 16 26 8 9 5 23 17 3 
Jun 12 17:14:19 ww1 /kernel: Pending list: 54 9 32 25 29 113 107 108 139 19 36 66 74 98 27 128 60 112 81 124 41 33 56 21 76 121 101 64 1
16 2 75 122 37 
Jun 12 17:14:19 ww1 /kernel: Kernel Free SCB list: 111 40 43 96 42 0 62 80 120 38 123 83 104 110 65 50 106 118 99 4 103 18 13 6 78 70 24 72 82 14 57 97 5 35 85 61 87 55 46 77 102 8 89 23 84 59 16 114 67 31 88 20 117 125 12 28 26 71 30 86 73 63 1 45 7 95 94 93 92 91 90 109 69 52 51 48 58 126 22 34 11 15 49 17 105 47 44 100 115 127 129 3 119 68 10 53 39 138 137 136 135 134 133 132 131 130 
Jun 12 17:14:19 ww1 /kernel: sg[0] - Addr 0x4eaa000 : Length 1024
Jun 12 17:14:19 ww1 /kernel: (da2:ahc1:0:1:0): SCB 37: Immediate reset.  Flags = 0x4040
Jun 12 17:14:19 ww1 /kernel: (da2:ahc1:0:1:0): no longer in timeout, status = 34b
Jun 12 17:14:19 ww1 /kernel: ahc1: Issued Channel A Bus Reset. 33 SCBs aborted


   Relevant dmesg lines
ahc0: <Adaptec aic7896/97 Ultra2 SCSI adapter> port 0xe400-0xe4ff mem 0xffafe000-0xffafefff irq 10 at device 11.0 on pci0
aic7896/97: Wide Channel A, SCSI Id=7, 32/255 SCBs
ahc1: <Adaptec aic7896/97 Ultra2 SCSI adapter> port 0xe800-0xe8ff mem 0xffaff000-0xffafffff irq 10 at device 11.1 on pci0
aic7896/97: Wide Channel B, SCSI Id=7, 32/255 SCBs
   and
da0 at ahc0 bus 0 target 0 lun 0
da0: <SEAGATE ST39236LW 0004> Fixed Direct Access SCSI-3 device 
da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da0: 8761MB (17942584 512 byte sectors: 255H 63S/T 1116C)
da1 at ahc1 bus 0 target 0 lun 0
da1: <SEAGATE ST318436LW 0005> Fixed Direct Access SCSI-3 device 
da1: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da1: 17522MB (35885168 512 byte sectors: 255H 63S/T 2233C)
da2 at ahc1 bus 0 target 1 lun 0
da2: <SEAGATE ST318436LW 0005> Fixed Direct Access SCSI-3 device 
da2: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da2: 17522MB (35885168 512 byte sectors: 255H 63S/T 2233C)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206130318.XAA43638>