You are not logged in.

#1 2013-08-20 00:20:40

scummos
Member
Registered: 2013-03-08
Posts: 14

[solved] "failed command: WRITE FPDMA QUEUED" ATA errors

Hi!

Edit: Thinking about it, this could quite well be the famous "5184 hours" bug on micron SSDs. The 3624 seconds until failure basically scream for it being that issue. I'll do a firmware update after I have performed a backup and see if that helps.

Since shortly (I do not remember it to be linked to a kernel upgrade) I keep getting these error messages after a while, with the system freezing and usually not recovering:

[ 3624.763766] ata1.00: exception Emask 0x0 SAct 0x7fffffff SErr 0x0 action 0x6 frozen
[ 3624.763777] ata1.00: failed command: WRITE FPDMA QUEUED
[ 3624.763786] ata1.00: cmd 61/08:00:57:a1:14/00:00:00:00:00/40 tag 0 ncq 4096 out
         res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 3624.763790] ata1.00: status: { DRDY }
[ 3624.764032] ata1.00: failed command: WRITE FPDMA QUEUED
[...]
[ 3624.764035] ata1.00: cmd 61/08:f0:ff:80:46/00:00:00:00:00/40 tag 30 ncq 4096 out
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 3624.764037] ata1.00: status: { DRDY }
[ 3624.764041] ata1: hard resetting link
[ 3630.100435] ata1: link is slow to respond, please be patient (ready=0)
[ 3634.796593] ata1: COMRESET failed (errno=-16)
[ 3634.796609] ata1: hard resetting link
[ 3640.133287] ata1: link is slow to respond, please be patient (ready=0)
[ 3644.829517] ata1: COMRESET failed (errno=-16)
[ 3644.829529] ata1: hard resetting link
[ 3650.166146] ata1: link is slow to respond, please be patient (ready=0)
[ 3679.894424] ata1: COMRESET failed (errno=-16)
[ 3679.894438] ata1: limiting SATA link speed to 1.5 Gbps
[ 3679.894443] ata1: hard resetting link
[ 3684.910856] ata1: COMRESET failed (errno=-16)
[ 3684.910871] ata1: reset failed, giving up
[ 3684.910875] ata1.00: disabled
[ 3684.910883] ata1.00: device reported invalid CHS sector 0
[ 3684.910888] ata1.00: device reported invalid CHS sector 0
[ 3684.910891] ata1.00: device reported invalid CHS sector 0
[...]
[ 3684.910969] ata1.00: device reported invalid CHS sector 0
[ 3684.910971] ata1.00: device reported invalid CHS sector 0
[ 3684.911077] ata1: EH complete
[ 3684.911110] sd 0:0:0:0: [sda] Unhandled error code
[ 3684.911113] sd 0:0:0:0: [sda]  
[ 3684.911115] Result: hostbyte=0x04 driverbyte=0x00
[ 3684.911118] sd 0:0:0:0: [sda] CDB: 
[ 3684.911120] cdb[0]=0x2a: 2a 00 00 46 80 ff 00 00 08 00
[ 3684.911129] end_request: I/O error, dev sda, sector 4620543
[ 3684.911134] Buffer I/O error on device sda1, logical block 577560
[ 3684.911143] EXT4-fs warning (device sda1): ext4_end_bio:286: I/O error writing to inode 1309793 (offset 5537792 size 4096 starting block 577568)
[ 3684.911161] sd 0:0:0:0: [sda] Unhandled error code
[ 3684.911163] sd 0:0:0:0: [sda]
[ 3684.911901] Buffer I/O error on device sda3, logical block 12682192
[...]
[ 3684.920707] systemd-journald[128]: Failed to write entry (20 items, 542 bytes), ignoring: Read-only file system
[...]

The computer is a thinkpad T410i, with this ATA controller:

» lspci |grep ATA
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06)

and this hard drive:

# smartctl -a /dev/sda |grep Model
Model Family:     Crucial/Micron RealSSD m4/C400
Device Model:     M4-CT128M4SSD2

Google and the error message suggest this is related to errors in the communication between the SATA controller and the hard drive. Usually things like "try another SATA cable" or "try a better power supply" are suggested, so I tried removing and re-inserting the drive into the slot; that didn't help though. What could I do now? I guess swapping the SATA cable or trying a better power supply is out of question wink

The disk itself seems fine to me, here's the SMART report:

# smartctl -a /dev/sda
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.6-2-ARCH] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Crucial/Micron RealSSD m4/C400
Device Model:     M4-CT128M4SSD2
Serial Number:    000000001142031CDAA0
LU WWN Device Id: 5 00a075 1031cdaa0
Firmware Version: 0009
User Capacity:    128,035,676,160 bytes [128 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Tue Aug 20 02:16:50 2013 CEST

==> WARNING: This drive may hang after 5184 hours of power-on time:
http://www.tomshardware.com/news/Crucial-m4-Firmware-BSOD,14544.html
See the following web pages for firmware updates:
http://www.crucial.com/support/firmware.aspx
http://www.micron.com/products/solid-state-storage/client-ssd#software

SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x80) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever 
                                        been run.
Total time to complete Offline 
data collection:                (  595) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (   9) minutes.
Conveyance self-test routine
recommended polling time:        (   3) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   050    Pre-fail  Always       -       0
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   100   100   001    Old_age   Always       -       6002
 12 Power_Cycle_Count       0x0032   100   100   001    Old_age   Always       -       2557
170 Grown_Failing_Block_Ct  0x0033   100   100   010    Pre-fail  Always       -       0
171 Program_Fail_Count      0x0032   100   100   001    Old_age   Always       -       0
172 Erase_Fail_Count        0x0032   100   100   001    Old_age   Always       -       0
173 Wear_Leveling_Count     0x0033   098   098   010    Pre-fail  Always       -       73
174 Unexpect_Power_Loss_Ct  0x0032   100   100   001    Old_age   Always       -       0
181 Non4k_Aligned_Access    0x0022   100   100   001    Old_age   Always       -       4034 1449 2584
183 SATA_Iface_Downshift    0x0032   100   100   001    Old_age   Always       -       0
184 End-to-End_Error        0x0033   100   100   050    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   100   100   001    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   001    Old_age   Always       -       0
189 Factory_Bad_Block_Ct    0x000e   100   100   001    Old_age   Always       -       82
194 Temperature_Celsius     0x0022   100   100   000    Old_age   Always       -       0
195 Hardware_ECC_Recovered  0x003a   100   100   001    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   100   100   001    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   001    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   001    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   100   100   001    Old_age   Always       -       0
202 Perc_Rated_Life_Used    0x0018   098   098   001    Old_age   Offline      -       2
206 Write_Error_Rate        0x000e   100   100   001    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%      5684         -
# 2  Short offline       Completed without error       00%      5550         -
# 3  Short offline       Completed without error       00%      3843         -
# 4  Extended offline    Completed without error       00%      1835         -
# 5  Short offline       Completed without error       00%      1319         -
# 6  Short offline       Completed without error       00%       244         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

Any ideas would be very much appreciated.

Cheers,
Sven

Last edited by scummos (2013-08-23 18:44:52)

Offline

#2 2013-08-20 11:42:27

scummos
Member
Registered: 2013-03-08
Posts: 14

Re: [solved] "failed command: WRITE FPDMA QUEUED" ATA errors

Looks like the firmware update solved it. smile

Offline

Board footer

Powered by FluxBB