Advertisement
remim

raspberrypi : badblocks et smartctl - USB-SATA 2537:1066

Jan 24th, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.57 KB | None | 0 0
  1. # Mon 29 Jan 00:46:35 UTC 2018
  2. # Échec : Unknown code ext2 70 adding to in-memory bad block list
  3.  
  4. ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
  5. 5 Reallocated_Sector_Ct 0x0033 095 095 010 Pre-fail Always - 6640
  6. 190 Airflow_Temperature_Cel 0x0022 066 050 045 Old_age Always - 34 (Min/Max 21/39)
  7. 197 Current_Pending_Sector 0x0012 099 089 000 Old_age Always - 168
  8.  
  9. From block 0 to 3907018583
  10. Testing with pattern 0xaa: done
  11. Reading and comparing: badblocks: Unknown code ext2 70 adding to in-memory bad block list
  12.  
  13. real 3248m54.478s
  14. user 46m19.510s
  15. sys 173m28.120s
  16.  
  17. #
  18.  
  19. # Sun 28 Jan 13:23:14 UTC 2018
  20. # Nouvel essai avec le Rasperry Pi 3B : échec.
  21. # avec la mémoire partagée dédiée au GPU mise au minimum de 16 Mo
  22. # login graphique désactivé
  23. # zram non utilisé pour ce test
  24. # Raspbian limitée aux services du système (raspbian lite conseillée)
  25. # toutes les Interfacing Options (Configure connections to peripherals) désactivées sauf SSH
  26. │ P1 Camera Enable/Disable connection to the │
  27. │ P2 SSH Enable/Disable remote command lin │
  28. │ P3 VNC Enable/Disable graphical remote a │
  29. │ P4 SPI Enable/Disable automatic loading │
  30. │ P5 I2C Enable/Disable automatic loading │
  31. │ P6 Serial Enable/Disable shell and kernel m │
  32. │ P7 1-Wire Enable/Disable one-wire interface │
  33. │ P8 Remote GPIO Enable/Disable remote access to G │
  34.  
  35. root@raspberrypi:~# free -ht
  36. total used free shared buffers cached
  37. Mem: 970M 258M 712M 6.6M 58M 135M
  38. -/+ buffers/cache: 64M 906M
  39. Swap: 511M 0B 511M
  40. Total: 1.4G 258M 1.2G
  41.  
  42. SWAP de 512 Mo # L'utilité reste à démontrer...
  43. root@raspberrypi:~# swapon -v
  44. NAME TYPE SIZE USED PRIO
  45. /var/swap file 512M 0B -1
  46.  
  47. root@raspberrypi:~# time badblocks -s -v -w -o /root/sda-pi-4TB-25371066-badblocks-o.txt /dev/sda
  48. Checking for bad blocks in read-write mode
  49. From block 0 to 3907018583
  50. Testing with pattern 0xaa: done
  51. Reading and comparing: 30.73% done, 50:35:09 elapsed. (0/0/0 errors)
  52.  
  53. root@raspberrypi:~# smartctl /dev/sda -a -d sat | grep -e Reallocated_Sector_Ct -e Current_Pending_Sector -e RAW_VALUE -e Airflow_Temperature_Cel
  54. ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
  55. 5 Reallocated_Sector_Ct 0x0033 096 096 010 Pre-fail Always - 5648
  56. 190 Airflow_Temperature_Cel 0x0022 063 050 045 Old_age Always - 37 (Min/Max 21/38)
  57. 197 Current_Pending_Sector 0x0012 100 089 000 Old_age Always - 0
  58.  
  59. # /Nouvel essai avec le Rasperry Pi 3B
  60.  
  61. ---------------
  62. #! Jan 26 00:15
  63. #! [111074.236251] Out of memory: Kill process 21652 (badblocks) score 854 or sacrifice child
  64. #! [111074.236268] Killed process 21652 (badblocks) total-vm:867932kB, anon-rss:788596kB, file-rss:0kB, shmem-rss:0kB
  65. #!
  66. #! 2886026367 / 3907018583 secteurs effectués (écriture) avec le motif 0xaa
  67.  
  68. Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux (modèle 3B)
  69. sur MGE600 / 12 V DC 55 Ah
  70.  
  71. adaptateur USB-SATA ID 2537:1066 https://usb-ids.gowdy.us/read/UD/2537/1066
  72. https://www.amazon.fr/gp/product/B01EKW50O4/
  73.  
  74. (en screen)
  75.  
  76. root@raspberrypi:~# time badblocks -s -v -w -o /root/sda-pi-4TB-dock-badblocks-o.txt /dev/sda
  77. Checking for bad blocks in read-write mode
  78. From block 0 to 3907018583
  79. Testing with pattern 0xaa: 0.03% done, 0:40 elapsed. (0/0/0 errors)
  80.  
  81. [detached from 19950.pts-0.raspberrypi]
  82.  
  83. Les registres à surveiller (https://www.debian-fr.org/t/evaluation-des-dommages-sur-un-raid6-logiciel-conduite-a-tenir/75678/4)
  84. Reallocated sector count : secteurs réalloués (suite à une écriture ou une lecture réussie)
  85. Current pending sectors : secteurs dont la lecture a échoué
  86.  
  87. root@raspberrypi:~# date && smartctl /dev/sda -a -d sat | grep -e Reallocated_Sector_Ct -e Current_Pending_Sector -e RAW_VALUE && ls -lh /root/sda-pi-4TB-dock-badblocks-o.txt
  88. Wed 24 Jan 19:29:03 UTC 2018
  89. ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
  90. 5 Reallocated_Sector_Ct 0x0033 097 097 010 Pre-fail Always - 4016
  91. 197 Current_Pending_Sector 0x0012 100 089 000 Old_age Always - 0
  92. -rw-r--r-- 1 root root 0 Jan 24 18:32 /root/sda-pi-4TB-dock-badblocks-o.txt
  93.  
  94. La totale :
  95.  
  96. root@raspberrypi:~# smartctl /dev/sda -a -d sat
  97. smartctl 6.4 2014-10-07 r4002 [armv7l-linux-4.9.35-v7+] (local build)
  98. Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
  99.  
  100. === START OF INFORMATION SECTION ===
  101. Model Family: Seagate NAS HDD
  102. Device Model: ST4000VN000-1H4168
  103. Serial Number: W300QPNC
  104. LU WWN Device Id: 5 000c50 06deb2658
  105. Firmware Version: SC43
  106. User Capacity: 4,000,787,030,016 bytes [4.00 TB]
  107. Sector Sizes: 512 bytes logical, 4096 bytes physical
  108. Rotation Rate: 5900 rpm
  109. Form Factor: 3.5 inches
  110. Device is: In smartctl database [for details use: -P show]
  111. ATA Version is: ACS-2, ACS-3 T13/2161-D revision 3b
  112. SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
  113. Local Time is: Wed Jan 24 19:19:39 2018 UTC
  114. SMART support is: Available - device has SMART capability.
  115. SMART support is: Enabled
  116.  
  117. === START OF READ SMART DATA SECTION ===
  118. SMART Status not supported: Incomplete response, ATA output registers missing
  119. SMART overall-health self-assessment test result: PASSED
  120. Warning: This result is based on an Attribute check.
  121.  
  122. General SMART Values:
  123. Offline data collection status: (0x00) Offline data collection activity
  124. was never started.
  125. Auto Offline Data Collection: Disabled.
  126. Self-test execution status: ( 0) The previous self-test routine completed
  127. without error or no self-test has ever
  128. been run.
  129. Total time to complete Offline
  130. data collection: ( 107) seconds.
  131. Offline data collection
  132. capabilities: (0x73) SMART execute Offline immediate.
  133. Auto Offline data collection on/off support.
  134. Suspend Offline collection upon new
  135. command.
  136. No Offline surface scan supported.
  137. Self-test supported.
  138. Conveyance Self-test supported.
  139. Selective Self-test supported.
  140. SMART capabilities: (0x0003) Saves SMART data before entering
  141. power-saving mode.
  142. Supports SMART auto save timer.
  143. Error logging capability: (0x01) Error logging supported.
  144. General Purpose Logging supported.
  145. Short self-test routine
  146. recommended polling time: ( 1) minutes.
  147. Extended self-test routine
  148. recommended polling time: ( 539) minutes.
  149. Conveyance self-test routine
  150. recommended polling time: ( 2) minutes.
  151. SCT capabilities: (0x10bd) SCT Status supported.
  152. SCT Error Recovery Control supported.
  153. SCT Feature Control supported.
  154. SCT Data Table supported.
  155.  
  156. SMART Attributes Data Structure revision number: 10
  157. Vendor Specific SMART Attributes with Thresholds:
  158. ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
  159. 1 Raw_Read_Error_Rate 0x000f 118 082 006 Pre-fail Always - 187867968
  160. 3 Spin_Up_Time 0x0003 092 091 000 Pre-fail Always - 0
  161. 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 250
  162. 5 Reallocated_Sector_Ct 0x0033 097 097 010 Pre-fail Always - 4016
  163. 7 Seek_Error_Rate 0x000f 082 060 030 Pre-fail Always - 4493847504
  164. 9 Power_On_Hours 0x0032 063 063 000 Old_age Always - 33166
  165. 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
  166. 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 248
  167. 184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
  168. 187 Reported_Uncorrect 0x0032 001 001 000 Old_age Always - 303
  169. 188 Command_Timeout 0x0032 100 099 000 Old_age Always - 4295032833
  170. 189 High_Fly_Writes 0x003a 001 001 000 Old_age Always - 846
  171. 190 Airflow_Temperature_Cel 0x0022 064 050 045 Old_age Always - 36 (Min/Max 21/36)
  172. 191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
  173. 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 47
  174. 193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 733
  175. 194 Temperature_Celsius 0x0022 036 050 000 Old_age Always - 36 (0 16 0 0 0)
  176. 197 Current_Pending_Sector 0x0012 100 089 000 Old_age Always - 0
  177. 198 Offline_Uncorrectable 0x0010 100 089 000 Old_age Offline - 0
  178. 199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
  179.  
  180. SMART Error Log Version: 1
  181. ATA Error Count: 304 (device log contains only the most recent five errors)
  182. CR = Command Register [HEX]
  183. FR = Features Register [HEX]
  184. SC = Sector Count Register [HEX]
  185. SN = Sector Number Register [HEX]
  186. CL = Cylinder Low Register [HEX]
  187. CH = Cylinder High Register [HEX]
  188. DH = Device/Head Register [HEX]
  189. DC = Device Command Register [HEX]
  190. ER = Error register [HEX]
  191. ST = Status register [HEX]
  192. Powered_Up_Time is measured from power on, and printed as
  193. DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
  194. SS=sec, and sss=millisec. It "wraps" after 49.710 days.
  195.  
  196. Error 304 occurred at disk power-on lifetime: 32978 hours (1374 days + 2 hours)
  197. When the command that caused the error occurred, the device was active or idle.
  198.  
  199. After command completion occurred, registers were:
  200. ER ST SC SN CL CH DH
  201. -- -- -- -- -- -- --
  202. 40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
  203.  
  204. Commands leading to the command that caused the error were:
  205. CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
  206. -- -- -- -- -- -- -- -- ---------------- --------------------
  207. 60 00 40 ff ff ff 4f 00 9d+05:10:57.940 READ FPDMA QUEUED
  208. 60 00 40 ff ff ff 4f 00 9d+05:10:57.700 READ FPDMA QUEUED
  209. 60 00 40 ff ff ff 4f 00 9d+05:10:57.700 READ FPDMA QUEUED
  210. 60 00 40 ff ff ff 4f 00 9d+05:10:57.289 READ FPDMA QUEUED
  211. 60 00 40 ff ff ff 4f 00 9d+05:10:53.256 READ FPDMA QUEUED
  212.  
  213. Error 303 occurred at disk power-on lifetime: 32978 hours (1374 days + 2 hours)
  214. When the command that caused the error occurred, the device was active or idle.
  215.  
  216. After command completion occurred, registers were:
  217. ER ST SC SN CL CH DH
  218. -- -- -- -- -- -- --
  219. 40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
  220.  
  221. Commands leading to the command that caused the error were:
  222. CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
  223. -- -- -- -- -- -- -- -- ---------------- --------------------
  224. 60 00 40 ff ff ff 4f 00 9d+05:05:12.225 READ FPDMA QUEUED
  225. 60 00 40 ff ff ff 4f 00 9d+05:05:12.215 READ FPDMA QUEUED
  226. 60 00 40 ff ff ff 4f 00 9d+05:05:12.204 READ FPDMA QUEUED
  227. 60 00 40 ff ff ff 4f 00 9d+05:05:12.204 READ FPDMA QUEUED
  228. 60 00 40 ff ff ff 4f 00 9d+05:05:12.195 READ FPDMA QUEUED
  229.  
  230. Error 302 occurred at disk power-on lifetime: 32978 hours (1374 days + 2 hours)
  231. When the command that caused the error occurred, the device was active or idle.
  232.  
  233. After command completion occurred, registers were:
  234. ER ST SC SN CL CH DH
  235. -- -- -- -- -- -- --
  236. 40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
  237.  
  238. Commands leading to the command that caused the error were:
  239. CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
  240. -- -- -- -- -- -- -- -- ---------------- --------------------
  241. 60 00 40 ff ff ff 4f 00 9d+05:05:02.307 READ FPDMA QUEUED
  242. 60 00 40 ff ff ff 4f 00 9d+05:05:02.307 READ FPDMA QUEUED
  243. 60 00 40 ff ff ff 4f 00 9d+05:05:02.307 READ FPDMA QUEUED
  244. 60 00 40 ff ff ff 4f 00 9d+05:05:02.306 READ FPDMA QUEUED
  245. 60 00 40 ff ff ff 4f 00 9d+05:05:02.306 READ FPDMA QUEUED
  246.  
  247. Error 301 occurred at disk power-on lifetime: 32978 hours (1374 days + 2 hours)
  248. When the command that caused the error occurred, the device was active or idle.
  249.  
  250. After command completion occurred, registers were:
  251. ER ST SC SN CL CH DH
  252. -- -- -- -- -- -- --
  253. 40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
  254.  
  255. Commands leading to the command that caused the error were:
  256. CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
  257. -- -- -- -- -- -- -- -- ---------------- --------------------
  258. 60 00 40 ff ff ff 4f 00 9d+05:04:51.467 READ FPDMA QUEUED
  259. 60 00 40 ff ff ff 4f 00 9d+05:04:51.467 READ FPDMA QUEUED
  260. 60 00 40 ff ff ff 4f 00 9d+05:04:51.458 READ FPDMA QUEUED
  261. 60 00 40 ff ff ff 4f 00 9d+05:04:51.449 READ FPDMA QUEUED
  262. 60 00 40 ff ff ff 4f 00 9d+05:04:51.439 READ FPDMA QUEUED
  263.  
  264. Error 300 occurred at disk power-on lifetime: 32978 hours (1374 days + 2 hours)
  265. When the command that caused the error occurred, the device was active or idle.
  266.  
  267. After command completion occurred, registers were:
  268. ER ST SC SN CL CH DH
  269. -- -- -- -- -- -- --
  270. 40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
  271.  
  272. Commands leading to the command that caused the error were:
  273. CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
  274. -- -- -- -- -- -- -- -- ---------------- --------------------
  275. 60 00 40 ff ff ff 4f 00 9d+05:04:38.301 READ FPDMA QUEUED
  276. 60 00 40 ff ff ff 4f 00 9d+05:04:38.301 READ FPDMA QUEUED
  277. 60 00 40 ff ff ff 4f 00 9d+05:04:38.301 READ FPDMA QUEUED
  278. 60 00 40 ff ff ff 4f 00 9d+05:04:38.301 READ FPDMA QUEUED
  279. 60 00 40 ff ff ff 4f 00 9d+05:04:38.301 READ FPDMA QUEUED
  280.  
  281. SMART Self-test log structure revision number 1
  282. No self-tests have been logged. [To run self-tests, use: smartctl -t]
  283.  
  284. SMART Selective self-test log data structure revision number 1
  285. SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
  286. 1 0 0 Not_testing
  287. 2 0 0 Not_testing
  288. 3 0 0 Not_testing
  289. 4 0 0 Not_testing
  290. 5 0 0 Not_testing
  291. Selective self-test flags (0x0):
  292. After scanning selected spans, do NOT read-scan remainder of disk.
  293. If Selective self-test is pending on power-up, resume after 0 minute delay.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement