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

Solution Unverified - Updated -

Issue

  • Seeing Medium Error sense key being logged:
    • 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
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:  
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

or

 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

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

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

or

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

Environment

  • 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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In