smart command hangs SATA bus
Volker Kuhlmann <[email protected]> Wed, 27 Jan 2016 10:47:40 +1300
| Newsgroups | gmane.linux.utilities.smartmontools |
|---|---|
| Message-ID | <[email protected]> |
I have this truely delightful piece of Seagate firmware junk: When I
query this disk for its health information, the SCSI smart commands
fail. There has been an increasing number of reallocated and pending
sectors. I can copy files off correctly, so I doubt it's a hardware
problem with the SATA interface (either host, cable, disk).
This turns into a major problem on modern Linux systems where absolutely
everything works on systemd or related. Here udisksd bangs in smart
commands twice every 10 minutes, interrupting any data rescue. Renaming
libatasmart.so.4 (which udisksd is linked with) and stopping
udisks2.service fixes that - for 2 seconds. Logging in on a KDE desktop
takes 10 minutes, with about 20 attempts to crank up udisks2.service and
related timeouts - and main dsktop functionality doesn't even depend on
it. I doubt other desktops are much better. Not so smart design...
Unfortunately, smartctl can't retrieve any much useful info from the
disk any more - both -a and -H produce 2 bus lockups each. That means I
can't get either the overall smart status (passed/failed) or the
attribute values (like reallocate count) any longer.
It looks like as soon as there is a serious problem wit bad sectors,
Seagate thinks it's really smart to stop communicating properly over the
SATA bus... I'd use a different adjective myself.
Is there a trick, to
* Stop the whole system from locking up via udisksd
* Stop smartctl (and probably smartd) from locking the bus, even if not
all info can be retrieved?
Details below (also attached, might work better for long lines).
Thanks,
Volker
smartctl 6.0 2012-10-10 r3643 [x86_64-linux-3.7.10-1.45-desktop] (SUSE RPM)
(Just as well I record smartctl -a regularly with a cron job - essential
for looking back how bad sectors have developed):
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST3000DM001-1CH166
Serial Number: Z1....Y4
LU WWN Device Id: 5 000c50 05065e6c8
Firmware Version: CC24
User Capacity: 3,000,592,982,016 bytes [3.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Mon Jan 25 02:15:02 2016 NZDT
SMART overall-health self-assessment test result: PASSED
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 168
9 Power_On_Hours 0x0032 076 076 000 Old_age Always - 21781
197 Current_Pending_Sector 0x0012 099 096 000 Old_age Always - 176
198 Offline_Uncorrectable 0x0010 099 096 000 Old_age Offline - 176
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 21697h+08m+55.151s
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Interrupted (host reset) 80% 168 -
# 2 Short offline Completed without error 00% 84 -
There is another problem here: smartd has never run any tests with
DEVICESCAN, although they have been configured! The Power_On_Hours are
approx correct.
Example (some useless log columns removed):
10:07:15.771691 kernel: ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
10:07:15.771701 kernel: ata4.00: failed command: SMART
10:07:15.771702 kernel: ata4.00: cmd b0/d0:01:00:4f:c2/00:00:00:00:00/00 tag 0 pio 512 in
10:07:15.771702 kernel: res 40/00:01:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
10:07:15.771702 kernel: ata4.00: status: { DRDY }
10:07:15.771703 kernel: ata4: hard resetting link
10:07:21.125725 kernel: ata4: link is slow to respond, please be patient (ready=0)
10:07:23.879746 kernel: ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
10:07:23.917650 kernel: ata4.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
10:07:23.917672 kernel: ata4.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
10:07:23.917675 kernel: ata4.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
10:07:23.920684 kernel: ata4.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
10:07:23.920704 kernel: ata4.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
10:07:23.920707 kernel: ata4.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
10:07:23.920709 kernel: ata4.00: configured for UDMA/33
10:07:23.920711 kernel: ata4: EH complete
smartctl -a
smartctl 6.0 2012-10-10 r3643 [x86_64-linux-3.7.10-1.45-desktop] (SUSE RPM)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
[... OK]
Local Time is: Wed Jan 27 10:03:34 2016 NZDT
==> WARNING: A firmware update for this drive may be available,
see the following Seagate web pages:
http://knowledge.seagate.com/articles/en_US/FAQ/207931en
http://knowledge.seagate.com/articles/en_US/FAQ/223651en
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Read SMART Data failed: scsi error aborted command
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.
[The error and selftest logs show up OK]
smartctl -H
smartctl 6.0 2012-10-10 r3643 [x86_64-linux-3.7.10-1.45-desktop] (SUSE RPM)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org
Read SMART Data failed: scsi error aborted command
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.
--
Volker Kuhlmann
http://volker.top.geek.nz/ Please do not CC list postings to me.
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Smartmontools-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
sata-smart-cmd-lock.text
(text/plain, 4.2 KB)
smartctl 6.0 2012-10-10 r3643 [x86_64-linux-3.7.10-1.45-desktop] (SUSE RPM)
(Just as well I record smartctl -a regularly with a cron job - essential
for looking back how bad sectors have developed):
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST3000DM001-1CH166
Serial Number: Z1....Y4
LU WWN Device Id: 5 000c50 05065e6c8
Firmware Version: CC24
User Capacity: 3,000,592,982,016 bytes [3.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Mon Jan 25 02:15:02 2016 NZDT
SMART overall-health self-assessment test result: PASSED
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 168
9 Power_On_Hours 0x0032 076 076 000 Old_age Always - 21781
197 Current_Pending_Sector 0x0012 099 096 000 Old_age Always - 176
198 Offline_Uncorrectable 0x0010 099 096 000 Old_age Offline - 176
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 21697h+08m+55.151s
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Interrupted (host reset) 80% 168 -
# 2 Short offline Completed without error 00% 84 -
There is another problem here: smartd has never run any tests with
DEVICESCAN, although they have been configured! The Power_On_Hours are
approx correct.
Example (some useless log columns removed):
10:07:15.771691 kernel: ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
10:07:15.771701 kernel: ata4.00: failed command: SMART
10:07:15.771702 kernel: ata4.00: cmd b0/d0:01:00:4f:c2/00:00:00:00:00/00 tag 0 pio 512 in
10:07:15.771702 kernel: res 40/00:01:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
10:07:15.771702 kernel: ata4.00: status: { DRDY }
10:07:15.771703 kernel: ata4: hard resetting link
10:07:21.125725 kernel: ata4: link is slow to respond, please be patient (ready=0)
10:07:23.879746 kernel: ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
10:07:23.917650 kernel: ata4.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
10:07:23.917672 kernel: ata4.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
10:07:23.917675 kernel: ata4.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
10:07:23.920684 kernel: ata4.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
10:07:23.920704 kernel: ata4.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
10:07:23.920707 kernel: ata4.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
10:07:23.920709 kernel: ata4.00: configured for UDMA/33
10:07:23.920711 kernel: ata4: EH complete
smartctl -a
smartctl 6.0 2012-10-10 r3643 [x86_64-linux-3.7.10-1.45-desktop] (SUSE RPM)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
[... OK]
Local Time is: Wed Jan 27 10:03:34 2016 NZDT
==> WARNING: A firmware update for this drive may be available,
see the following Seagate web pages:
http://knowledge.seagate.com/articles/en_US/FAQ/207931en
http://knowledge.seagate.com/articles/en_US/FAQ/223651en
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Read SMART Data failed: scsi error aborted command
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.
[The error and selftest logs show up OK]
smartctl -H
smartctl 6.0 2012-10-10 r3643 [x86_64-linux-3.7.10-1.45-desktop] (SUSE RPM)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org
Read SMART Data failed: scsi error aborted command
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.