{"id":394,"date":"2018-10-09T11:23:35","date_gmt":"2018-10-09T14:23:35","guid":{"rendered":"http:\/\/www.bfnetworks.com.br\/?p=394"},"modified":"2022-07-15T10:18:34","modified_gmt":"2022-07-15T13:18:34","slug":"smartmon-verificando-saude-hd-linux","status":"publish","type":"post","link":"https:\/\/bfnetworks.com.br\/smartmon-verificando-saude-hd-linux\/","title":{"rendered":"SMARTMON – VERIFICANDO SA\u00daDE DO HD – LINUX\/UNIX"},"content":{"rendered":"

Ferramenta para obter informa\u00e7\u00f5es do HD e sa\u00fade do mesmo pelo Linux.<\/p>\n\n

INSTALA\u00c7\u00c3O <\/h3>\n\n\n

Debian\/Derivados<\/p>\n\n

\n
apt install smartmontools<\/div> <\/div>\n\n\n

Redhat\/Derivados<\/p>\n\n

\n
yum install smartmontools<\/div> <\/div>\n\n\n

INFORMA\u00c7\u00d5ES DO DISCO<\/h3>\n\n\n

O comando abaixo mostra informa\u00e7\u00f5es do disco e para saber se o SMART est\u00e1 habilitado.<\/p>\n\n

\n
smartctl -i \/dev\/sda<\/div> <\/div>\n\n\n
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build)\nCopyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org\n=== START OF INFORMATION SECTION ===\nModel Family:     Hitachi Deskstar 7K1000.D\nDevice Model:     Hitachi HDS721050DLE630\nSerial Number:    MSK4215H1EJWKG\nLU WWN Device Id: 5 000cca 37cd43fba\nFirmware Version: MS1OA600\nUser Capacity:    500.107.862.016 bytes [500 GB]\nSector Sizes:     512 bytes logical, 4096 bytes physical\nRotation Rate:    7200 rpm\nForm Factor:      3.5 inches\nDevice is:        In smartctl database [for details use: -P show]\nATA Version is:   ATA8-ACS T13\/1699-D revision 4\nSATA Version is:  SATA 3.0, 6.0 Gb\/s (current: 3.0 Gb\/s)\nLocal Time is:    Tue Oct  9 10:55:03 2018 -03\nSMART support is: Available - device has SMART capability.\nSMART support is: Enabled<\/strong>\n<\/pre>\n\n\n

Caso a op\u00e7\u00e3o marcada acima em negrito esteja “disabled”, habilite com o comando abaixo:

\n
smartctl -s on \/dev\/sda<\/div> <\/div><\/p>\n\n\n

VERIFICANDO SA\u00daDE DO DISCO <\/h3>\n\n\n

Teste r\u00e1pido dado pela controladora do disco:<\/p>\n\n

\n
smartctl -H \/dev\/sda<\/div> <\/div>\n\n\n
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build)\nCopyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org\n=== START OF READ SMART DATA SECTION ===\nSMART overall-health self-assessment test result: PASSED\n<\/strong><\/pre>\n\n\n

Teste menos r\u00e1pido, mas eficiente, o primeiro comando executa o teste e o segundo obt\u00e9m o relat\u00f3rio:<\/p>\n\n

\n
smartctl -t short \/dev\/sda<\/div> <\/div>\n\n\n
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build)\nCopyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org\n=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===\nSending command: \"Execute SMART Short self-test routine immediately in off-line mode\".\nDrive command \"Execute SMART Short self-test routine immediately in off-line mode\" successful.\nTesting has begun.\nPlease wait 1 minutes for test to complete.<\/strong>\nTest will complete after Tue Oct 9 11:08:13 2018\n<\/pre>\n\n
\n
smartctl -l selftest \/dev\/sda<\/div> <\/div>\n\n\n
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build)\nCopyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org\n=== START OF READ SMART DATA SECTION ===\nSMART Self-test log structure revision number 1\nNum  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error\n# 1  Short offline       Completed without error<\/strong>       00%     19356         -\n<\/pre>\n\n\n

Voc\u00ea pode executar tamb\u00e9m um teste longo (que dura cerca de uma hora) usando o par\u00e2metro \u201c-t long<\/strong>\u201c.<\/p>\n\n\n

FONTE <\/h3>\n\n\n

https:\/\/www.hardware.com.br\/livros\/ferramentas-linux\/monitorando-saude-com-smart.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

Ferramenta para obter informa\u00e7\u00f5es do HD e sa\u00fade do mesmo pelo Linux. INSTALA\u00c7\u00c3O Debian\/Derivados Redhat\/Derivados INFORMA\u00c7\u00d5ES DO DISCO O comando abaixo mostra informa\u00e7\u00f5es do disco e para saber se o SMART est\u00e1 habilitado. 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 […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,24,15],"tags":[65,66,109],"_links":{"self":[{"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/posts\/394"}],"collection":[{"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/comments?post=394"}],"version-history":[{"count":1,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/posts\/394\/revisions"}],"predecessor-version":[{"id":1892,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/posts\/394\/revisions\/1892"}],"wp:attachment":[{"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/media?parent=394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/categories?post=394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/tags?post=394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}