Subject: anybody know how to use scsictl reassign?
To: None <port-sparc@netbsd.org>
From: John Refling <johnr@imageworks.com>
List: port-sparc
Date: 05/19/2000 15:22:02
My disk occasionally has problems, and I get the following
log message

/var/log/messages:
May 18 01:43:41 r50 /netbsd: sd0(esp0:3:0):  Check Condition on CDB: 0x28 00 00 28 2d a0 00 00 80 00
May 18 01:43:47 r50 /netbsd:     SENSE KEY:  Media Error
May 18 01:43:48 r50 /netbsd:    INFO FIELD:  2534912
May 18 01:43:48 r50 /netbsd:  COMMAND INFO:  24576 (0x6000)
May 18 01:43:48 r50 /netbsd:      ASC/ASCQ:  Unrecovered Read Error
May 18 01:43:48 r50 /netbsd:      FRU CODE:  0x3


I tried the following command in single user mode with the
disk read only (as suggested), and got the following response

# scsictl  sd0    reassign          2534912
/dev/rsd0c: SCSI command timed out
/dev/rsd0c: device is busy
/dev/rsd0c: Check Condition on CDB: 07 00 00 00 00 00
    SENSE KEY: Illegal Request
    COMMAND INFO: 11412992 (0xae2600)
    ASC/ASCQ: Logical Block Address Out of Range
    SKSV: Error in Parameters, Offset 4
                   

dmesg shows the disk has 4197520 sectors:
sd0 at scsibus0 targ 3 lun 0: <DEC, DSP3210S, X442> SCSI2 0/direct fixed
sd0: 2049MB, 3045 cyl, 16 head, 86 sec, 512 bytes/sect x 4197520 sectors

AM I NOT USING THE CORRECT BLOCK NUMBER, or what?  Anyone
know?


THANKS.