informatica:medios_de_almacenamiento:smart
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
| informatica:medios_de_almacenamiento:smart [2023/02/18 15:45] – tempwin | informatica:medios_de_almacenamiento:smart [2023/02/25 16:35] (actual) – [Revisar estado SMART] tempwin | ||
|---|---|---|---|
| Línea 5: | Línea 5: | ||
| Si un disco comienza a fallar, las siguientes estadísticas de SMART irán en aumento: | Si un disco comienza a fallar, las siguientes estadísticas de SMART irán en aumento: | ||
| - | * SMART 5 – Reallocated_Sector_Count. | + | |
| - | * SMART 187 – Reported_Uncorrectable_Errors. | + | |
| - | * SMART 188 – Command_Timeout. | + | |
| - | * SMART 197 – Current_Pending_Sector_Count. | + | |
| - | * SMART 198 – Offline_Uncorrectable. | + | |
| | | ||
| ===== Ejemplo ===== | ===== Ejemplo ===== | ||
| Línea 41: | Línea 41: | ||
| |______ P prefailure warning | |______ P prefailure warning | ||
| </ | </ | ||
| + | |||
| + | ===== Herramientas ===== | ||
| + | |||
| + | En Linux, el paquete '' | ||
| + | |||
| + | ==== Comprobar si está activo SMART ==== | ||
| + | |||
| + | Si instalamos el paquete '' | ||
| + | |||
| + | 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: | ||
| + | Device Model: | ||
| + | Serial Number: | ||
| + | LU WWN Device Id: 5 002538 e49a08082 | ||
| + | Firmware Version: RVT03B6Q | ||
| + | User Capacity: | ||
| + | Sector Size: 512 bytes logical/ | ||
| + | Rotation Rate: Solid State Device | ||
| + | Form Factor: | ||
| + | TRIM Command: | ||
| + | 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 | ||
| + | </ | ||
| + | |||
| + | Las últimas dos líneas nos indican si el dispositivo soporta SMART y si está activo. | ||
| + | |||
| + | Si apareciese //SMART support is: Disabled//, podríamos activarlo con: | ||
| + | |||
| + | < | ||
| + | smartctl -s on /dev/sda | ||
| + | </ | ||
| + | |||
| + | ==== Revisar estado SMART ==== | ||
| + | |||
| + | < | ||
| + | smartctl -a /dev/sda | ||
| + | </ | ||
| + | |||
| + | Ejemplo de salida: | ||
| + | |||
| + | < | ||
| + | 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: | ||
| + | Device Model: | ||
| + | Serial Number: | ||
| + | LU WWN Device Id: 5 002538 e49a08082 | ||
| + | Firmware Version: RVT03B6Q | ||
| + | User Capacity: | ||
| + | Sector Size: 512 bytes logical/ | ||
| + | Rotation Rate: Solid State Device | ||
| + | Form Factor: | ||
| + | TRIM Command: | ||
| + | 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:27:20 2023 CET | ||
| + | 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: | ||
| + | was never started. | ||
| + | Auto Offline Data Collection: Disabled. | ||
| + | Self-test execution status: | ||
| + | without error or no self-test has ever | ||
| + | been run. | ||
| + | Total time to complete Offline | ||
| + | data collection: ( 0) seconds. | ||
| + | Offline data collection | ||
| + | capabilities: | ||
| + | Auto Offline data collection on/off support. | ||
| + | Suspend Offline collection upon new | ||
| + | command. | ||
| + | No Offline surface scan supported. | ||
| + | Self-test supported. | ||
| + | No Conveyance Self-test supported. | ||
| + | Selective Self-test supported. | ||
| + | SMART capabilities: | ||
| + | power-saving mode. | ||
| + | Supports SMART auto save timer. | ||
| + | Error logging capability: | ||
| + | General Purpose Logging supported. | ||
| + | Short self-test routine | ||
| + | recommended polling time: ( 2) minutes. | ||
| + | Extended self-test routine | ||
| + | recommended polling time: ( 85) minutes. | ||
| + | SCT capabilities: | ||
| + | SCT Error Recovery Control supported. | ||
| + | SCT Feature Control supported. | ||
| + | SCT Data Table supported. | ||
| + | |||
| + | SMART Attributes Data Structure revision number: 1 | ||
| + | Vendor Specific SMART Attributes with Thresholds: | ||
| + | ID# ATTRIBUTE_NAME | ||
| + | 5 Reallocated_Sector_Ct | ||
| + | 9 Power_On_Hours | ||
| + | 12 Power_Cycle_Count | ||
| + | 177 Wear_Leveling_Count | ||
| + | 179 Used_Rsvd_Blk_Cnt_Tot | ||
| + | 181 Program_Fail_Cnt_Total | ||
| + | 182 Erase_Fail_Count_Total | ||
| + | 183 Runtime_Bad_Block | ||
| + | 187 Uncorrectable_Error_Cnt 0x0032 | ||
| + | 190 Airflow_Temperature_Cel 0x0032 | ||
| + | 195 ECC_Error_Rate | ||
| + | 199 CRC_Error_Count | ||
| + | 235 POR_Recovery_Count | ||
| + | 241 Total_LBAs_Written | ||
| + | |||
| + | SMART Error Log Version: 1 | ||
| + | No Errors Logged | ||
| + | |||
| + | SMART Self-test log structure revision number 1 | ||
| + | No self-tests have been logged. | ||
| + | |||
| + | SMART Selective self-test log data structure revision number 1 | ||
| + | | ||
| + | 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 | ||
| + | 256 0 65535 Read_scanning was never started | ||
| + | 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. | ||
| + | </ | ||
| + | |||
| + | Otro ejemplo, pero con un disco mecánico (el anterior era SSD): | ||
| + | |||
| + | < | ||
| + | $ smartctl -a /dev/sdb | ||
| + | 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: | ||
| + | Device Model: | ||
| + | Serial Number: | ||
| + | LU WWN Device Id: 5 000c50 045faf109 | ||
| + | Firmware Version: CC3C | ||
| + | User Capacity: | ||
| + | Sector Sizes: | ||
| + | Rotation Rate: 5900 rpm | ||
| + | Device is: In smartctl database 7.3/5319 | ||
| + | ATA Version is: | ||
| + | SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s) | ||
| + | Local Time is: Sat Feb 25 16:29:46 2023 CET | ||
| + | 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: | ||
| + | was completed without error. | ||
| + | Auto Offline Data Collection: Enabled. | ||
| + | Self-test execution status: | ||
| + | without error or no self-test has ever | ||
| + | been run. | ||
| + | Total time to complete Offline | ||
| + | data collection: ( 612) seconds. | ||
| + | Offline data collection | ||
| + | capabilities: | ||
| + | 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: | ||
| + | power-saving mode. | ||
| + | Supports SMART auto save timer. | ||
| + | Error logging capability: | ||
| + | General Purpose Logging supported. | ||
| + | Short self-test routine | ||
| + | recommended polling time: ( 1) minutes. | ||
| + | Extended self-test routine | ||
| + | recommended polling time: ( 338) minutes. | ||
| + | Conveyance self-test routine | ||
| + | recommended polling time: ( 2) minutes. | ||
| + | SCT capabilities: | ||
| + | SCT Feature Control supported. | ||
| + | SCT Data Table supported. | ||
| + | |||
| + | SMART Attributes Data Structure revision number: 10 | ||
| + | Vendor Specific SMART Attributes with Thresholds: | ||
| + | ID# ATTRIBUTE_NAME | ||
| + | 1 Raw_Read_Error_Rate | ||
| + | 3 Spin_Up_Time | ||
| + | 4 Start_Stop_Count | ||
| + | 5 Reallocated_Sector_Ct | ||
| + | 7 Seek_Error_Rate | ||
| + | 9 Power_On_Hours | ||
| + | 10 Spin_Retry_Count | ||
| + | 12 Power_Cycle_Count | ||
| + | 183 Runtime_Bad_Block | ||
| + | 184 End-to-End_Error | ||
| + | 187 Reported_Uncorrect | ||
| + | 188 Command_Timeout | ||
| + | 189 High_Fly_Writes | ||
| + | 190 Airflow_Temperature_Cel 0x0022 | ||
| + | 191 G-Sense_Error_Rate | ||
| + | 192 Power-Off_Retract_Count 0x0032 | ||
| + | 193 Load_Cycle_Count | ||
| + | 194 Temperature_Celsius | ||
| + | 195 Hardware_ECC_Recovered | ||
| + | 197 Current_Pending_Sector | ||
| + | 198 Offline_Uncorrectable | ||
| + | 199 UDMA_CRC_Error_Count | ||
| + | 240 Head_Flying_Hours | ||
| + | 241 Total_LBAs_Written | ||
| + | 242 Total_LBAs_Read | ||
| + | |||
| + | SMART Error Log Version: 1 | ||
| + | No Errors Logged | ||
| + | |||
| + | SMART Self-test log structure revision number 1 | ||
| + | No self-tests have been logged. | ||
| + | |||
| + | SMART Selective self-test log data structure revision number 1 | ||
| + | | ||
| + | 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. | ||
| + | </ | ||
| + | |||
| + | ===== Recursos ===== | ||
| + | |||
| + | * [[https:// | ||
informatica/medios_de_almacenamiento/smart.1676731500.txt.gz · Última modificación: por tempwin
