{"id":1419,"date":"2012-12-09T23:59:49","date_gmt":"2012-12-10T05:59:49","guid":{"rendered":"http:\/\/www.ippei813.com\/nikki\/?p=1419"},"modified":"2012-12-24T10:00:38","modified_gmt":"2012-12-24T16:00:38","slug":"failed-hdd","status":"publish","type":"post","link":"https:\/\/www.ippei813.com\/nikki\/pc\/1419","title":{"rendered":"failed HDD"},"content":{"rendered":"<p><a href=\"http:\/\/www.ippei813.com\/nikki\/pc\/1305\">\u3053\u306e\u6642\u66f4\u65b0\u3057\u305fRAID5<\/a>\u306e\u305d\u306e\u5f8c\u3002<\/p>\n<p><a href=\"http:\/\/www.wd.com\/en\/products\/products.aspx?id=780\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1434\" title=\"WD Green\" src=\"http:\/\/www.ippei813.com\/nikki\/wp-content\/uploads\/2012\/12\/Picture-3.png\" alt=\"\" width=\"238\" height=\"287\" \/><\/a><\/p>\n<p>Debian\u3067\u904b\u7528\u3057\u3066\u308bfileserver\u306e\u30c7\u30a3\u30b9\u30af\u30a2\u30af\u30bb\u30b9\u304c\u3084\u305f\u3089\u9045\u304f\u306a\u3063\u305f\u3002\u305d\u3046\u3044\u3048\u3070\u3001logcheck\u304b\u3089ata\u95a2\u4fc2\u306e\u30a8\u30e9\u30fc\u304c\u9001\u3089\u308c\u3066\u304d\u305f\u306e\u3092\u601d\u3044\u51fa\u3059\u3002<a title=\"syslog\" href=\"http:\/\/www.ippei813.com\/nikki\/wp-content\/uploads\/2012\/12\/tmp1.txt\">log\u3092\u898b\u3066\u307f\u308b<\/a>\u3068\u3001RAID5\u306e3\u53f0\u306e\u3046\u3061\u306e1\u53f0\u304c\u304a\u304b\u3057\u3044\u3002<\/p>\n<p>\u3053\u306e\u3068\u304d\u306eSMART\u306f\u307e\u3060PASS\u3060\u3063\u305f\u306e\u304c\u3001\u6b21\u306e\u65e5\u306b\u306f\u3082\u3046FAILED\u306b\u306a\u3063\u3066\u3001\u75c7\u72b6\u60aa\u5316\u3002<a title=\"smart\" href=\"http:\/\/www.ippei813.com\/nikki\/wp-content\/uploads\/2012\/12\/smart1.txt\">smartctl &#8211;all \/dev\/sdc \u306eoutput<\/a>\u3002<\/p>\n<pre>% mdadm --manage \/dev\/md1 --fail \/dev\/sda1\r\n% mdadm --manage \/dev\/md1 --remove \/dev\/sda1\r\n% swapoff \/dev\/sda2<\/pre>\n<p>\u3053\u306edisk\u3092offline\u306b\u3057\u3066\u3001\u65b0\u3057\u3044\u306e\u3092\u767a\u6ce8\u3002\u65b0\u3057\u3044\u306e\u3082\u307e\u305fWD Green\u3001\u3060\u3051\u30693T\u306eWD30EZRX\u3002\u4ed6\u306e2TB 2\u53f0\u3082\u3044\u305a\u308c3TB\u306b\u4ea4\u63db\u3057\u3066\u3001\u305d\u306e\u3068\u304d\u306bextend\u3059\u308b\u3002\u5f8c\u3067\u8abf\u3079\u305f\u3089\u3001NAS\u7528\u306bTLER\u3092\u5909\u66f4\u53ef\u80fd\u306aWD Red\u3063\u3066\u51fa\u3066\u308b\u306e\u3092\u77e5\u3063\u305f\u3002\u5024\u6bb5\u3082\u3042\u3093\u307e\u308a\u5909\u308f\u3089\u306a\u3044\u3057\u3001\u3053\u3063\u3061\u306b\u3059\u308c\u3070\u826f\u304b\u3063\u305f\u3002\u3002\u3002<\/p>\n<p>WD Caviar Green\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f8\u79d2\u30a2\u30af\u30bb\u30b9\u7121\u3044\u3068head\u3092park\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u308b\u304c\u3001Linux\u3067\u4f7f\u3063\u3066\u308b\u3068log\u306e\u66f8\u304d\u51fa\u3057\u306e\u305f\u3081\u306b\u3001park\u3057\u3066\u306f\u3059\u3050\u623b\u3057\u3066\u3068\u3044\u3046\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308b\u3002\u3053\u308c\u306e\u30c7\u30d5\u30a9\u30eb\u30c88\u79d2\u3092\u5ef6\u3070\u3059\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u304c\u3042\u308b\u3002idle3ctl\u3002 \u3053\u308c\u3084\u3063\u305f\u306f\u305a\u3060\u3068\u601d\u3063\u305f\u304c\u30018\u79d2\u306e\u307e\u307e\u3060\u3063\u305f\u3002\u5f71\u97ff\u7121\u3044\u3068\u601d\u3063\u3066\u5909\u3048\u306a\u304b\u3063\u305f\u304b\uff1f\u3000smart\u306e Load_Cycle_Count 1673180\u56de\u3068\u3044\u3046\u306e\u3092\u898b\u308b\u3068\u3001\u3055\u3059\u304c\u306b\u5ef6\u3070\u3057\u305f\u65b9\u304c\u826f\u3044\u306a\u30022\u5e74\u3061\u3087\u3044\u306e\u9023\u7d9a\u7a3c\u50cd\u3067\u3001Power_On_Hours 2\u4e07\u6642\u9593\u3002\u307e\u3060\u58ca\u308c\u308b\u306b\u306f\u65e9\u3044\u3002\u3084\u306f\u308a\u904e\u5ea6\u306eLoad_Cycle_Count\u304c\u539f\u56e0\u306b\u306a\u3063\u3066\u308b\u53ef\u80fd\u6027\u306f\u9ad8\u3044\u304b\u3002<\/p>\n<pre>% idle3ctl -s 255 \/dev\/sdb<\/pre>\n<p>\u3053\u308c\u3067\u30013810\u79d2\u3002power on\u6642\u306b\u65b0\u3057\u3044\u8a2d\u5b9a\u304c\u53cd\u6620\u3055\u308c\u308b\u3002<\/p>\n<p>\u3053\u3053\u3067\u65b0\u3057\u3044disk\u3092partition\u3092\u5207\u3063\u3066RAID\u306b\u7d44\u307f\u8fbc\u3080\u524d\u306bfull backup\u53d6\u3063\u305f\u3002<\/p>\n<p>partition\u5207\u308b\u3068\u3053\u308d\u3067\u307e\u305a\u5f15\u3063\u304b\u304b\u308b\u3002\u4eca\u307e\u3067\u306fmsdos partition label\u3067\u5207\u3063\u3066\u305f\u304c\u3001\u305d\u308c\u3067\u306f2TB\u4ee5\u4e0a\u306edisk\u306b\u306f\u5bfe\u5fdc\u51fa\u6765\u306a\u3044\u3002gpt label\u3092\u4f7f\u3046\u3002\u307e\u305f\u30014KB sector\u306edisk\u306a\u306e\u3067partition\u306f4096\/512=8\u306e\u500d\u6570\u3067\u59cb\u3081\u308b\u300264\u3067\u826f\u3044\u306e\u3060\u3051\u3069\u3001parted\u304c2048\u306e\u500d\u6570\u3058\u3083\u306a\u3044\u3068 align\u3057\u3066\u306a\u3044\u3068warning\u51fa\u3059\u306e\u3067\u30012048\u306b\u3057\u3068\u304f\u3002<\/p>\n<pre>\r\n(parted) unit s\r\n(parted) print\r\nModel: ATA WDC WD30EZRX-00A (scsi)\r\nDisk \/dev\/sda: 5860533168s\r\nSector size (logical\/physical): 512B\/4096B\r\nPartition Table: gpt\r\n\r\nNumber  Start        End          Size         File system     Name     Flags\r\n 1      2048s        5858435071s  5858433024s                  primary\r\n 2      5858435072s  5860532223s  2097152s     linux-swap(v1)  primary<\/pre>\n<p>raid5 rebuild\u3002<\/p>\n<pre>\r\n% mdadm --add \/dev\/md1 \/dev\/sda1<\/pre>\n<p>\uff16\u6642\u9593\u4f4d\u306f\u304b\u304b\u308b\u306e\u3067\u653e\u7f6e\u3057\u3068\u3044\u3066\u3001\u6b21\u898b\u3066\u307f\u308b\u3068\u306a\u3093\u3068fail\u3057\u3066\u3001U__ \u306b\u306a\u3063\u3066\u308b\u3002\u3044\u308d\u3044\u308d\u8a66\u884c\u932f\u8aa4\u3057\u305f\u7d50\u679c\u3001\u65e2\u5b58\u306e\u3055\u3089\u306b\u3082\u3046\u4e00\u53f0\u306e\/dev\/sdb\u3082\u554f\u984c\u6709\u3063\u305f\u3002disk\u306elow level surface scan(long test)\u3067error\u898b\u3064\u304b\u3063\u3066\u3001sector remap\u3055\u308c\u305f\u3002\u4f7f\u3063\u305ftool\u306f\u3001<a href=\"http:\/\/www.ultimatebootcd.com\/\">UBCD<\/a>\u306b\u5165\u3063\u3066\u308b\u3001WD\u7d14\u6b63\u306eDLG Diagnostic\u30022TB\u306echeck\u306b\u7d046\u6642\u9593\u3067\u3001sdb \u3068 sdc\u306e2\u53f0\u306b\u5408\u8a0812\u6642\u9593\u304b\u304b\u3063\u305f\u3002\u3061\u306a\u307f\u306b\u3001short test\u3067\u306ferror\u306f\u691c\u77e5\u3055\u308c\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u4eca\u5ea6\u306f\u3061\u3083\u3093\u3068rebuild\u3001\u3068\u3044\u3046\u304b\u6700\u521d\u304b\u3089RAID5\u7d44\u307f\u76f4\u3057\u305f\u306e\u3067\u666e\u901a\u306ebuild\u51fa\u6765\u3066\u3001LVM\u69cb\u7bc9\u3057\u76f4\u3057\u3066\u3001format\u3057\u3066\u3001backup\u304b\u3089restore\u3002\u4f5c\u696d\u306fUSB flash\u306b\u5165\u308c\u305f<a href=\"http:\/\/www.knopper.net\/knoppix\/index-en.html\">Knoppix 7<\/a>\u3067boot\u3057\u3066\u884c\u3063\u305f\u3002<\/p>\n<p>\u8a2d\u5b9a\u5909\u66f4\u3002<\/p>\n<pre>\r\n\/etc\/mdadm\/mdadm.conf\r\n\/etc\/fstab<\/pre>\n<p>initrd\u3092\u66f4\u65b0\u3002(\u672c\u756a\u30b7\u30b9\u30c6\u30e0\u306b\u306a\u308b\u3001\u4eca\u30b3\u30d4\u30fc\u3057\u3066\u305f\u5148\u304c\/target)<\/p>\n<pre>\r\n% mount --bind \/dev \/target\/dev\r\n% mount --bind \/sys \/target\/sys\r\n% mount --bind \/proc \/target\/proc\r\n% chroot \/target\r\n% dpkg-reconfigure linux-image-2.6.32<\/pre>\n<p>\u3068\u3044\u3046\u4e8b\u3067\u3001RAID\u306erebuild\u306e\u524d\u306b\u306f <\/p>\n<ul>\n<li>full backup\n<\/li>\n<li>degraded\u3067\u52d5\u3044\u3066\u308bdisk\u306elow level format check&#038;remap<\/li>\n<\/ul>\n<p>\u304c\u5fc5\u9808\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u6642\u66f4\u65b0\u3057\u305fRAID5\u306e\u305d\u306e\u5f8c\u3002 Debian\u3067\u904b\u7528\u3057\u3066\u308bfileserver\u306e\u30c7\u30a3\u30b9\u30af\u30a2\u30af\u30bb\u30b9\u304c\u3084\u305f\u3089\u9045\u304f\u306a\u3063\u305f\u3002\u305d\u3046\u3044\u3048\u3070\u3001logcheck\u304b\u3089ata\u95a2\u4fc2\u306e\u30a8\u30e9\u30fc\u304c\u9001\u3089\u308c\u3066\u304d\u305f\u306e\u3092\u601d\u3044\u51fa\u3059\u3002log\u3092\u898b\u3066\u307f\u308b\u3068\u3001RAID5\u306e3\u53f0\u306e\u3046\u3061\u306e1\u53f0\u304c\u304a\u304b\u3057\u3044\u3002 \u3053\u306e\u3068\u304d\u306eSMART\u306f\u307e\u3060PASS\u3060\u3063\u305f\u306e\u304c\u3001\u6b21\u306e\u65e5\u306b\u306f\u3082\u3046FAILED\u306b\u306a\u3063\u3066\u3001\u75c7\u72b6\u60aa\u5316\u3002smartctl &#8211;all \/dev\/sdc \u306eoutput\u3002 % mdadm &#8211;manage \/dev\/md1 &#8211;fail \/dev\/sda1 % mdadm &#8211;manage \/dev\/md1 &#8211;remove \/dev\/sda1 % swapoff \/dev\/sda2 \u3053\u306edisk\u3092offline\u306b\u3057\u3066\u3001\u65b0\u3057\u3044\u306e\u3092\u767a\u6ce8\u3002\u65b0\u3057\u3044\u306e\u3082\u307e\u305fWD Green\u3001\u3060\u3051\u30693T\u306eWD30EZRX\u3002\u4ed6\u306e2TB 2\u53f0\u3082\u3044\u305a\u308c3TB\u306b\u4ea4\u63db\u3057\u3066\u3001\u305d\u306e\u3068\u304d\u306bextend\u3059\u308b\u3002\u5f8c\u3067\u8abf\u3079\u305f\u3089\u3001NAS\u7528\u306bTLER\u3092\u5909\u66f4\u53ef\u80fd\u306aWD Red\u3063\u3066\u51fa\u3066\u308b\u306e\u3092\u77e5\u3063\u305f\u3002\u5024\u6bb5\u3082\u3042\u3093\u307e\u308a\u5909\u308f\u3089\u306a\u3044\u3057\u3001\u3053\u3063\u3061\u306b\u3059\u308c\u3070\u826f\u304b\u3063\u305f\u3002\u3002\u3002 WD Caviar Green\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f8\u79d2\u30a2\u30af\u30bb\u30b9\u7121\u3044\u3068head\u3092park\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u308b\u304c\u3001Linux\u3067\u4f7f\u3063\u3066\u308b\u3068log\u306e\u66f8\u304d\u51fa\u3057\u306e\u305f\u3081\u306b\u3001park\u3057\u3066\u306f\u3059\u3050\u623b\u3057\u3066\u3068\u3044\u3046\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308b\u3002\u3053\u308c\u306e\u30c7\u30d5\u30a9\u30eb\u30c88\u79d2\u3092\u5ef6\u3070\u3059\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u304c\u3042\u308b\u3002idle3ctl\u3002 \u3053\u308c\u3084\u3063\u305f\u306f\u305a\u3060\u3068\u601d\u3063\u305f\u304c\u30018\u79d2\u306e\u307e\u307e\u3060\u3063\u305f\u3002\u5f71\u97ff\u7121\u3044\u3068\u601d\u3063\u3066\u5909\u3048\u306a\u304b\u3063\u305f\u304b\uff1f\u3000smart\u306e Load_Cycle_Count 1673180\u56de\u3068\u3044\u3046\u306e\u3092\u898b\u308b\u3068\u3001\u3055\u3059\u304c\u306b\u5ef6\u3070\u3057\u305f\u65b9\u304c\u826f\u3044\u306a\u30022\u5e74\u3061\u3087\u3044\u306e\u9023\u7d9a\u7a3c\u50cd\u3067\u3001Power_On_Hours 2\u4e07\u6642\u9593\u3002\u307e\u3060\u58ca\u308c\u308b\u306b\u306f\u65e9\u3044\u3002\u3084\u306f\u308a\u904e\u5ea6\u306eLoad_Cycle_Count\u304c\u539f\u56e0\u306b\u306a\u3063\u3066\u308b\u53ef\u80fd\u6027\u306f\u9ad8\u3044\u304b\u3002 % idle3ctl -s 255 \/dev\/sdb \u3053\u308c\u3067\u30013810\u79d2\u3002power on\u6642\u306b\u65b0\u3057\u3044\u8a2d\u5b9a\u304c\u53cd\u6620\u3055\u308c\u308b\u3002 \u3053\u3053\u3067\u65b0\u3057\u3044disk\u3092partition\u3092\u5207\u3063\u3066RAID\u306b\u7d44\u307f\u8fbc\u3080\u524d\u306bfull backup\u53d6\u3063\u305f\u3002 partition\u5207\u308b\u3068\u3053\u308d\u3067\u307e\u305a\u5f15\u3063\u304b\u304b\u308b\u3002\u4eca\u307e\u3067\u306fmsdos partition label\u3067\u5207\u3063\u3066\u305f\u304c\u3001\u305d\u308c\u3067\u306f2TB\u4ee5\u4e0a\u306edisk\u306b\u306f\u5bfe\u5fdc\u51fa\u6765\u306a\u3044\u3002gpt label\u3092\u4f7f\u3046\u3002\u307e\u305f\u30014KB sector\u306edisk\u306a\u306e\u3067partition\u306f4096\/512=8\u306e\u500d\u6570\u3067\u59cb\u3081\u308b\u300264\u3067\u826f\u3044\u306e\u3060\u3051\u3069\u3001parted\u304c2048\u306e\u500d\u6570\u3058\u3083\u306a\u3044\u3068 align\u3057\u3066\u306a\u3044\u3068warning\u51fa\u3059\u306e\u3067\u30012048\u306b\u3057\u3068\u304f\u3002 (parted) unit s (parted) print Model: ATA WDC [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[12],"tags":[],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7QWS-mT","_links":{"self":[{"href":"https:\/\/www.ippei813.com\/nikki\/wp-json\/wp\/v2\/posts\/1419"}],"collection":[{"href":"https:\/\/www.ippei813.com\/nikki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ippei813.com\/nikki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ippei813.com\/nikki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ippei813.com\/nikki\/wp-json\/wp\/v2\/comments?post=1419"}],"version-history":[{"count":24,"href":"https:\/\/www.ippei813.com\/nikki\/wp-json\/wp\/v2\/posts\/1419\/revisions"}],"predecessor-version":[{"id":1479,"href":"https:\/\/www.ippei813.com\/nikki\/wp-json\/wp\/v2\/posts\/1419\/revisions\/1479"}],"wp:attachment":[{"href":"https:\/\/www.ippei813.com\/nikki\/wp-json\/wp\/v2\/media?parent=1419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ippei813.com\/nikki\/wp-json\/wp\/v2\/categories?post=1419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ippei813.com\/nikki\/wp-json\/wp\/v2\/tags?post=1419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}