{"id":2899,"date":"2018-07-28T17:11:45","date_gmt":"2018-07-28T17:11:45","guid":{"rendered":"https:\/\/tst-amo.net.ua\/blog\/?p=2899"},"modified":"2021-02-21T13:45:21","modified_gmt":"2021-02-21T13:45:21","slug":"smartmontools","status":"publish","type":"post","link":"https:\/\/tst-amo.net.ua\/blog\/?p=2899","title":{"rendered":"smartmontools"},"content":{"rendered":"<p>\u041f\u0430\u043a\u0435\u0442\u00a0<strong>smartmontools<\/strong>\u00a0\u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0443\u0442\u0438\u043b\u0438\u0442 (smartctl \u0438 smartd), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u044e\u0442 \u0438 \u0441\u043b\u0435\u0434\u044f\u0442 \u0437\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c\u0438 \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044f\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0430\u043c\u043e\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443, \u0430\u043d\u0430\u043b\u0438\u0437 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0442\u0447\u0451\u0442\u0430 (S.M.A.R.T.), \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0443\u044e \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 ATA \u0438 SCSI \u0436\u0451\u0441\u0442\u043a\u0438\u0445 \u0434\u0438\u0441\u043a\u043e\u0432. \u042d\u0442\u043e\u0442 \u043f\u0430\u043a\u0435\u0442 \u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 \u043a\u043e\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 smartsuite \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 ATA\/ATAPI-5 \u0434\u0438\u0441\u043a\u043e\u0432.<\/p>\n<pre>$ sudo yum install smartmontools\r\n$ sudo nano \/etc\/smartmontools\/smartd.conf\r\n#DEVICESCAN -H -m root -M exec \/usr\/libexec\/smartmontools\/smartdnotify -n standby,10,q\r\n\/dev\/sda -a -I 194 -W 4,45,55 -R 5 -H -l error -l selftest -m admin@example.com -o on -S on -s (S\/..\/..\/.\/02|L\/..\/..\/6\/03)<\/pre>\n<pre>[root@ring]# systemctl start smartd\r\n[root@ring]# systemctl enable smartd\r\n\r\n<\/pre>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b:<\/p>\n<pre># vim \/etc\/rsyslog.d\/smartd.conf\r\n\r\nif ( $programname startswith \"smartd\" ) then {\r\naction(type=\"omfile\" file=\"\/var\/log\/smartd.log\")\r\nstop\r\n}<\/pre>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u044b:<\/p>\n<pre># systemctl restart {rsyslog,smartd}\r\n# systemctl status {rsyslog,smartd}<\/pre>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435:<\/p>\n<p><a href=\"https:\/\/www.opennet.ru\/base\/sys\/smart_hdd_mon.txt.html\">https:\/\/www.opennet.ru\/base\/sys\/smart_hdd_mon.txt.html<\/a><\/p>\n<p><a href=\"https:\/\/ru.wikipedia.org\/wiki\/S.M.A.R.T.\">\u041a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b SMART<\/a><\/p>\n<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-bottom-right\"><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts2899&print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/pdf.png\" alt=\"image_pdf\" title=\"View PDF\" \/><\/a><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts2899&print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>\u041f\u0430\u043a\u0435\u0442\u00a0smartmontools\u00a0\u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0443\u0442\u0438\u043b\u0438\u0442 (smartctl \u0438 smartd), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u044e\u0442 \u0438 \u0441\u043b\u0435\u0434\u044f\u0442 \u0437\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c\u0438 \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044f\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0430\u043c\u043e\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443, \u0430\u043d\u0430\u043b\u0438\u0437 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0442\u0447\u0451\u0442\u0430 (S.M.A.R.T.), \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0443\u044e \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 ATA \u0438 SCSI \u0436\u0451\u0441\u0442\u043a\u0438\u0445 \u0434\u0438\u0441\u043a\u043e\u0432. \u042d\u0442\u043e\u0442 \u043f\u0430\u043a\u0435\u0442 \u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 \u043a\u043e\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 smartsuite \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 ATA\/ATAPI-5 \u0434\u0438\u0441\u043a\u043e\u0432. $ sudo yum install smartmontools $ sudo nano \/etc\/smartmontools\/smartd.conf #DEVICESCAN -H -m &#8230;<\/p>\n<p><a href=\"https:\/\/tst-amo.net.ua\/blog\/?p=2899\" class=\"more-link\">Continue reading &lsquo;smartmontools&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,47,140],"tags":[],"class_list":["post-2899","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux","category-smartmontools"],"_links":{"self":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2899"}],"collection":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2899"}],"version-history":[{"count":8,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2899\/revisions"}],"predecessor-version":[{"id":4591,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2899\/revisions\/4591"}],"wp:attachment":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}