blkdiscard fails with /dev/sdx: BLKDISCARD ioctl failed: Remote I/O error on LSI HBA

Solution Verified - Updated -

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.

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