SCSI error: return code = 0x08000002 - Illegal Request on Hitachi Command Device
Environment
- Red Hat Enterprise Linux (RHEL) 5
- Red Hat Enterprise Linux (RHEL) 6
- Hitachi Storage Array with Control Devices
Issue
-
We are getting errors only for first LUN coming from Storage
-
This LUN is the command device coming from Hitachi Array
-
Error snippet from messages file:
kernel: sd 5:0:0:0: SCSI error: return code = 0x08000002 kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK kernel: sdaw: Current: sense key: Illegal Request kernel: Add. Sense: Invalid field in parameter list kernel: kernel: sd 3:0:0:0: SCSI error: return code = 0x08000002 kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK kernel: sdc: Current: sense key: Illegal Request kernel: Add. Sense: Invalid field in parameter list -
Would like to know if there is any known issues with Hitachi Disks (LUN id :0)
-
From /proc/scsi/scsi:
Host: scsi3 Channel: 00 Id: 00 Lun: 00 Vendor: HITACHI Model: OPEN-V-CM Rev: 6008 Type: Direct-Access ANSI SCSI revision: 03 Host: scsi5 Channel: 00 Id: 00 Lun: 00 Vendor: HITACHI Model: OPEN-V-CM Rev: 6008 Type: Direct-Access ANSI SCSI revision: 03
Resolution
-
These
command lunsshould declare themselves as SCSI type 0Ch (control device) vs 00h (disk):00h, Direct-access block device 0Ch, Storage array controller device <<= -
If native multipath solution is used these can be blacklisted, if third-party vendor multipath is used check with the multipath vendor to blacklist command luns.
-
Alternatively, remove these devices from the host (please check this with the storage vendor).
Root Cause
-
This error is recorded only when
special devicesare used to manage the storage controllers, and setup commands are being sent to thespecialdevice, of which it is return anIllegal Request- a scsi control device will not support typical commands supported by a scsi disk device, and vice-versa.
-
These are special command devices used to manage the XP RAID manager (RM) BC and CA control operations (metadata):
Host: scsi3 Channel: 00 Id: 00 Lun: 00 Vendor: HITACHI Model: OPEN-V-CM Rev: 6008 Type: Direct-Access ANSI SCSI revision: 03 -
The "return code = 0x08000002" means that the SCSI target device returned back a
05h Illegal Requestas its SCSI status and that there is sense buffer available from the device with additional information on the error. -
The "sense key" information that is output following the return code, here we see an 'Illegal Request':
Category Key ASC/ASCQ Error Condition ================================================== Illegal Request 5 26/00 INVALID FIELD IN PARAMETER LIST
Diagnostic Steps
-
The following is shown in /var/log/messages:
kernel: sd 5:0:0:0: SCSI error: return code = 0x08000002 kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK kernel: sdaw: Current: sense key: Illegal Request kernel: Add. Sense: Invalid field in parameter list kernel: kernel: sd 3:0:0:0: SCSI error: return code = 0x08000002 kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK kernel: sdc: Current: sense key: Illegal Request kernel: Add. Sense: Invalid field in parameter list
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.