blkdiscard fails with /dev/sdx: BLKDISCARD ioctl failed: Remote I/O error on LSI HBA
Issue
-
blkdiscard
fails on device with:$ blkdiscard /dev/sda blkdiscard: /dev/sda: BLKDISCARD ioctl failed: Remote I/O error /var/log/messages with elevated scsi logging: sd 0:0:0:0: [sda] tag#27 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE sd 0:0:0:0: [sda] tag#27 Sense Key : Illegal Request [current] sd 0:0:0:0: [sda] tag#27 Add. Sense: Logical block address out of range sd 0:0:0:0: [sda] tag#27 CDB: Unmap/Read sub-channel 42 00 00 00 00 00 00 00 18 00 print_req_error: critical target error, dev sda, sector 973078411
Environment
- Red Hat Enterprise Linux (RHEL) 8.1
- LSI Controller SAS2308_2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.