¡Esta es una revisión vieja del documento!
Tabla de Contenidos
S.M.A.R.T.
Self-Monitoring, Analysis and Reporting Technology es un sistema de monitorización incluido en discos duros y SSD. Su principal función es detectar e generar informes sobre la salud / fiabilidad del disco con la intención de anticiparse a fallos de hardware inminentes.
Si un disco comienza a fallar, las siguientes estadísticas de SMART irán en aumento:
- SMART 5 – Reallocated_Sector_Count: representa el número de sectores encontrados como erróneos y que han sido apuntados a una zona especial del disco. Los discos nuevos tienen un valor de 0. Si este número aumenta constantemente con el tiempo, el futuro fallo del disco es inminente.
- SMART 187 – Reported_Uncorrectable_Errors.
- SMART 188 – Command_Timeout.
- SMART 197 – Current_Pending_Sector_Count: número de sectores inestables (no quiere decir que estén defectuosos), puede indicar problemas de hardware según siga creciendo el número
- SMART 198 – Offline_Uncorrectable.
Ejemplo
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE
1 Raw_Read_Error_Rate POSR-K 200 200 051 - 25
3 Spin_Up_Time POS--K 178 177 021 - 6083
4 Start_Stop_Count -O--CK 100 100 000 - 283
5 Reallocated_Sector_Ct PO--CK 200 200 140 - 0
7 Seek_Error_Rate -OSR-K 100 253 000 - 0
9 Power_On_Hours -O--CK 031 031 000 - 50733
10 Spin_Retry_Count -O--CK 100 100 000 - 0
11 Calibration_Retry_Count -O--CK 100 100 000 - 0
12 Power_Cycle_Count -O--CK 100 100 000 - 283
192 Power-Off_Retract_Count -O--CK 200 200 000 - 96
193 Load_Cycle_Count -O--CK 192 192 000 - 26689
194 Temperature_Celsius -O---K 122 110 000 - 28
196 Reallocated_Event_Count -O--CK 200 200 000 - 0
197 Current_Pending_Sector -O--CK 200 200 000 - 7
198 Offline_Uncorrectable ----CK 100 253 000 - 0
199 UDMA_CRC_Error_Count -O--CK 200 200 000 - 0
200 Multi_Zone_Error_Rate ---R-- 100 253 000 - 0
||||||_ K auto-keep
|||||__ C event count
||||___ R error rate
|||____ S speed/performance
||_____ O updated online
|______ P prefailure warning
Herramientas
En Linux, el paquete smartmontools ofrece herramientas para controlar y monitorizar dispositivos S.M.A.R.T.
Comprobar si está activo SMART
Si instalamos el paquete smartmontools, tendremos disponible el comando smartctl con el que podremos hacer todo tipo de consultas SMART.
Por ejemplo, para obtener información sobre el disco y saber si soporta SMART y está activo:
smartctl /dev/sda
Ejemplo de salida:
sudo smartctl -i /dev/sda smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.12-arch1-1] (local build) Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Samsung based SSDs Device Model: Samsung SSD 860 EVO 1TB Serial Number: S4CSNF0MA00815A LU WWN Device Id: 5 002538 e49a08082 Firmware Version: RVT03B6Q User Capacity: 1.000.204.886.016 bytes [1,00 TB] Sector Size: 512 bytes logical/physical Rotation Rate: Solid State Device Form Factor: 2.5 inches TRIM Command: Available, deterministic, zeroed Device is: In smartctl database 7.3/5319 ATA Version is: ACS-4 T13/BSR INCITS 529 revision 5 SATA Version is: SATA 3.2, 6.0 Gb/s (current: 3.0 Gb/s) Local Time is: Sat Feb 25 16:19:36 2023 CET SMART support is: Available - device has SMART capability. SMART support is: Enabled
