SMARTMON – VERIFICANDO SAÚDE DO HD – LINUX/UNIX
Ferramenta para obter informações do HD e saúde do mesmo pelo Linux.
INSTALAÇÃO
Debian/Derivados
[simterm]# apt install smartmontools[/simterm]
Redhat/Derivados
[simterm]# yum install smartmontools[/simterm]
INFORMAÇÕES DO DISCO
O comando abaixo mostra informações do disco e para saber se o SMART está habilitado.
[simterm]# smartctl -i /dev/sda[/simterm]
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Hitachi Deskstar 7K1000.D Device Model: Hitachi HDS721050DLE630 Serial Number: MSK4215H1EJWKG LU WWN Device Id: 5 000cca 37cd43fba Firmware Version: MS1OA600 User Capacity: 500.107.862.016 bytes [500 GB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 7200 rpm Form Factor: 3.5 inches Device is: In smartctl database [for details use: -P show] ATA Version is: ATA8-ACS T13/1699-D revision 4 SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s) Local Time is: Tue Oct 9 10:55:03 2018 -03 SMART support is: Available - device has SMART capability. SMART support is: Enabled
Caso a opção marcada acima em negrito esteja “disabled”, habilite com o comando abaixo:
[simterm]# smartctl -s on /dev/sda[/simterm]
VERIFICANDO SAÚDE DO DISCO
Teste rápido dado pela controladora do disco:
[simterm]# smartctl -H /dev/sda[/simterm]
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED
Teste menos rápido, mas eficiente, o primeiro comando executa o teste e o segundo obtém o relatório:
[simterm] # smartctl -t short /dev/sda[/simterm]
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION === Sending command: "Execute SMART Short self-test routine immediately in off-line mode". Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful. Testing has begun. Please wait 1 minutes for test to complete. Test will complete after Tue Oct 9 11:08:13 2018
[simterm]# smartctl -l selftest /dev/sda[/simterm]
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed without error 00% 19356 -
Você pode executar também um teste longo (que dura cerca de uma hora) usando o parâmetro “-t long“.
FONTE
https://www.hardware.com.br/livros/ferramentas-linux/monitorando-saude-com-smart.html
Publicar comentário