From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9604181811.AA02119@nova.tat.physik.uni-tuebingen.de> Date: Thu, 18 Apr 1996 20:13:07 +0200 (MET DST) From: Harald Koenig Subject: bad blocks on SCSI disk with NCR 810 controller :-( In-Reply-To: <199604180354.XAA02533@redhat.com> Hi, two days ago I got a lot of bad blocks (~280 1k blocks) on a RZ26L 1GB disk in a XL266 workstation. trying to fix those bad blocks I found out some interesting and bad things: 1) "badblocks" (which is used by "e2fsck -c" to find bad blocks) doesn't work reasonable when the disk is connected to an NCR scsi controller. most of the time "badblocks" didn't find any of the bad blocks (but I got *lots* of kernel messages like the one below). I tried the same with my i486 PC which has an NCR 810 too: same story. when I connected the disk to a good old Adaptec AHA1542 badblocks found lots of errors which could be inserted in the bad block list of ext2fs. ------------------------------------------------------------------------------- scsi0 channel 0 : resetting for second half of retries. SCSI bus is being reset for host 0. scsi0 : DCMD|DBC=0x50000000, DNAD=0x4044cf0 (virt 0xfffffc0000044cf0) DSA=0x4014214 (virt 0xfffffc0000014214) DSPS=0x4044e00, TEMP=0x4044a50 (virt 0xfffffc0000044a50), DMODE=0x80 SXFER=0x8, SCNTL3=0x13 phase=MSGIN, 0 bytes in SCSI FIFO STEST0=0x6 scsi0 : DSP 0x4044ce8 (virt 0xfffffc0000044ce8) -> 0x4044ce8 (virt 0xfffffc0000044ce8) : 0x50000000 0x04044e00 (virt 0xfffffc0000044e00) 0x4044cf0 (virt 0xfffffc0000044cf0) : 0x60000200 0x00000000 (virt 0x0000000000000000) 0x4044cf8 (virt 0xfffffc0000044cf8) : 0x78388000 0x00000000 (virt 0x0000000000000000) 0x4044d00 (virt 0xfffffc0000044d00) : 0x0f000001 0x04044660 (virt 0xfffffc0000044660) 0x4044d08 (virt 0xfffffc0000044d08) : 0x78389000 0x00000000 (virt 0x0000000000000000) 0x4044d10 (virt 0xfffffc0000044d10) : 0xc0000004 0x0404465c (virt 0xfffffc000004465c) 0x0000b434 (virt 0x0000000000000000) scsi0 : issue queue scsi0 : schedule dsa array : scsi0 : end schedule dsa array scsi0 : reconnect_dsa_head : scsi0 : end reconnect_dsa_head scsi0: lost command 26461 scsi0 : target 0 accepting period 100ns offset 8 10.00MHz FAST SCSI-II scsi0 : setting target 0 to period 100ns offset 8 10.00MHz FAST SCSI-II SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 18000002 Current error sd08:00: sense key Medium Error Additional sense indicates Unrecovered read error scsidisk I/O error: dev 08:00, sector 1639970 SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 18000002 Current error sd08:00: sense key Medium Error Additional sense indicates Unrecovered read error scsidisk I/O error: dev 08:00, sector 1639972 ------------------------------------------------------------------------------- the error handling/recovery for the NCR driver really has to be fixed!! with only this controller I wouldn't have been able to locate the bad blocks and isolate the files which are in trouble and mark those files bad. 2) the other nasty thing is that there is no tool to check or print the bad blocks marked in a ext2fs (linked to inode #1) which makes it impossible to check if "e2fsck" did work correctly (other than hacking the e2fsck sources of course). 3) two of the files which got corrupted are /var/lib/rpm/fileindex.rpm /var/lib/rpm/packages.rpm for rpm.v2. is there any way to check/rebuild/... those data base files ? "rpm -q -a" goes into a loop after listing ~130 packages and only prints (null)-(null)-(null) forever :-( after realizing that there are that many bad blocks (in bursts of 16k every 316k which seem to be one cylinder of 79sectors/8heads) I desiced to low level format the disk after making a backup of the whole disk using dd. at the end of the low lever format (using my PC, how to do this with an alpha workstation btw?) I got the end status Sensekey 0x06 ASC 0x2a ASCQ 0xff80 where sensekey 0x06 means "media change" in SCSI-II and the ASC/ASCQ values are vendor dependant. does anyone know what this means for a DEC RZ26L disk? are there any known hardware problems with this disk type ? is this likely to happen again (took me 2 days alltogether :-( ? Thanks, Harald -- All SCSI disks will from now on ___ _____ be required to send an email notice 0--,| /OOOOOOO\ 24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\ \ \/OOOOOOOOOOOOOOO\ \ OOOOOOOOOOOOOOOOO|// Harald Koenig, \/\/\/\/\/\/\/\/\/ Inst.f.Theoret.Astrophysik // / \\ \ koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^