CDB: Write same fails with "Sense Key : Illegal Request" when executing fstrim operations

Solution Verified - Updated -

Issue

  • When executing fstrim, write same commands fail with "Illegal Request"

    [  225.493819] sd 9:0:0:101: [sdj] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
    [  225.493830] sd 9:0:0:101: [sdj] tag#0 Sense Key : Illegal Request [current] 
    [  225.493836] sd 9:0:0:101: [sdj] tag#0 Add. Sense: Invalid field in cdb
    [  225.493841] sd 9:0:0:101: [sdj] tag#0 CDB: Write same(16) 93 08 00 00 00 00 00 04 08 00 00 3f ff ff 00 00
    [  225.493846] blk_update_request: critical target error, dev sdj, sector 264192
    [  225.494047] blk_update_request: critical target error, dev dm-6, sector 264192
    [  225.721083] blk_update_request: critical target error, dev dm-6, sector 264195
    
  • This above errors lead to devices going offline within multipath.

Environment

  • Array vendors that have LUNS provisioned supporting the thin provisioning functionality.
  • Exceptions:
    • Does not apply to unmap issues
      • This is specific to write-same commands only. Failures using the unmap command are a separate issue. See the Root Cause for details as to why.

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