Virtual machine with direct attached LUNs via lpfc driver is failing with critcal I/O error on RHEL 7.4 hypervisor

Solution Verified - Updated -

Issue

  • VM failing with critcal I/O error on RHEL 7.4 hypervisor

    Nov 10 15:13:42 system1 kernel: blk_update_request: critical target error, dev sda, sector 95344
    Nov 10 15:13:42 system1 kernel: Buffer I/O error on dev dm-2, logical block 8004, lost async page write
    Nov 10 15:13:42 system1 kernel: Buffer I/O error on dev dm-2, logical block 8005, lost async page write
    Nov 10 15:13:42 system1 kernel: Buffer I/O error on dev dm-2, logical block 8006, lost async page write
    Nov 10 15:13:42 system1 kernel: Buffer I/O error on dev dm-2, logical block 8007, lost async page write
    Nov 10 15:14:12 system1 kernel: sd 2:0:0:1: [sda] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    Nov 10 15:14:13 system1 kernel: blk_update_request: critical target error, dev sda, sector 145136
    Nov 10 15:14:13 system1 kernel: sd 2:0:0:1: [sda] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    Nov 10 15:14:13 system1 kernel: blk_update_request: critical target error, dev sda, sector 144128 
    
  • A virtual machine is failing I/O and dmesg output showing error messages like the following

    [Nov13 17:44] sd 2:0:0:1: [sda] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    [  +0.000936] sd 2:0:0:1: [sda] Sense Key : Illegal Request [current]
    [  +0.000000] sd 2:0:0:1: [sda] Add. Sense: Invalid field in cdb
    [  +0.000000] sd 2:0:0:1: [sda] CDB: Read(10) 28 00 00 00 14 40 00 03 e9 00
    [  +0.000000] blk_update_request: critical target error, dev sda, sector 5184
    [  +0.000000] sd 2:0:0:1: [sda] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    [  +0.000000] sd 2:0:0:1: [sda] Sense Key : Illegal Request [current]
    [  +0.008123] sd 2:0:0:1: [sda] Add. Sense: Invalid field in cdb
    [  +0.000374] sd 2:0:0:1: [sda] CDB: Read(10) 28 00 00 00 18 29 00 03 f0 00
    [  +0.000489] blk_update_request: critical target error, dev sda, sector 6185
    

Environment

  • Emulex FibreChannel HBA (lpfc driver)
  • Red Hat Enterprise Linux (RHEL) 7.4 Host
  • Red Hat Virtualization (RHV) 4
  • qemu-kvm-rhev-2.9.0-1.el7 or newer
  • Virtual Machine using direct attached LUN configured as Virtio-SCSI
  • SCSI passthrough enabled, e.g. the option Enable SCSI Pass-Through activated on the LUN via the RHV Admin Portal

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