D'après wikipedia, S.M.A.R.T. ou littéralement Technique d’Auto-surveillance, d’Analyse et de Rapport, est un système de surveillance de disques dur.
Il permet donc de faire un diagnostic selon plusieurs indicateurs de fiabilité dans le but d’anticiper les erreurs sur le disque dur.
Nous verrons comment lire les attributs SMART grâce à la commande smartctl dans les environnements GNU/Linux.
root@host:~# apt-get update && apt-get install smartmontools
root@host:~# smartctl -i /dev/<device>
root@host:~# smartctl -s on /dev/<device>
root@host:~# smartctl -a /dev/<device>
root@host:~# smartctl -a /dev/<device> | grep -Ei "Reallocated|Spin.*Retry|SATA*Downshift|End-to-End|Reported.*Uncorrectable|Timeout|Reallocation|Current.*Pending|Uncorrect|TA.*Counter|Drive.*Life.*Protection"
root@host:~# smartctl -a -d megaraid,8 /dev/sda
root@host:~# smartctl -a -d cciss,0 /dev/sda
Nous allons voir ici comment lancer des tests SMART sur le disque.
root@host:~# smartctl -t short /dev/<device>
root@host:~# smartctl -t long /dev/<device>
root@host:~# smartctl -t conveyance /dev/<device>
root@host:~# smartctl -l selftest /dev/<device>
root@host:~# smartctl -H /dev/<device>
root@host:~# smartctl -l selftest /dev/<device>
root@host:~# smartctl -l error /dev/<device>
Contact :