{"id":1760,"date":"2012-07-07T18:51:02","date_gmt":"2012-07-07T09:51:02","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=1760"},"modified":"2012-07-07T18:58:14","modified_gmt":"2012-07-07T09:58:14","slug":"xenserver%e3%81%a7s-m-a-r-t%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%82%92%e8%a1%8c%e3%81%86","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/1760","title":{"rendered":"XenServer\u3067S.M.A.R.T\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3046"},"content":{"rendered":"<p>\u30e1\u30e2\u3002<\/p>\n<h3>1. S.M.A.R.T\u30c1\u30a7\u30c3\u30af\u306e\u305f\u3081\u306bsmartmontools\u3092\u3001\u30e1\u30fc\u30eb\u901a\u77e5\u306e\u305f\u3081\u306bmailx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">wget http:\/\/vault.centos.org\/5.4\/os\/i386\/CentOS\/mailx-8.1.1-44.2.2.i386.rpm\r\nwget http:\/\/vault.centos.org\/5.4\/os\/i386\/CentOS\/smartmontools-5.38-2.el5.i386.rpm\r\nrpm -hiv smartmontools-5.38-2.el5.i386.rpm mailx-8.1.1-44.2.2.i386.rpm<\/pre>\n<h3>2. \u3068\u308a\u3042\u3048\u305a\u624b\u52d5\u3067S.M.A.R.T\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u308b<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">smartctl -d ata -a \/dev\/sda<\/pre>\n<p>\u7d50\u679c\u304c\u305a\u3089\u305a\u3089\u305a\u3089\u301c\u3063\u3068\u51fa\u3066\u304f\u308b\u304c\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u306a\u3089\u3072\u3068\u307e\u305a\u5b89\u5fc3\u3002<br \/>\n\u9006\u306b\u3044\u3048\u3070\u3001\u4ee5\u4e0b\u3068\u5408\u81f4\u3057\u306a\u3044\u90e8\u5206\u304c\u3042\u308b\u5834\u5408\u306f\u899a\u609f\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u304b\u3082\u3002<\/p>\n<p>\u30fb&#8221;SMART overall-health self-assessment test result: &#8220;\u304cPASSED\u306b\u306a\u3063\u3066\u308b\u3002<br \/>\n\u30fb&#8221;Reallocated_Sector_Ct&#8221;\u306eRAW_VALUE\u304c0\u3002<br \/>\n\u30fb&#8221;Current_Pending_Sector&#8221;\u306eRAW_VALUE\u304c0\u3002<br \/>\n\u30fb&#8221;Offline_Uncorrectable&#8221;\u306eRAW_VALUE\u304c0\u3002<\/p>\n<p>&#8220;Reallocated_Sector_Ct&#8221;\u3068&#8221;Current_Pending_Sector&#8221;\u3068&#8221;Offline_Uncorrectable&#8221;\u306f0\u3058\u3083\u306a\u304f\u3066\u3082\u3001\u5b9a\u671f\u7684\u306b\u30c1\u30a7\u30c3\u30af\u3057\u305f\u7d50\u679c\u5897\u52a0\u50be\u5411\u306b\u306a\u3051\u308c\u3070\u5927\u4e08\u592b\u304b\u3082\u3002<br \/>\n\uff08\u3067\u3082\u5fc3\u914d\u306a\u306e\u3067\u81ea\u5206\u306a\u3089\u79fb\u884c\u3092\u691c\u8a0e\u3059\u308b\u304b\u306a\u3002\u8cb7\u3063\u305f\u6642\u304b\u30890\u3058\u3083\u306a\u3044\u5834\u5408\u3082\u3042\u308b\u3089\u3057\u3044\u306e\u3067\u305d\u306e\u3068\u304d\u306f\u3001\u6c17\u3092\u3064\u3051\u306a\u304c\u3089\u4f7f\u3046\u2026\u304b\u306a\u3002\uff09<br \/>\n<a href=\"http:\/\/ja.wikipedia.org\/wiki\/Self-Monitoring,_Analysis_and_Reporting_Technology\" target=\"_blank\">Self-Monitoring, Analysis and Reporting Technology &#8211; Wikipedia<\/a>\u3092\u898b\u308b\u3068\u3001\u30b3\u30ec\u4ee5\u5916\u306b\u3082\u5927\u4e8b\u306a\u90e8\u5206\u304c\u3042\u308b\u307f\u305f\u3044\u3002<\/p>\n<h3>3. mailx\u306e\u8a2d\u5b9a<\/h3>\n<p>Gmail\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u9001\u4fe1\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3002<br \/>\n\/etc\/ssmtp\/ssmtp.conf\u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u306b\u3059\u308b\uff08\u5143\u3005\u3042\u3063\u305f\u3082\u306e\u306f\u5168\u90e8\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\uff09\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">root=xxx@gmail.com\r\nmailhub=smtp.gmail.com:587\r\nhostname=xxx@gmail.com\r\nUseTLS=YES\r\nUseSTARTTLS=YES\r\nAuthMethod=LOGIN\r\nAuthUser=xxx@gmail.com\r\nAuthPass=xxx\r\nFromLineOverride=YES<\/pre>\n<p>\u6b21\u306e\u3088\u3046\u306b\u3057\u3066\u30e1\u30fc\u30eb\u304c\u5c4a\u304f\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">echo &quot;this is a test mail&quot; | mailx -s &quot;Test mail&quot; mail@example.com<\/pre>\n<h3>4. S.M.A.R.T\u3092\u81ea\u52d5\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a<\/h3>\n<p>\/etc\/smartd.conf\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3002<br \/>\n\u30c7\u30a3\u30b9\u30af\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u3001\u305d\u306e\u5206\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">#\/dev\/sda -d ata -a -s (S\/..\/..\/.\/02|L\/..\/..\/6\/03) -t -m mail@example.com -M test\r\n\/dev\/sda -d ata -a -s (S\/..\/..\/.\/02|L\/..\/..\/6\/03) -t -m mail@example.com<\/pre>\n<p>DEVICESCAN\u306e\u884c\u4ee5\u964d\u306f\u5b9f\u884c\u3055\u308c\u306a\u3044\u3089\u3057\u3044\u306e\u3067\u3001DEVICESCAN\u306e\u884c\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u304b\u3001\u305d\u306e\u884c\u306e\u524d\u306b\u4e0a\u8a18\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b\u3002<br \/>\nsmartd.conf\u3092\u5909\u66f4\u3057\u305f\u3089smartd\u3092\u518d\u8d77\u52d5\u3057\u3068\u304f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">service smartd restart<\/pre>\n<p>\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u305f\u65b9\uff08-M test\u306e\u884c\uff09\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3001smartd\u304c\u8d77\u52d5\u3057\u305f\u3068\u304d\u306bS.M.A.R.T\u306b\u554f\u984c\u304c\u306a\u304f\u3066\u3082\u5fc5\u305a\u30e1\u30fc\u30eb\u9001\u4fe1\u304c\u884c\u308f\u308c\u308b\u3002\uff08\u30c6\u30b9\u30c8\u7528\uff09<\/p>\n<p>\u53c2\u8003<br \/>\n<a href=\"http:\/\/www.schirmacher.de\/display\/INFO\/Install+smartmontools+on+Citrix+XenServer\" target=\"_blank\">Install smartmontools on Citrix XenServer &#8211; Info &#8211; Schirmacher<\/a><br \/>\n<a href=\"http:\/\/jsltbh.blogspot.jp\/2011\/11\/xenserver-encrypted-local-storage-and.html\" target=\"_blank\">Jason Longshore: XenServer, Encrypted Local Storage and SMART monitoring<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e1\u30e2\u3002<\/p>\n<h3>1. S.M.A.R.T\u30c1\u30a7\u30c3\u30af\u306e\u305f\u3081\u306bsmartmontools\u3092\u3001\u30e1\u30fc\u30eb\u901a\u77e5\u306e\u305f\u3081\u306bmailx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">wget http:\/\/vault.centos.org\/5.4\/os\/i386\/CentOS\/mailx-8.1.1-44.2.2.i386.rpm\r\nwget http:\/\/vault.centos.org\/5.4\/os\/i386\/CentOS\/smartmontools-5.38-2.el5.i386.rpm\r\nrpm -hiv smartmontools-5.38-2.el5.i386.rpm mailx-8.1.1-44.2.2.i386.rpm<\/pre>\n<h3>2. \u3068\u308a\u3042\u3048\u305a\u624b\u52d5\u3067S.M.A.R.T\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u308b<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">smartctl -d ata -a \/dev\/sda<\/pre>\n<p>\u7d50\u679c\u304c\u305a\u3089\u305a\u3089\u305a\u3089\u301c\u3063\u3068\u51fa\u3066\u304f\u308b\u304c\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u306a\u3089\u3072\u3068\u307e\u305a\u5b89\u5fc3\u3002<br \/>\n\u9006\u306b\u3044\u3048\u3070\u3001\u4ee5\u4e0b\u3068\u5408\u81f4\u3057\u306a\u3044\u90e8\u5206\u304c\u3042\u308b\u5834\u5408\u306f\u899a\u609f\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u304b\u3082\u3002<\/p>\n<p>\u30fb&#8221;SMART overall-health self-assessment test result: &#8220;\u304cPASSED\u306b\u306a\u3063\u3066\u308b\u3002<br \/>\n\u30fb&#8221;Reallocated_Sector_Ct&#8221;\u306eRAW_VALUE\u304c0\u3002<br \/>\n\u30fb&#8221;Current_Pending_Sector&#8221;\u306eRAW_VALUE\u304c0\u3002<br \/>\n\u30fb&#8221;Offline_Uncorrectable&#8221;\u306eRAW_VALUE\u304c0\u3002<\/p>\n<p>&#8220;Reallocated_Sector_Ct&#8221;\u3068&#8221;Current_Pending_Sector&#8221;\u3068&#8221;Offline_Uncorrectable&#8221;\u306f0\u3058\u3083\u306a\u304f\u3066\u3082\u3001\u5b9a\u671f\u7684\u306b\u30c1\u30a7\u30c3\u30af\u3057\u305f\u7d50\u679c\u5897\u52a0\u50be\u5411\u306b\u306a\u3051\u308c\u3070\u5927\u4e08\u592b\u304b\u3082\u3002<br \/>\n\uff08\u3067\u3082\u5fc3\u914d\u306a\u306e\u3067\u81ea\u5206\u306a\u3089\u79fb\u884c\u3092\u691c\u8a0e\u3059\u308b\u304b\u306a\u3002\u8cb7\u3063\u305f\u6642\u304b\u30890\u3058\u3083\u306a\u3044\u5834\u5408\u3082\u3042\u308b\u3089\u3057\u3044\u306e\u3067\u305d\u306e\u3068\u304d\u306f\u3001\u6c17\u3092\u3064\u3051\u306a\u304c\u3089\u4f7f\u3046\u2026\u304b\u306a\u3002\uff09<br \/>\n<a href=\"http:\/\/ja.wikipedia.org\/wiki\/Self-Monitoring,_Analysis_and_Reporting_Technology\" target=\"_blank\">Self-Monitoring, Analysis and Reporting Technology &#8211; Wikipedia<\/a>\u3092\u898b\u308b\u3068\u3001\u30b3\u30ec\u4ee5\u5916\u306b\u3082\u5927\u4e8b\u306a\u90e8\u5206\u304c\u3042\u308b\u307f\u305f\u3044\u3002<\/p>\n<h3>3. mailx\u306e\u8a2d\u5b9a<\/h3>\n<p>Gmail\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u9001\u4fe1\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3002<br \/>\n\/etc\/ssmtp\/ssmtp.conf\u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u306b\u3059\u308b\uff08\u5143\u3005\u3042\u3063\u305f\u3082\u306e\u306f\u5168\u90e8\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\uff09\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">root=xxx@gmail.com\r\nmailhub=smtp.gmail.com:587\r\nhostname=xxx@gmail.com\r\nUseTLS=YES\r\nUseSTARTTLS=YES\r\nAuthMethod=LOGIN\r\nAuthUser=xxx@gmail.com\r\nAuthPass=xxx\r\nFromLineOverride=YES<\/pre>\n<p>\u6b21\u306e\u3088\u3046\u306b\u3057\u3066\u30e1\u30fc\u30eb\u304c\u5c4a\u304f\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">echo &quot;this is a test mail&quot; | mailx -s &quot;Test mail&quot; mail@example.com<\/pre>\n<h3>4. S.M.A.R.T\u3092\u81ea\u52d5\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a<\/h3>\n<p>\/etc\/smartd.conf\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3002<br \/>\n\u30c7\u30a3\u30b9\u30af\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u3001\u305d\u306e\u5206\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">#\/dev\/sda -d ata -a -s (S\/..\/..\/.\/02|L\/..\/..\/6\/03) -t -m mail@example.com -M test\r\n\/dev\/sda -d ata -a -s (S\/..\/..\/.\/02|L\/..\/..\/6\/03) -t -m mail@example.com<\/pre>\n<p>DEVICESCAN\u306e\u884c\u4ee5\u964d\u306f\u5b9f\u884c\u3055\u308c\u306a\u3044\u3089\u3057\u3044\u306e\u3067\u3001DEVICESCAN\u306e\u884c\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u304b\u3001\u305d\u306e\u884c\u306e\u524d\u306b\u4e0a\u8a18\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b\u3002<br \/>\nsmartd.conf\u3092\u5909\u66f4\u3057\u305f\u3089smartd\u3092\u518d\u8d77\u52d5\u3057\u3068\u304f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">service smartd restart<\/pre>\n<p>\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u305f\u65b9\uff08-M test\u306e\u884c\uff09\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3001smartd\u304c\u8d77\u52d5\u3057\u305f\u3068\u304d\u306bS.M.A.R.T\u306b\u554f\u984c\u304c\u306a\u304f\u3066\u3082\u5fc5\u305a\u30e1\u30fc\u30eb\u9001\u4fe1\u304c\u884c\u308f\u308c\u308b\u3002\uff08\u30c6\u30b9\u30c8\u7528\uff09<\/p>\n<p>\u53c2\u8003<br \/>\n<a href=\"http:\/\/www.schirmacher.de\/display\/INFO\/Install+smartmontools+on+Citrix+XenServer\" target=\"_blank\">Install smartmontools on Citrix XenServer &#8211; Info &#8211; Schirmacher<\/a><br \/>\n<a href=\"http:\/\/jsltbh.blogspot.jp\/2011\/11\/xenserver-encrypted-local-storage-and.html\" target=\"_blank\">Jason Longshore: XenServer, Encrypted Local Storage and SMART monitoring<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[424,303],"class_list":["post-1760","post","type-post","status-publish","format-standard","hentry","category-tech","tag-s-m-a-r-t","tag-xenserver"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/comments?post=1760"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1760\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=1760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=1760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=1760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}