Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 548263

Summary: hdparm -I and -i fail for LSI 2008 managed hard drives
Product: Red Hat Enterprise Linux 5 Reporter: starlight
Component: hdparmAssignee: Michal Minar <miminar>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: coughlan, jarod, pknirsch, starlight
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-13 11:14:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description starlight 2009-12-17 02:17:14 UTC
Description of problem:

hdparm -I and -i fail for LSI 2008 managed hard drives

relevant device drivers is 'mpt2sas.ko'


Version-Release number of selected component (if applicable):

RHEL 5.4 kernel 2.6.18-164.6.1.el5

How reproducible:

run 'hdparm -I' or 'hdparm -i' on a LSI 2008
managed drive.

Steps to Reproduce:

issue 'hdparm -I /dev/sd?'

Actual results:

LSI 2008 non-RAID drives will return

HDIO_DRIVE_CMD(identify) failed: Invalid argument


Expected results:

output similar to

/dev/sda:

ATA device, with non-removable media
	Model Number:       ST9500420AS                             
	Serial Number:      5VJ1CFEA
	Firmware Revision:  0002SDM1
.
.
.

Additional info:

Makes it difficult to match a failed PV with the associated 
physical drive.  Newer kernels all randomize drive order.  Not a 
problem when everything is working (due to LVM PV and LV UUID's) but 
when a drive fails it's hard to figure out which drive to pull.  
We keep a list of serial numbers and slots, but without 'hdparm -I'
it's not easy to match-up a physical unit and the 
/dev/sd[a-z] device name.

Under Fedora 12 kernel 2.6.31.6-162.fc12.x86_64, 'hdparm -I'
works ok.  Possibly fixing this requires a simple update
of the 'mpt2sas.ko' device driver.

Comment 3 Tomas Henzl 2010-12-14 14:45:30 UTC
(In reply to comment #0)
> Under Fedora 12 kernel 2.6.31.6-162.fc12.x86_64, 'hdparm -I'
> works ok.  Possibly fixing this requires a simple update
> of the 'mpt2sas.ko' device driver.

I tested it with 'mpt2sas version 05.101.00.02 loaded', no luck.
Which version is the mpt2sas driver in Fedora?

You can try as a workaround scsi_id. 'scsi_id -g -p 0x83  -s /block/sdX' works for me, I can see the model and serial number.

Comment 4 starlight 2010-12-14 16:51:02 UTC
Stock 'mpt2sas' driver in Fedora 12.

Comment 5 Tomas Henzl 2010-12-16 15:29:25 UTC
In RHEL5.5 is a version 1, I've tested RHEL5 with version 5, and Fedora has a version 2 (02.100.03.00) of the mpt2sas module. 
The conclusion is that the problem is in hdparm itself. I'm changing the component field from kernel to hdparm.

Comment 6 starlight 2011-10-16 01:33:30 UTC
Checked RHEL 5.7 kernel 2.6.18-274.el5 and problem
persists despite new 'mpt2sas.ko' version 08.101.00.01.

Comment 7 starlight 2011-10-16 01:50:03 UTC
Posted wrong bug citation.  The 'hdparm' issue is bug 548263.

Comment 8 starlight 2011-10-16 01:51:52 UTC
Wow, got wrong twice!  It's bug 609134.  For sure.

Comment 9 starlight 2011-10-16 01:54:53 UTC
Backwards backwards backwards.  It's the other bug
(next above) that should cite this bug--had
them both open, sorry.

Comment 10 RHEL Program Management 2012-06-12 01:16:58 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 11 Michal Minar 2013-03-13 11:14:36 UTC
I confirm that this is a bug in hdparm. hdparm-7.7-1.fc17 is buildable and works. Unfortunately this is unfixable without a rebase to version supporting SG_IO (7.0+). Closing as won't fix.