Other OS

SATA disk errors

4 3192
giox969  

I'm using a BananaPro + Arch Linux, with stock 3.4.103 kernel.

When writing to the sata HDD (using dd to create a big file, or via samba), I get the following errors on dmesg:

  1. [  395.481037] ata1.00: exception Emask 0x10 SAct 0xffff SErr 0x400100 action 0x6 frozen
  2. [  395.502361] ata1.00: irq_stat 0x08000000, interface fatal error
  3. [  395.520281] ata1: SError: { UnrecovData Handshk }
  4. [  395.537336] ata1.00: failed command: WRITE FPDMA QUEUED
  5. [  395.563803] ata1.00: cmd 61/00:00:00:48:44/04:00:01:00:00/40 tag 0 ncq 524288 out
  6. [  395.563811]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  7. [  395.598456] ata1.00: status: { DRDY }
  8. [  395.602659] ata1.00: failed command: WRITE FPDMA QUEUED
  9. [  395.619426] ata1.00: cmd 61/00:08:00:4c:44/04:00:01:00:00/40 tag 1 ncq 524288 out
  10. [  395.619433]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  11. [  395.622080] ata1.00: status: { DRDY }
  12. [  395.626262] ata1.00: failed command: WRITE FPDMA QUEUED
  13. [  395.652052] ata1.00: cmd 61/00:10:00:50:44/04:00:01:00:00/40 tag 2 ncq 524288 out
  14. [  395.652060]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  15. [  395.654705] ata1.00: status: { DRDY }
  16. [  395.658886] ata1.00: failed command: WRITE FPDMA QUEUED
  17. [  395.680198] ata1.00: cmd 61/00:18:00:54:44/04:00:01:00:00/40 tag 3 ncq 524288 out
  18. [  395.680206]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  19. [  395.682915] ata1.00: status: { DRDY }
  20. [  395.687099] ata1.00: failed command: WRITE FPDMA QUEUED
  21. [  395.709065] ata1.00: cmd 61/00:20:00:58:44/04:00:01:00:00/40 tag 4 ncq 524288 out
  22. [  395.709073]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  23. [  395.711733] ata1.00: status: { DRDY }
  24. [  395.723369] ata1.00: failed command: WRITE FPDMA QUEUED
  25. [  395.744490] ata1.00: cmd 61/00:28:00:5c:44/04:00:01:00:00/40 tag 5 ncq 524288 out
  26. [  395.744498]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  27. [  395.747151] ata1.00: status: { DRDY }
  28. [  395.754973] ata1.00: failed command: WRITE FPDMA QUEUED
  29. [  395.773313] ata1.00: cmd 61/00:30:00:60:44/04:00:01:00:00/40 tag 6 ncq 524288 out
  30. [  395.773321]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  31. [  395.775964] ata1.00: status: { DRDY }
  32. [  395.780153] ata1.00: failed command: WRITE FPDMA QUEUED
  33. [  395.808720] ata1.00: cmd 61/00:38:00:64:44/04:00:01:00:00/40 tag 7 ncq 524288 out
  34. [  395.808728]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  35. [  395.811370] ata1.00: status: { DRDY }
  36. [  395.815552] ata1.00: failed command: WRITE FPDMA QUEUED
  37. [  395.837525] ata1.00: cmd 61/00:40:00:68:44/04:00:01:00:00/40 tag 8 ncq 524288 out
  38. [  395.837533]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  39. [  395.840177] ata1.00: status: { DRDY }
  40. [  395.844376] ata1.00: failed command: WRITE FPDMA QUEUED
  41. [  395.872934] ata1.00: cmd 61/00:48:00:6c:44/04:00:01:00:00/40 tag 9 ncq 524288 out
  42. [  395.872942]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  43. [  395.875595] ata1.00: status: { DRDY }
  44. [  395.879781] ata1.00: failed command: WRITE FPDMA QUEUED
  45. [  395.896657] ata1.00: cmd 61/00:50:00:70:44/04:00:01:00:00/40 tag 10 ncq 524288 out
  46. [  395.896665]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  47. [  395.899307] ata1.00: status: { DRDY }
  48. [  395.903500] ata1.00: failed command: WRITE FPDMA QUEUED
  49. [  395.929373] ata1.00: cmd 61/00:58:00:74:44/04:00:01:00:00/40 tag 11 ncq 524288 out
  50. [  395.929381]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  51. [  395.932024] ata1.00: status: { DRDY }
  52. [  395.944179] ata1.00: failed command: WRITE FPDMA QUEUED
  53. [  395.961067] ata1.00: cmd 61/00:60:00:78:44/04:00:01:00:00/40 tag 12 ncq 524288 out
  54. [  395.961075]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  55. [  395.963717] ata1.00: status: { DRDY }
  56. [  395.973098] ata1.00: failed command: WRITE FPDMA QUEUED
  57. [  395.993777] ata1.00: cmd 61/00:68:00:7c:44/04:00:01:00:00/40 tag 13 ncq 524288 out
  58. [  395.993785]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  59. [  395.996427] ata1.00: status: { DRDY }
  60. [  396.000608] ata1.00: failed command: WRITE FPDMA QUEUED
  61. [  396.025464] ata1.00: cmd 61/00:70:00:80:44/04:00:01:00:00/40 tag 14 ncq 524288 out
  62. [  396.025472]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  63. [  396.028258] ata1.00: status: { DRDY }
  64. [  396.032529] ata1.00: failed command: WRITE FPDMA QUEUED
  65. [  396.058395] ata1.00: cmd 61/00:78:00:84:44/04:00:01:00:00/40 tag 15 ncq 524288 out
  66. [  396.058403]          res 50/00:00:00:48:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  67. [  396.061093] ata1.00: status: { DRDY }
  68. [  396.063728] ata1: hard resetting link
  69. [  396.783254] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
  70. [  396.806331] ata1.00: configured for UDMA/133
  71. [  396.827422] ata1: EH complete
  72. [  396.850643] ata1.00: exception Emask 0x10 SAct 0xff0000 SErr 0x400100 action 0x6 frozen
  73. [  396.855578] ata1.00: irq_stat 0x08000000, interface fatal error
  74. [  396.859247] ata1: SError: { UnrecovData Handshk }
  75. [  396.871451] ata1.00: failed command: WRITE FPDMA QUEUED
  76. [  396.890585] ata1.00: cmd 61/00:80:00:84:44/04:00:01:00:00/40 tag 16 ncq 524288 out
  77. [  396.890593]          res 50/00:00:00:84:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  78. [  396.893238] ata1.00: status: { DRDY }
  79. [  396.897420] ata1.00: failed command: WRITE FPDMA QUEUED
  80. [  396.915310] ata1.00: cmd 61/00:88:00:80:44/04:00:01:00:00/40 tag 17 ncq 524288 out
  81. [  396.915318]          res 50/00:00:00:84:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  82. [  396.917962] ata1.00: status: { DRDY }
  83. [  396.922143] ata1.00: failed command: WRITE FPDMA QUEUED
  84. [  396.940569] ata1.00: cmd 61/00:90:00:7c:44/04:00:01:00:00/40 tag 18 ncq 524288 out
  85. [  396.940577]          res 50/00:00:00:84:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  86. [  396.943256] ata1.00: status: { DRDY }
  87. [  396.947438] ata1.00: failed command: WRITE FPDMA QUEUED
  88. [  396.968197] ata1.00: cmd 61/00:98:00:78:44/04:00:01:00:00/40 tag 19 ncq 524288 out
  89. [  396.968205]          res 50/00:00:00:84:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  90. [  396.978848] ata1.00: status: { DRDY }
  91. [  396.983069] ata1.00: failed command: WRITE FPDMA QUEUED
  92. [  396.999920] ata1.00: cmd 61/00:a0:00:74:44/04:00:01:00:00/40 tag 20 ncq 524288 out
  93. [  396.999928]          res 50/00:00:00:84:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  94. [  397.002609] ata1.00: status: { DRDY }
  95. [  397.006791] ata1.00: failed command: WRITE FPDMA QUEUED
  96. [  397.025217] ata1.00: cmd 61/00:a8:00:70:44/04:00:01:00:00/40 tag 21 ncq 524288 out
  97. [  397.025225]          res 50/00:00:00:84:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  98. [  397.035429] ata1.00: status: { DRDY }
  99. [  397.039672] ata1.00: failed command: WRITE FPDMA QUEUED
  100. [  397.060875] ata1.00: cmd 61/00:b0:00:6c:44/04:00:01:00:00/40 tag 22 ncq 524288 out
  101. [  397.060883]          res 50/00:00:00:84:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  102. [  397.063528] ata1.00: status: { DRDY }
  103. [  397.071360] ata1.00: failed command: WRITE FPDMA QUEUED
  104. [  397.089786] ata1.00: cmd 61/00:b8:00:68:44/04:00:01:00:00/40 tag 23 ncq 524288 out
  105. [  397.089794]          res 50/00:00:00:84:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  106. [  397.092440] ata1.00: status: { DRDY }
  107. [  397.102620] ata1: hard resetting link
  108. [  397.613251] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
  109. [  397.635534] ata1.00: configured for UDMA/133
  110. [  397.654263] ata1: EH complete
  111. [  397.680353] ata1.00: exception Emask 0x10 SAct 0x7f0001ff SErr 0x400100 action 0x6 frozen
  112. [  397.704101] ata1.00: irq_stat 0x08000000, interface fatal error
  113. [  397.724308] ata1: SError: { UnrecovData Handshk }
  114. [  397.743709] ata1.00: failed command: WRITE FPDMA QUEUED
  115. [  397.772588] ata1.00: cmd 61/00:00:00:84:44/04:00:01:00:00/40 tag 0 ncq 524288 out
  116. [  397.772597]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  117. [  397.811896] ata1.00: status: { DRDY }
  118. [  397.830236] ata1.00: failed command: WRITE FPDMA QUEUED
  119. [  397.859107] ata1.00: cmd 61/00:08:00:64:44/04:00:01:00:00/40 tag 1 ncq 524288 out
  120. [  397.859115]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  121. [  397.898393] ata1.00: status: { DRDY }
  122. [  397.916717] ata1.00: failed command: WRITE FPDMA QUEUED
  123. [  397.945597] ata1.00: cmd 61/00:10:00:60:44/04:00:01:00:00/40 tag 2 ncq 524288 out
  124. [  397.945605]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  125. [  397.984891] ata1.00: status: { DRDY }
  126. [  398.003211] ata1.00: failed command: WRITE FPDMA QUEUED
  127. [  398.032096] ata1.00: cmd 61/00:18:00:5c:44/04:00:01:00:00/40 tag 3 ncq 524288 out
  128. [  398.032104]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  129. [  398.071431] ata1.00: status: { DRDY }
  130. [  398.089766] ata1.00: failed command: WRITE FPDMA QUEUED
  131. [  398.108106] ata1.00: cmd 61/00:20:00:58:44/04:00:01:00:00/40 tag 4 ncq 524288 out
  132. [  398.108114]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  133. [  398.110758] ata1.00: status: { DRDY }
  134. [  398.114940] ata1.00: failed command: WRITE FPDMA QUEUED
  135. [  398.135517] ata1.00: cmd 61/00:28:00:54:44/04:00:01:00:00/40 tag 5 ncq 524288 out
  136. [  398.135525]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  137. [  398.138169] ata1.00: status: { DRDY }
  138. [  398.142366] ata1.00: failed command: WRITE FPDMA QUEUED
  139. [  398.163467] ata1.00: cmd 61/00:30:00:50:44/04:00:01:00:00/40 tag 6 ncq 524288 out
  140. [  398.163475]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  141. [  398.166117] ata1.00: status: { DRDY }
  142. [  398.170298] ata1.00: failed command: WRITE FPDMA QUEUED
  143. [  398.187077] ata1.00: cmd 61/00:38:00:4c:44/04:00:01:00:00/40 tag 7 ncq 524288 out
  144. [  398.187085]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  145. [  398.189727] ata1.00: status: { DRDY }
  146. [  398.193920] ata1.00: failed command: WRITE FPDMA QUEUED
  147. [  398.212257] ata1.00: cmd 61/00:40:00:48:44/04:00:01:00:00/40 tag 8 ncq 524288 out
  148. [  398.212265]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  149. [  398.222361] ata1.00: status: { DRDY }
  150. [  398.226574] ata1.00: failed command: WRITE FPDMA QUEUED
  151. [  398.247762] ata1.00: cmd 61/00:c0:00:68:44/04:00:01:00:00/40 tag 24 ncq 524288 out
  152. [  398.247770]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  153. [  398.250414] ata1.00: status: { DRDY }
  154. [  398.258223] ata1.00: failed command: WRITE FPDMA QUEUED
  155. [  398.276653] ata1.00: cmd 61/00:c8:00:6c:44/04:00:01:00:00/40 tag 25 ncq 524288 out
  156. [  398.276661]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  157. [  398.279301] ata1.00: status: { DRDY }
  158. [  398.283494] ata1.00: failed command: WRITE FPDMA QUEUED
  159. [  398.304158] ata1.00: cmd 61/00:d0:00:70:44/04:00:01:00:00/40 tag 26 ncq 524288 out
  160. [  398.304166]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  161. [  398.306808] ata1.00: status: { DRDY }
  162. [  398.310996] ata1.00: failed command: WRITE FPDMA QUEUED
  163. [  398.332205] ata1.00: cmd 61/00:d8:00:74:44/04:00:01:00:00/40 tag 27 ncq 524288 out
  164. [  398.332213]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  165. [  398.338504] ata1.00: status: { DRDY }
  166. [  398.342699] ata1.00: failed command: WRITE FPDMA QUEUED
  167. [  398.361113] ata1.00: cmd 61/00:e0:00:78:44/04:00:01:00:00/40 tag 28 ncq 524288 out
  168. [  398.361121]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  169. [  398.363763] ata1.00: status: { DRDY }
  170. [  398.367944] ata1.00: failed command: WRITE FPDMA QUEUED
  171. [  398.388608] ata1.00: cmd 61/00:e8:00:7c:44/04:00:01:00:00/40 tag 29 ncq 524288 out
  172. [  398.388616]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  173. [  398.399233] ata1.00: status: { DRDY }
  174. [  398.403432] ata1.00: failed command: WRITE FPDMA QUEUED
  175. [  398.420282] ata1.00: cmd 61/00:f0:00:80:44/04:00:01:00:00/40 tag 30 ncq 524288 out
  176. [  398.420290]          res 50/00:00:00:68:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  177. [  398.422938] ata1.00: status: { DRDY }
  178. [  398.425572] ata1: hard resetting link
  179. [  398.775807] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
  180. [  398.831841] ata1.00: configured for UDMA/133
  181. [  398.838022] ata1: EH complete
  182. [  398.848745] ata1: limiting SATA link speed to 1.5 Gbps
  183. [  398.863119] ata1.00: exception Emask 0x10 SAct 0x7e00 SErr 0x400100 action 0x6 frozen
  184. [  398.868014] ata1.00: irq_stat 0x08000000, interface fatal error
  185. [  398.871679] ata1: SError: { UnrecovData Handshk }
  186. [  398.883849] ata1.00: failed command: WRITE FPDMA QUEUED
  187. [  398.900639] ata1.00: cmd 61/00:48:00:80:44/04:00:01:00:00/40 tag 9 ncq 524288 out
  188. [  398.900647]          res 50/00:00:00:80:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  189. [  398.903285] ata1.00: status: { DRDY }
  190. [  398.907467] ata1.00: failed command: WRITE FPDMA QUEUED
  191. [  398.925881] ata1.00: cmd 61/00:50:00:7c:44/04:00:01:00:00/40 tag 10 ncq 524288 out
  192. [  398.925889]          res 50/00:00:00:80:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  193. [  398.936066] ata1.00: status: { DRDY }
  194. [  398.940257] ata1.00: failed command: WRITE FPDMA QUEUED
  195. [  398.961455] ata1.00: cmd 61/00:58:00:78:44/04:00:01:00:00/40 tag 11 ncq 524288 out
  196. [  398.961463]          res 50/00:00:00:80:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  197. [  398.964099] ata1.00: status: { DRDY }
  198. [  398.968281] ata1.00: failed command: WRITE FPDMA QUEUED
  199. [  398.985141] ata1.00: cmd 61/00:60:00:74:44/04:00:01:00:00/40 tag 12 ncq 524288 out
  200. [  398.985149]          res 50/00:00:00:80:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  201. [  398.991424] ata1.00: status: { DRDY }
  202. [  398.995621] ata1.00: failed command: WRITE FPDMA QUEUED
  203. [  399.014984] ata1.00: cmd 61/00:68:00:70:44/04:00:01:00:00/40 tag 13 ncq 524288 out
  204. [  399.014992]          res 50/00:00:00:80:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  205. [  399.017689] ata1.00: status: { DRDY }
  206. [  399.021879] ata1.00: failed command: WRITE FPDMA QUEUED
  207. [  399.039356] ata1.00: cmd 61/00:70:00:6c:44/04:00:01:00:00/40 tag 14 ncq 524288 out
  208. [  399.039364]          res 50/00:00:00:80:44/00:04:01:00:00/40 Emask 0x10 (ATA bus error)
  209. [  399.044950] ata1.00: status: { DRDY }
  210. [  399.047591] ata1: hard resetting link
  211. [  399.553301] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
  212. [  399.594517] ata1.00: configured for UDMA/133
  213. [  399.612671] ata1: EH complete
Copy the Code

Other notes:
  • They happens both with a Samsung ST1000LM024 and a Hitachi HTS541010A9E680 disks. Both disks works perfectly with no errors when they are connected to my PC (Intel Core i5 + Ubuntu 15.04)
  • Usually these errors appears in the first minutes of the Banana Pro activity with the Hitachi HD. With the Samsung disk, you can see these errors also after more minutes of uptime, but less frequently.

Is it normal ?

Is it possible to have a newer kernel (i.e.: 4.X ?) to test ?

Thank you
Giovanni



igorpec  
Not normal. I would try with other power supply, cables.

tkaiser  
Another kernel would not help since it's a physical problem. Can you install smartmontools ("apt-get install smartmontools") and check both disks vor attribute 199 (if CRC errors increase then usually this is a sign for broken cables/connectors -- in case of undervoltage other S.M.A.R.T. attributes like an increasing start/stop count might be interesting)

giox969  
Edited by giox969 at Thu Aug 20, 2015 16:33

Thank you for answering. I think your answers brought me in the right way.

The Samsung HDD: the errors were a bit different: I cannot see 1,5Gbps fallback in speed at the end of the write errors. I can see only SATA write errors that occours during writes. After exchanging the power supply with another 2A (the same max current as the previous one!), these errors went away, and the Samsung HDD is now working fine. It was a power supply problem.

The Hitachi HDD: still experiencing the error reported on my 1st post, but only one time after a reboot and a "big" write. As you can see from the log, the kernel fallback to 1,5Gbps. After this fallback, the Hitachi HDD works fine for all its life, even after a spin-down and spin-up. I'm still investigating on it.
edit: as a workaround I added kernel parameter libata.force=1.5 in uEnv.txt, so I have no longer SATA speed fallback.

Than you again.


tkaiser  
Edited by tkaiser at Fri Aug 21, 2015 02:50
giox969 replied at Thu Aug 20, 2015 15:00
After exchanging the power supply with another 2A (the same max current as the previous one!)

It's a common misunderstanding that it's the amperage rating that matters. Boards using the crappy Micro-USB connector mostly suffer from undervoltage and voltage drops (what makes this even worse: The more load the system needs the more the voltage decreases). Many USB cables are faulty regarding power and the tiny contacts of the crappy connector do the rest.

http://www.lemaker.org/forum.php ... =8312&fromuid=33332
http://forum.armbian.com/index.p ... ts-for-rpi-monitor/

You have to log in before you can reply Login | Sign Up

Points Rules