From: "Vladimir G. Ivanovic" Subject: [2nd request] Debugging/monitoring advice for sym53c1010-33 problems sought Date: Sat, 01 Jun 2002 19:07:29 -0700 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <200206020207.g5227T707924@bach.leonora.org> Mime-Version: 1.0 (generated by tm-edit 1.8) Content-Type: text/plain; charset=US-ASCII Return-path: Received: from bach.leonora.org (vladimir@localhost) by bach.leonora.org (8.11.6/8.11.6) with ESMTP id g5227T707924 for ; Sat, 1 Jun 2002 19:07:29 -0700 List-Id: linux-scsi@vger.kernel.org To: linux-scsi@vger.kernel.org I'm trying to track down the cause(s) of some SCSI errors that I'm getting. Almost always the errors occur at night during backups. The errors either show up just as syslog entries or as a hung machine (no ping, no login, but I can SysRq). I've determined that the errors occur while creating nightly backups. These backups are bzip2-compressed tar files (a few MB to 7 GB), that read from the root partition (/dev/sda4) and write to an IDE partition (/dev/hda1). They have never occurred (except once) during the day. Are these errors typical of a hardware problem or of a software problem? So far, I've taken the following steps: 0. Read the "Linux 2.4 SCSI subsystem HOWTO" (dated 2002-04-07) 1. Enabled SCSI logging with echo "scsi log error 5" > /proc/scsi/scsi echo "scsi log timeout 1" > /proc/scsi/scsi Are there more useful parameters to use, keeping in mind that my /var/log/messages file _is_ on the SCSI disk that's causing problems? 2. Monitoring hourly the number of bad blocks on /dev/sda with scu -f /dev/sda show defects Currently, the "Defect list length is 5824 bytes, containing 728 defects" (Is this a lot, little, normal for an 18GB Quantum Atlas 10K drive?) Is there anything else I should do to track down these (example log entries below) problems? Thanks. --- Vladimir -------- Vladimir G. Ivanovic http://leonora.org/~vladimir 2770 Cowper St. vladimir@acm.org Palo Alto, CA 94306-2447 +1 650 678 8014 ------ Jun 1 17:00:03 bach sdacheck[6610]: /dev/sda: ( Defect list length is 5824 bytes, containing 728 defects ) Jun 1 17:15:11 bach kernel: sym53c1010-33-0:6: ERROR (81:0) (8-0-0) (3e/18) @ (script 38:f31c0004). Jun 1 17:15:11 bach kernel: sym53c1010-33-0: script cmd = e21c0004 Jun 1 17:15:11 bach kernel: sym53c1010-33-0: regdump: da 00 00 18 47 3e 06 0f 04 08 86 00 00 00 0f 0a 72 cf 0c 00 02 00 00 00. Jun 1 17:15:11 bach kernel: sym53c1010-33-0: ctest4/sist original 0x8/0x0 mod: 0x18/0x0 Jun 1 17:15:11 bach kernel: sym53c1010-33-0: restart (scsi reset). Jun 1 17:15:11 bach kernel: sym53c1010-33-0: handling phase mismatch from SCRIPTS. Jun 1 17:15:11 bach kernel: sym53c1010-33-0: Downloading SCSI SCRIPTS. Jun 1 17:15:14 bach kernel: sym53c1010-33-0-<6,*>: FAST-80 WIDE SCSI 160.0 MB/s (12.5 ns, offset 62) Jun 1 17:16:38 bach kernel: scsi : aborting command due to timeout : pid 640357, scsi0, channel 0, id 6, lun 0 Read (10) 00 01 38 50 50 00 00 08 00 Jun 1 17:16:38 bach kernel: sym53c8xx_abort: pid=640357 serial_number=640355 serial_number_at_timeout=640355 Jun 1 17:16:39 bach kernel: SCSI host 0 abort (pid 640357) timed out - resetting Jun 1 17:16:39 bach kernel: SCSI bus is being reset for host 0 channel 0. Jun 1 17:16:39 bach kernel: sym53c8xx_reset: pid=640357 reset_flags=2 serial_number=640355 serial_number_at_timeout=640355 Jun 1 17:16:39 bach kernel: sym53c1010-33-0: restart (scsi reset). Jun 1 17:16:39 bach kernel: sym53c1010-33-0: handling phase mismatch from SCRIPTS. Jun 1 17:16:39 bach kernel: sym53c1010-33-0: Downloading SCSI SCRIPTS. Jun 1 17:16:42 bach kernel: sym53c1010-33-0-<6,*>: FAST-80 WIDE SCSI 160.0 MB/s (12.5 ns, offset 62) Jun 1 17:18:42 bach kernel: sym53c1010-33-0:6: ERROR (81:0) (8-0-0) (3e/18) @ (script 50:f31c0004). Jun 1 17:18:42 bach kernel: sym53c1010-33-0: script cmd = 90080000 Jun 1 17:18:42 bach kernel: sym53c1010-33-0: regdump: da 00 00 18 47 3e 06 0f 04 08 86 00 00 00 0f 0a 01 00 00 00 02 00 00 00. Jun 1 17:18:42 bach kernel: sym53c1010-33-0: ctest4/sist original 0x8/0x0 mod: 0x18/0x0 Jun 1 17:18:42 bach kernel: sym53c1010-33-0: restart (scsi reset). Jun 1 17:18:42 bach kernel: sym53c1010-33-0: handling phase mismatch from SCRIPTS. Jun 1 17:18:42 bach kernel: sym53c1010-33-0: Downloading SCSI SCRIPTS. Jun 1 17:18:45 bach kernel: sym53c1010-33-0-<6,*>: FAST-80 WIDE SCSI 160.0 MB/s (12.5 ns, offset 62) Jun 1 17:28:09 bach kernel: sym53c1010-33-0:6: ERROR (81:0) (c-0-0) (3e/18) @ (mem 1664:04000000). Jun 1 17:28:09 bach kernel: sym53c1010-33-0: regdump: da 00 40 18 47 3e 06 0f 04 0c 86 00 00 00 0f 0a 00 00 00 11 02 00 00 00. Jun 1 17:28:09 bach kernel: sym53c1010-33-0: ctest4/sist original 0x8/0x0 mod: 0x18/0x0 Jun 1 17:28:09 bach kernel: sym53c1010-33-0: restart (scsi reset). Jun 1 17:28:09 bach kernel: sym53c1010-33-0: handling phase mismatch from SCRIPTS. Jun 1 17:28:09 bach kernel: sym53c1010-33-0: Downloading SCSI SCRIPTS. Jun 1 17:28:12 bach kernel: sym53c1010-33-0-<6,*>: FAST-80 WIDE SCSI 160.0 MB/s (12.5 ns, offset 62) Jun 1 17:47:11 bach kernel: scsi : aborting command due to timeout : pid 823036, scsi0, channel 0, id 6, lun 0 Read (10) 00 00 6f 6b 90 00 00 18 00 Jun 1 17:47:11 bach kernel: sym53c8xx_abort: pid=823036 serial_number=823035 serial_number_at_timeout=823035 Jun 1 17:47:11 bach kernel: SCSI host 0 abort (pid 823036) timed out - resetting Jun 1 17:47:11 bach kernel: SCSI bus is being reset for host 0 channel 0. Jun 1 17:47:11 bach kernel: sym53c8xx_reset: pid=823036 reset_flags=2 serial_number=823035 serial_number_at_timeout=823035 Jun 1 17:47:11 bach kernel: sym53c1010-33-0: restart (scsi reset). Jun 1 17:47:11 bach kernel: sym53c1010-33-0: handling phase mismatch from SCRIPTS. Jun 1 17:47:11 bach kernel: sym53c1010-33-0: Downloading SCSI SCRIPTS. Jun 1 17:47:14 bach kernel: sym53c1010-33-0-<6,*>: FAST-80 WIDE SCSI 160.0 MB/s (12.5 ns, offset 62) Jun 1 17:50:15 bach kernel: sym53c1010-33-0:6: ERROR (81:0) (c-0-0) (3e/18) @ (mem 74616d78:04000000). Jun 1 17:50:15 bach kernel: sym53c1010-33-0: regdump: da 00 40 18 47 3e 06 0f 04 0c 86 00 00 00 0f 0a 00 00 00 11 02 00 00 00. Jun 1 17:50:15 bach kernel: sym53c1010-33-0: ctest4/sist original 0x8/0x0 mod: 0x18/0x0 Jun 1 17:50:15 bach kernel: sym53c1010-33-0: restart (scsi reset). Jun 1 17:50:15 bach kernel: sym53c1010-33-0: handling phase mismatch from SCRIPTS. Jun 1 17:50:15 bach kernel: sym53c1010-33-0: Downloading SCSI SCRIPTS. Jun 1 17:50:18 bach kernel: sym53c1010-33-0-<6,*>: FAST-80 WIDE SCSI 160.0 MB/s (12.5 ns, offset 62) Jun 1 17:58:10 bach kernel: sym53c1010-33-0:6: ERROR (81:0) (c-0-0) (3e/18) @ (mem 74616d78:04000000). Jun 1 17:58:10 bach kernel: sym53c1010-33-0: regdump: da 00 40 18 47 3e 06 0f 04 0c 86 00 00 00 0f 0a 00 00 00 11 02 00 00 00. Jun 1 17:58:10 bach kernel: sym53c1010-33-0: ctest4/sist original 0x8/0x0 mod: 0x18/0x0 Jun 1 17:58:10 bach kernel: sym53c1010-33-0: restart (scsi reset). Jun 1 17:58:10 bach kernel: sym53c1010-33-0: handling phase mismatch from SCRIPTS. Jun 1 17:58:10 bach kernel: sym53c1010-33-0: Downloading SCSI SCRIPTS. Jun 1 17:58:12 bach kernel: sym53c1010-33-0-<6,*>: FAST-80 WIDE SCSI 160.0 MB/s (12.5 ns, offset 62)