[Bug 847003] [NEW] Hdparm setting causes SAS drive attached on LSI 1068E HBA to freeze

Spica SJTU 847003 at bugs.launchpad.net
Sun Sep 11 12:43:33 UTC 2011


Public bug reported:

Hdparm will try to set APM even on SAS drives.
In /lib/hdparm/hdparm-functions, hdparm_try_apm() only filters out USB/FireWire devices.
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_FEATURE_SET_PM=1'.

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
ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
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)

** Affects: hdparm (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug natty

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to hdparm in Ubuntu.
https://bugs.launchpad.net/bugs/847003

Title:
  Hdparm setting causes SAS drive attached on LSI 1068E HBA to freeze

Status in “hdparm” package in Ubuntu:
  New

Bug description:
  Hdparm will try to set APM even on SAS drives.
  In /lib/hdparm/hdparm-functions, hdparm_try_apm() only filters out USB/FireWire devices.
  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_FEATURE_SET_PM=1'.

  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
  ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/847003/+subscriptions




More information about the foundations-bugs mailing list