Hdparm setting causes SAS drive attached on LSI 1068E HBA to freeze
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hdparm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hdparm will try to set APM even on SAS drives.
In /lib/hdparm/
SAS drive will be thought of APM-capable.
This behavior might not cause problems on most HBA/SAS drive combinations.
But with LSI 1068E+SAS drive, it freeze the SAS drive. Any I/O request to the SAS drive will return I/O error.
If I replace /sbin/hdparm with a fake script, everything works fine.
It might be a bug of ATA pass-through with mptsas (LSI 1068E's driver), but I think add some code in hdparm_try_apm() will be a much easier fix, given the fact that that function is already filtering out USB/FireWire devices anyway.
I would suggest searching ATA-specific features from udevadm's output to see if the target device is really an ATA device.
Like 'ID_ATA_
I've tried Ubuntu LTS 10.04, 11.04, 11.10 beta. All of them suffered from this issue. I think LSI 1068E is kind of popular in servers.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: hdparm 9.32-1ubuntu3
ProcVersionSign
Uname: Linux 3.0.0-10-generic x86_64
Architecture: amd64
Date: Sun Sep 11 19:13:44 2011
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: hdparm
UpgradeStatus: Upgraded to natty on 2011-09-11 (0 days ago)