{"id":18065,"date":"2013-10-22T16:05:26","date_gmt":"2013-10-22T08:05:26","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2013\/10\/22\/linux-%e4%b8%8b%e7%9a%84-s-m-a-r-t\/"},"modified":"2013-10-22T16:05:26","modified_gmt":"2013-10-22T08:05:26","slug":"linux-%e4%b8%8b%e7%9a%84-s-m-a-r-t","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2013\/10\/22\/linux-%e4%b8%8b%e7%9a%84-s-m-a-r-t\/","title":{"rendered":"Linux \u4e0b\u7684 S.M.A.R.T."},"content":{"rendered":"<p>S.M.A.R.T. \u662f Self &#8211; Monitoring, Analysis and Reporting Technology (\u786c\u789f\u81ea\u6211\u76e3\u6e2c\u3001\u5206\u6790\u53ca\u5831\u544a\u6280\u8853) \u7684\u7e2e\u5beb\uff0c\u53ef\u4ee5\u5728\u786c\u789f\u767c\u751f\u6545\u969c\u4e4b\u524d\uff0c\u5148\u63d0\u51fa\u8b66\u8a0a\uff0c\u53ef\u4ee5\u63d0\u65e9\u56e0\u61c9\u3002<br \/>\u5728 Linux\u00a0\u4e0b\u53ea\u8981\u5b89\u88dd smartmontools\u00a0\u5957\u4ef6\u5373\u53ef<br \/># <span style=\"color: #ff0000;\">rpm -qf \/usr\/sbin\/smartctl<\/span><br \/><span style=\"color: #0000ff;\">smartmontools-5.42-2.el5<\/span><\/p>\n<p>\u555f\u52d5 smartd\u00a0\u670d\u52d9<br \/># <span style=\"color: #ff0000;\">chkconfig &#8211;level 3 smartd on<\/span><br \/># <span style=\"color: #ff0000;\">chkconfig &#8211;list | grep smartd<\/span><br \/><span style=\"color: #0000ff;\">smartd\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0:\u95dc\u9589\u00a0 1:\u95dc\u9589\u00a0 2:\u95dc\u9589\u00a0 3:\u958b\u555f\u00a0 4:\u95dc\u9589\u00a0 5:\u95dc\u9589\u00a0 6:\u95dc\u9589<\/span><br \/>[@more@]\u6aa2\u67e5\u786c\u789f\u662f\u5426\u6709\u958b\u555f smart\u00a0\u529f\u80fd<br \/># <span style=\"color: #ff0000;\">smartctl -i \/dev\/sda<\/span><br \/><span style=\"color: #0000ff;\">smartctl 5.42 2011-10-20 r3458 [i686-linux-2.6.18-8.1.10.el5] (local build)<\/span><br \/><span style=\"color: #0000ff;\">Copyright (C) 2002-11 by Bruce Allen, http:\/\/smartmontools.sourceforge.net<\/span><\/p>\n<p><span style=\"color: #0000ff;\">=== START OF INFORMATION SECTION ===<\/span><br \/><span style=\"color: #0000ff;\">Model Family:\u00a0\u00a0\u00a0\u00a0 Seagate Barracuda 7200.10<\/span><br \/><span style=\"color: #0000ff;\">Device Model:\u00a0\u00a0\u00a0\u00a0 ST3160815AS<\/span><br \/><span style=\"color: #0000ff;\">Serial Number:\u00a0\u00a0\u00a0 5RA19L2P<\/span><br \/><span style=\"color: #0000ff;\">Firmware Version: 3.AAD<\/span><br \/><span style=\"color: #0000ff;\">User Capacity:\u00a0\u00a0\u00a0 160,040,803,840 bytes [160 GB]<\/span><br \/><span style=\"color: #0000ff;\">Sector Size:\u00a0\u00a0\u00a0\u00a0\u00a0 512 bytes logical\/physical<\/span><br \/><span style=\"color: #0000ff;\">Device is:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 In smartctl database [for details use: -P show]<\/span><br \/><span style=\"color: #0000ff;\">ATA Version is:\u00a0\u00a0 7<\/span><br \/><span style=\"color: #0000ff;\">ATA Standard is:\u00a0 Exact ATA specification draft version not indicated<\/span><br \/><span style=\"color: #0000ff;\">Local Time is:\u00a0\u00a0\u00a0 Tue Oct 22 16:14:33 2013 CST<\/span><br \/><span style=\"color: #0000ff;\">SMART support is: Available &#8211; device has SMART capability.<\/span><br \/><span style=\"color: #ff0000;\">SMART support is: Enabled<\/span><\/p>\n<p>\u5982\u679c\u6709\u6c92\u958b\u555f<br \/># <span style=\"color: #ff0000;\">smartctl -s on \/dev\/sda<\/span><br \/><span style=\"color: #0000ff;\">smartctl 5.42 2011-10-20 r3458 [i686-linux-2.6.18-8.1.10.el5] (local build)<\/span><br \/><span style=\"color: #0000ff;\">Copyright (C) 2002-11 by Bruce Allen, http:\/\/smartmontools.sourceforge.net<\/span><\/p>\n<p><span style=\"color: #0000ff;\">=== START OF ENABLE\/DISABLE COMMANDS SECTION ===<\/span><br \/><span style=\"color: #ff0000;\">SMART Enabled.<\/span><\/p>\n<p>\u6aa2\u67e5\u786c\u789f\u72c0\u6cc1<br \/># <span style=\"color: #ff0000;\">smartctl -H \/dev\/sda<\/span><br \/><span style=\"color: #0000ff;\">smartctl 5.42 2011-10-20 r3458 [i686-linux-2.6.18-8.1.10.el5] (local build)<\/span><br \/><span style=\"color: #0000ff;\">Copyright (C) 2002-11 by Bruce Allen, http:\/\/smartmontools.sourceforge.net<\/span><\/p>\n<p><span style=\"color: #0000ff;\">=== START OF READ SMART DATA SECTION ===<\/span><br \/><span style=\"color: #0000ff;\">SMART overall-health self-assessment test result: <span style=\"color: #ff0000;\">PASSED<\/span><\/span><\/p>\n<p>\u4e0d\u904e\u9019\u908a\u51fa\u73fe PASSED\u00a0\u4e26\u4e0d\u4ee3\u8868\u4e00\u5b9a\u6c92\u6709\u554f\u984c\uff0c\u8981\u9032\u4e00\u6b65\u6aa2\u67e5<\/p>\n<p>\u9032\u884c\u5feb\u901f\u6aa2\u67e5\uff0c\u5927\u6982\u9700\u8981 1\u00a0\u5206\u591a\u9418<br \/>#<span style=\"color: #ff0000;\"> smartctl -t short \/dev\/sda<\/span><br \/><span style=\"color: #0000ff;\">smartctl 5.42 2011-10-20 r3458 [i686-linux-2.6.18-8.1.10.el5] (local build)<\/span><br \/><span style=\"color: #0000ff;\">Copyright (C) 2002-11 by Bruce Allen, http:\/\/smartmontools.sourceforge.net<\/span><\/p>\n<p><span style=\"color: #0000ff;\">=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===<\/span><br \/><span style=\"color: #0000ff;\">Sending command: &#8220;Execute SMART Short self-test routine immediately in off-line mode&#8221;.<\/span><br \/><span style=\"color: #0000ff;\">Drive command &#8220;Execute SMART Short self-test routine immediately in off-line mode&#8221; successful.<\/span><br \/><span style=\"color: #0000ff;\">Testing has begun.<\/span><br \/><span style=\"color: #ff0000;\">Please wait 1 minutes for test to complete.<\/span><br \/><span style=\"color: #ff0000;\">Test will complete after Tue Oct 22 16:19:21 2013<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Use smartctl -X to abort test.<\/span><\/p>\n<p># <span style=\"color: #ff0000;\">smartctl -l selftest \/dev\/sda<\/span><br \/><span style=\"color: #0000ff;\">smartctl 5.42 2011-10-20 r3458 [i686-linux-2.6.18-8.1.10.el5] (local build)<\/span><br \/><span style=\"color: #0000ff;\">Copyright (C) 2002-11 by Bruce Allen, http:\/\/smartmontools.sourceforge.net<\/span><\/p>\n<p><span style=\"color: #0000ff;\">=== START OF READ SMART DATA SECTION ===<\/span><br \/><span style=\"color: #0000ff;\">SMART Self-test log structure revision number 1<\/span><br \/><span style=\"color: #0000ff;\">Num\u00a0 Test_Description\u00a0\u00a0\u00a0 Status\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Remaining\u00a0 LifeTime(hours)\u00a0 LBA_of_first_error<\/span><br \/><span style=\"color: #0000ff;\"># 1\u00a0 Short offline\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: #ff0000;\">Completed: read failure\u00a0\u00a0\u00a0<\/span>\u00a0\u00a0\u00a0 90%\u00a0\u00a0\u00a0\u00a0 46396\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3103025<\/span><br \/><span style=\"color: #0000ff;\"># 2\u00a0 Short offline\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: #ff0000;\">Completed: read failure<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 90%\u00a0\u00a0\u00a0\u00a0 46387\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3103025<\/span><br \/><span style=\"color: #0000ff;\"># 3\u00a0 Short offline\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #ff0000;\"> Completed: read failure<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 90%\u00a0\u00a0\u00a0\u00a0 46387\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3103025<\/span><br \/><span style=\"color: #0000ff;\"># 4\u00a0 Short offline\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #ff0000;\"> Completed: read failure<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 90%\u00a0\u00a0\u00a0\u00a0 45099\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3103019<\/span><\/p>\n<p>\u7531\u4e0a\u9762\u53ef\u4ee5\u770b\u51fa\u6709 read faillure\u00a0\u7684\u72c0\u6cc1\uff0c\u61c9\u8a72\u8d95\u5feb\u5099\u4efd\u8cc7\u6599\u4e86\uff01<\/p>\n<p># <span style=\"color: #ff0000;\">smartctl -l selftest \/dev\/sdb<\/span><br \/><span style=\"color: #0000ff;\">smartctl 5.42 2011-10-20 r3458 [i686-linux-2.6.18-8.1.10.el5] (local build)<\/span><br \/><span style=\"color: #0000ff;\">Copyright (C) 2002-11 by Bruce Allen, http:\/\/smartmontools.sourceforge.net<\/span><\/p>\n<p><span style=\"color: #0000ff;\">=== START OF READ SMART DATA SECTION ===<\/span><br \/><span style=\"color: #0000ff;\">SMART Self-test log structure revision number 1<\/span><br \/><span style=\"color: #0000ff;\">Num\u00a0 Test_Description\u00a0\u00a0\u00a0 Status\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Remaining\u00a0 LifeTime(hours)\u00a0 LBA_of_first_error<\/span><br \/><span style=\"color: #0000ff;\"># 1\u00a0 Short offline\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: #ff0000;\">Completed without error\u00a0<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0 00%\u00a0\u00a0\u00a0\u00a0 46426\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;<\/span><br \/><span style=\"color: #0000ff;\"># 2\u00a0 Short offline\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: #ff0000;\">Completed without error<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 00%\u00a0\u00a0\u00a0\u00a0 46418\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;<\/span><\/p>\n<p>\u4e0a\u9762\u9019\u4e00\u53f0\uff0c\u662f\u6c92\u6709\u554f\u984c\u7684\u3002<\/p>\n<p>\u66f4\u8a73\u7d30\u7684\u4f7f\u7528\u53c3\u6578<br \/># <span style=\"color: #ff0000;\">smartctl &#8211;help<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>S.M.A.R.T. \u662f Self &#8211; Monitoring, Analysis and Repo &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2013\/10\/22\/linux-%e4%b8%8b%e7%9a%84-s-m-a-r-t\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008Linux \u4e0b\u7684 S.M.A.R.T.\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[107,109],"tags":[],"class_list":["post-18065","post","type-post","status-publish","format-standard","hentry","category-c-72382","category-c-72384"],"meta_key":{"_encloseme":["1"],"lt_post_id":["434426"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18065"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=18065"}],"version-history":[{"count":0,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18065\/revisions"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}