informatique:logiciels:smartmontools
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
informatique:logiciels:smartmontools [2009/06/08 21:19] – créée pteu | informatique:logiciels:smartmontools [2014/10/15 16:53] (current) – Champs SMART à surveiller pteu | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{tag> | + | {{tag> |
======smartmontools====== | ======smartmontools====== | ||
- | [[http:// | + | [[http:// |
=====smartctl===== | =====smartctl===== | ||
+ | |||
+ | Pour savoir si SMART est activé sur le disque ''/ | ||
+ | smartctl -i /dev/sda | ||
+ | | ||
+ | Home page is http:// | ||
+ | |||
+ | === START OF INFORMATION SECTION === | ||
+ | | ||
+ | | ||
+ | | ||
+ | User Capacity: | ||
+ | | ||
+ | ATA Version is: 8 | ||
+ | ATA Standard is: ATA-8-ACS revision 3b | ||
+ | Local Time is: Tue Sep 1 16:33:17 2009 CEST | ||
+ | |||
+ | | ||
+ | |||
+ | SMART support is: Available - device has SMART capability. | ||
+ | SMART support is: Enabled | ||
+ | |||
+ | Pour activer le SMART : | ||
+ | smartctl -s on /dev/sda | ||
+ | |||
+ | Voir le status du disque (**H**ealth) : | ||
+ | smartctl -H /dev/sda | ||
+ | === START OF READ SMART DATA SECTION === | ||
+ | SMART overall-health self-assessment test result: PASSED | ||
Lancer un test rapide/ | Lancer un test rapide/ | ||
smartctl --test=short /dev/sda | smartctl --test=short /dev/sda | ||
smartctl --test=long /dev/sda | smartctl --test=long /dev/sda | ||
+ | Pour arrêter le test il faut saisir '' | ||
- | Pour consulter les résultats de ce test : | + | Pour consulter les résultats de ce test (il faut attendre 2 min qu'il se termine) |
smartctl -l selftest /dev/sda | smartctl -l selftest /dev/sda | ||
+ | === START OF READ SMART DATA SECTION === | ||
+ | SMART Self-test log structure revision number 0 | ||
+ | | ||
+ | | ||
+ | # 1 Short offline | ||
+ | # 2 Short offline | ||
+ | |||
+ | Pour lister les erreurs sur un disque : | ||
+ | smartctl -l error /dev/sda | ||
+ | === START OF READ SMART DATA SECTION === | ||
+ | SMART Error Log Version: 1 | ||
+ | No Errors Logged | ||
Obtenir des informations sur le disque ''/ | Obtenir des informations sur le disque ''/ | ||
smartctl -A /dev/sda | smartctl -A /dev/sda | ||
+ | === START OF READ SMART DATA SECTION === | ||
+ | SMART Attributes Data Structure revision number: 16 | ||
+ | | ||
+ | ID# ATTRIBUTE_NAME | ||
+ | 1 Raw_Read_Error_Rate | ||
+ | 3 Spin_Up_Time | ||
+ | 4 Start_Stop_Count | ||
+ | 5 Reallocated_Sector_Ct | ||
+ | 7 Seek_Error_Rate | ||
+ | 8 Seek_Time_Performance | ||
+ | 9 Power_On_Hours | ||
+ | 10 Spin_Retry_Count | ||
+ | 11 Calibration_Retry_Count 0x0012 | ||
+ | 12 Power_Cycle_Count | ||
+ | 13 Read_Soft_Error_Rate | ||
+ | 183 Unknown_Attribute | ||
+ | 184 Unknown_Attribute | ||
+ | 187 Reported_Uncorrect | ||
+ | 188 Unknown_Attribute | ||
+ | 190 Airflow_Temperature_Cel 0x0022 | ||
+ | 194 Temperature_Celsius | ||
+ | 195 Hardware_ECC_Recovered | ||
+ | 196 Reallocated_Event_Count 0x0032 | ||
+ | 197 Current_Pending_Sector | ||
+ | 198 Offline_Uncorrectable | ||
+ | 199 UDMA_CRC_Error_Count | ||
+ | 200 Multi_Zone_Error_Rate | ||
+ | 201 Soft_Read_Error_Rate | ||
Obtenir des informations détaillées sur le disque ''/ | Obtenir des informations détaillées sur le disque ''/ | ||
smartctl -a /dev/sda | smartctl -a /dev/sda | ||
+ | |||
+ | =====smartd===== | ||
+ | |||
+ | Pour assurer une surveillance H24 et envoyer une alerte par mail ou syslog, smartd est un démon qu'il faut lancer au démarrage du système. Pour cela, éditer ''/ | ||
+ | vi / | ||
+ | # uncomment to start smartd on system startup | ||
+ | | ||
+ | |||
+ | Pour juste lancer le démon : | ||
+ | / | ||
+ | |||
+ | =====Données SMART à surveiller===== | ||
+ | |||
+ | Voici les champs SMART à surveiller car ils indiquent un " | ||
+ | |||
+ | Attention les disques (durs ou SSD) n'ont pas tous les mêmes champs SMART, qui varient en fonction du type de disque mais aussi de la marque ! | ||
+ | |||
+ | ^ID ^Nom ^ Description^ | ||
+ | |05 |Reallocated Sectors Count |Indique le nombre de secteurs réalloués, | ||
+ | |0A |Spin Retry Count | Sous-tend un pb mécanique du HDD| | ||
+ | |C4 |Reallocation Event Count | | ||
+ | |C5 |Current Pending Sector Count | | ||
+ | |C6 |Uncorrectable Sector Count | compteur d' | ||
+ | |C7 |UltraDMA CRC Error Count | compteur de reconnexion du disque dur ; peut venir d'un problème de câble (SATA)| | ||
+ | |||
+ | |||
+ | =====Liens===== | ||
+ | |||
+ | * [[http:// |
informatique/logiciels/smartmontools.1244495963.txt.gz · Last modified: 2013/10/14 20:55 (external edit)