Bug 630342
Summary: | SATA errors: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Andreas M. Kirchwitz <amk> | ||||||
Component: | libatasmart | Assignee: | Lennart Poettering <lpoetter> | ||||||
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 14 | CC: | ade.rixon, anton, davidz, dougsland, dwysocha, gansalmon, itamar, jonathan, kernel-maint, lpoetter, madhu.chinakonda, mail, wnefal+redhatbugzilla | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2012-08-16 18:57:38 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: | |||||||||
Attachments: |
|
Description
Andreas M. Kirchwitz
2010-09-04 21:29:01 UTC
Created attachment 443102 [details]
smartctl -a /dev/sda
Created attachment 443103 [details]
smartctl -a /dev/sdb
This message is a reminder that Fedora 13 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 13. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '13'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 13's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 13 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping The problem still exists in Fedora 14 (presumably in Fedora 15 as well). This makes it difficult to install Fedora on systems with certain harddisk types. The cause of the problem is a bug in the firmware of the popular Samsung HD103SJ drive (and a lot of other Samsung drives produced since the last 2 years; and basically every harddisks with a buggy SMART implementation). The Samsung firmware has problems with certain SMART commands which can result in data loss. That was a big story in the press a couple of months ago. Samsung released firmware updates for some F4 series drives but not the old (still popular) F3 series. Fedora triggers this bug when running "udisks-daemon". If a harddisk reports to support SMART, udev enables SMART. This is a bad idea because there are a lot of incompatibilities for harddisks and motherboards. SMART shouldn't be enabled automatically. I haven't found a kernel option to disable SMART permanently (like there is for features like NCQ). The only way to avoid SATA errors and harddisk crashes is to modify udev rules: ================================================================================ --- /lib/udev/rules.d/.80-udisks.rules_DISABLED 2011-02-01 15:38:24.000000000 +0100 +++ /lib/udev/rules.d/80-udisks.rules 2011-03-13 03:11:57.395714653 +0100 @@ -128,9 +128,9 @@ # USB ATA enclosures with a SAT layer -KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", IMPORT{program}="udisks-probe-ata-smart $tempnode" +KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", IMPORT{program}="echo UDISKS_ATA_SMART_IS_AVAILABLE=0" # ATA disks driven by libata -KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="ata", ENV{DEVTYPE}=="disk", IMPORT{program}="udisks-probe-ata-smart $tempnode" +KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="ata", ENV{DEVTYPE}=="disk", IMPORT{program}="echo UDISKS_ATA_SMART_IS_AVAILABLE=0" # ATA disks connected via SAS (not driven by libata) -KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="scsi", ENV{DEVTYPE}=="disk", ENV{ID_VENDOR}=="ATA", IMPORT{program}="udisks-probe-ata-smart $tempnode" +KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="scsi", ENV{DEVTYPE}=="disk", ENV{ID_VENDOR}=="ATA", IMPORT{program}="echo UDISKS_ATA_SMART_IS_AVAILABLE=0" ================================================================================ With these modifications, SMART just stays as it is. If it was enabled before (smartctl -s on), it's kept enabled, and if there were good reasons to disable it (smartctl -s off / or BIOS settings), it stays disabled. Would be nice if that could be changed in Fedora so that it's possible again to install Fedora on systems where SMART isn't working properly. In a perfect world, SMART shouldn't be an issue nowadays, but even Samsung doesn't get it right for their drives. (In reply to comment #4) > The problem still exists in Fedora 14 (presumably in Fedora 15 as well). This > makes it difficult to install Fedora on systems with certain harddisk types. > > The cause of the problem is a bug in the firmware of the popular Samsung > HD103SJ drive (and a lot of other Samsung drives produced since the last 2 > years; and basically every harddisks with a buggy SMART implementation). The > Samsung firmware has problems with certain SMART commands which can result in > data loss. That was a big story in the press a couple of months ago. Samsung > released firmware updates for some F4 series drives but not the old (still > popular) F3 series. > > Fedora triggers this bug when running "udisks-daemon". If a harddisk reports to > support SMART, udev enables SMART. This is a bad idea because there are a lot > of incompatibilities for harddisks and motherboards. SMART shouldn't be enabled > automatically. Reassigning to udisks ... I agree that the OS should never second-guess the user and enable SMART on a disk if it is already disabled. In this case, it is actually libatasmart that enables SMART automatically: http://git.0pointer.de/?p=libatasmart.git;a=blob;f=atasmart.c;h=a4b60c0eedf8e4f1ebafd932b7070c030459ef16;hb=HEAD#l2561 so reassigning to libatasmart. This message is a notice that Fedora 14 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 14. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '14' have been closed as WONTFIX. (Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.) Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version. Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 14 reached end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping |