SCSI sense key: Medium Error and error: return code = 0x08070002, 0x08100002, or 0x08000002 and

Solution Verified - Updated -

Issue

  • Seeing Medium Error sense key being logged.
    • SCSI error: driverbyte=DRIVER_SENSE plus Medium Error sense key
    • SCSI error: return code 0x08070002 plus Medium Error sense key
    • SCSI error: return code 0x08000002 plus Medium Error sense key
    • SCSI error: return code 0x08100002 plus Medium Error sense key
  • Resulting in issues with disks:
    • With multipath, there could be constant path failovers.
    • With a mounted filesystem, it is remounted read-only.
    • It could happen for a lun or subset of luns.
  • /var/log/messages contains one of the following forms of the event or similar

 sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
 sd 0:0:0:0: [sda] Sense Key : Medium Error [current]
 sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error

or

kernel: sd 6:0:2:0: SCSI error: return code = 0x08100002
kernel: Result: hostbyte=invalid driverbyte=DRIVER_SENSE,SUGGEST_OK
kernel: sde: Current: sense key: Medium Error
kernel:     Add. Sense: Record not found

or

 kernel: sd 1:0:5:14: [sdhl] Add. Sense: Unrecovered read error - recommend reassignment
 kernel: sd 1:0:5:14: [sdhl] CDB: Read(10): 28 00 04 45 a6 70 00 00 08 00
 kernel: sd 3:0:5:14: [sduj] Unhandled sense code
 kernel: sd 3:0:5:14: [sduj] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
 kernel: sd 3:0:5:14: [sduj] Sense Key : Medium Error [current] 

or
 kernel blk_update_request: critical medium error, dev sde, sector 1025000000
 kernel sd 4:2:4:0: [sde] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
 kernel sd 4:2:4:0: [sde] tag#0 Sense Key : Medium Error  [current]
 kernel sd 4:2:4:0: [sde] tag#0 Add. Sense: Unrecovered read error
 kernel sd 4:2:4:0: [sde] tag#0 CDB: Read(10) 28 00 3d 22 60 00 00 02 00 00
 kernel blk_update_request: critical medium error, dev sde, sector 1025662976

or

kernel: sd 1:0:0:2: SCSI error: return code = 0x08070002 
kernel: sdab: Current: sense key: Medium Error  
kernel:     Add. Sense: Unrecovered read error  
kernel: end_request: I/O error, dev sdab, sector 83235271  
kernel: device-mapper: multipath: Failing path 65:176.  
multipathd: dm-8: add map (uevent)  
multipathd: dm-8: devmap already registered

Environment

  • Red Hat Enterprise Linux (RHEL) 8
  • Red Hat Enterprise Linux (RHEL) 7
  • Red Hat Enterprise Linux (RHEL) 6
  • Red Hat Enterprise Linux (RHEL) 5
  • Red Hat Enterprise Linux (RHEL) 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content