Getting 'has check condition: unknown type: Sense: 0x5, ASC: 0x20, ASCQ: 0x0' error messages

Solution Unverified - Updated

Environment

  • Red Hat Enterprise Linux 6.3
  • HP Smart Array controller.

Issue

  • Getting 'has check condition: unknown type: Sense: 0x5, ASC: 0x20, ASCQ: 0x0' error messages:
         kernel: hpsa : cp  has check condition: unknown type: Sense: 0x5, ASC: 0x20, ASCQ: 0x0, Returning result: 0x2, cmd=[1a 00 04 00 34 00 00 00 00 00 00 00 00 00 00 00]
         kernel: hpsa : cp  has check condition: unknown type: Sense: 0x5, ASC: 0x20, ASCQ: 0x0, Returning result: 0x2, cmd=[25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
         kernel: hpsa : cp  has check condition: unknown type: Sense: 0x5, ASC: 0x20, ASCQ: 0x0, Returning result: 0x2, cmd=[4d 00 40 00 00 00 00 00 04 00 00 00 00 00 00 00]
         kernel: hpsa : cp  has check condition: unknown type: Sense: 0x5, ASC: 0x20, ASCQ: 0x0, Returning result: 0x2, cmd=[37 00 0c 00 00 00 00 00 04 00 00 00 00 00 00 00]

Resolution

  • The target is returning Sense code of 0x5 (Illegal request) for SCSI command 25 (READ CAPACITY), 37 (INITIALIZE ELEMENT STATUS WITH RANGE), 4D (LOG SENSE). All these SCSI command are standard SCSI commands, it should not be interpreted by target as invalid, so it would be recommended to please try to check with the h/w vendor to verify why the target is treating these command as Illegal Request and above error codes are being returned from target?

Root Cause

  • The following error messages shows that sense key returned form target is Sense: 0x5 and ASC/ASCQ pair is 0x20/0x0. These return codes indicates that there was an invalid/unsupported command found in SCSI CBD (command block descriptor), due to which the target rejected the command with Sense key: 0x5 (Illegal Request):

      Apr 23 02:00:08 host1 kernel: hpsa 0000:03:00.0: cp ffff880037900000 has check condition: unknown type: Sense: 0x5, ASC: 0x20, ASCQ: 0x0, Returning result: 0x2, cmd=[1a 00 04 00 34 00 00 00 00 00 00 00 00 00 00 00]
      Apr 23 02:00:08 host1 kernel: hpsa 0000:03:00.0: cp ffff880037900000 has check condition: unknown type: Sense: 0x5, ASC: 0x20, ASCQ: 0x0, Returning result: 0x2, cmd=[25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
      Apr 23 02:00:08 host1 EMCPP: emcpAudit: Info: cmd=powermt: dump  Succeeded Duration: 0.12 seconds (user ID real=0 effective=0)
      Apr 23 02:00:11 host1 kernel: hpsa 0000:03:00.0: cp ffff880037900000 has check condition: unknown type: Sense: 0x5, ASC: 0x20, ASCQ: 0x0, Returning result: 0x2, cmd=[1a 00 04 00 34 00 00 00 00 00 00 00 00 00 00 00]
      Apr 23 02:00:11 host1 kernel: hpsa 0000:03:00.0: cp ffff880037900000 has check condition: unknown type: Sense: 0x5, ASC: 0x20, ASCQ: 0x0, Returning result: 0x2, cmd=[25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
      Apr 23 02:00:11 host1 kernel: hpsa 0000:03:00.0: cp ffff880037900000 has check condition: unknown type: Sense: 0x5, ASC: 0x20, ASCQ: 0x0, Returning res	ult: 0x2, cmd=[1a 00 04 00 34 00 00 00 00 00 00 00 00 00 00 00]
      Apr 23 02:00:11 host1 kernel: hpsa 0000:03:00.0: cp ffff880037900000 has check condition: unknown type: Sense: 0x5, ASC: 0x20, ASCQ: 0x0, Returning result: 0x2, cmd=[25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
      [...]
    
  • The SCSI command sent to the target is 1a and 25:

      cmd=[1a 00 04 00 34 00 00 00 00 00 00 00 00 00 00 00]
      cmd=[25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]
    
  • SCSI commands 1a and 25 corresponds to below SCSI commands. These are standard SCSI commands and should not be interpreted by target as invalid commands, so it would be recommend to please try to check with the h/w vendor to verify why the target is treating below command as Illegal Request and above error codes are being returned from target?

      Code 	Command
      --------------------------
      1A 	MODE SENSE (6)
      25 	READ CAPACITY(10)
    
SBR
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.