{"id":338,"date":"2009-08-02T14:59:56","date_gmt":"2009-08-02T05:59:56","guid":{"rendered":"http:\/\/unos.biz\/blog\/archives\/338"},"modified":"2009-08-04T02:36:58","modified_gmt":"2009-08-03T17:36:58","slug":"nas%e3%81%ae%e7%8e%89%e4%ba%a4%e6%8f%9b","status":"publish","type":"post","link":"http:\/\/unos.biz\/blog\/archives\/338","title":{"rendered":"NAS\u306e\u7389\u4ea4\u63db"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" title=\"\u518d\u69cb\u7bc9\u4e2d......\" style=\"border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"315\" alt=\"\u518d\u69cb\u7bc9\u4e2d......\" src=\"http:\/\/unos.biz\/blog\/wp-content\/uploads\/2009\/08\/snapshot1249191928227595.jpg\" width=\"420\" border=\"0\" \/> <\/p>\n<p>\u4e00\u6642\u671f\u3055\u3093\u3056\u3093\u8a18\u4e8b\u3092\u66f8\u3044\u305fNAS\u3060\u304c\u3001\u3064\u3044\u306b\uff11\u767a\u30c8\u30e9\u30d6\u30eb\u304c\u8d77\u304d\u305f\u3002\u30a2\u30af\u30bb\u30b9\u30e9\u30f3\u30d7\u304c\u3064\u304d\u3063\u3071\u306a\u3057\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u898b\u3066\u307f\u308b\u3068\u3001<\/p>\n<pre>  pool: tank\n state: DEGRADED\nstatus: One or more devices are faulted in response to persistent errors.\n        Sufficient replicas exist for the pool to continue functioning in a\n        degraded state.\naction: Replace the faulted device, or use 'zpool clear' to mark the device\n        repaired.\n scrub: none requested\nconfig:\n\n        NAME        STATE     READ WRITE CKSUM\n        tank        DEGRADED     0     0     0\n          raidz2    DEGRADED     0     0     0\n            c5t0d0  ONLINE       0     0     0\n            c6t0d0  FAULTED      8   205     0  too many errors\n            c5t1d0  ONLINE       0     0     0\n            c6t1d0  ONLINE       0     0     0\n            c5t2d0  ONLINE       0     0     0\n            c6t2d0  ONLINE       0     0     0\n            c5t3d0  ONLINE       0     0     0\n            c6t3d0  ONLINE       0     0     0\n        spares\n          c3d1      AVAIL<\/pre>\n<p>\u3068\u306e\u3053\u3068\u3002\u4f55\u304c\u539f\u56e0\u304b\u308f\u304b\u3089\u306a\u3044\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u66f8\u304d\u8fbc\u307f\u30a8\u30e9\u30fc\u304c\u983b\u767a\u3057\u3066\u3044\u308b\u7389(HDD\/c6t6d0)\u304c\u3042\u308b\u3088\u3046\u3060\u3002\u3068\u308a\u3042\u3048\u305a<a href=\"http:\/\/docs.sun.com\/app\/docs\/doc\/819-6260\/gbcet?l=ja&amp;a=view\" target=\"_blank\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u8003\u306b\u3057\u3064\u3064\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4f5c\u696d\u3002\u30db\u30c3\u30c8\u30b9\u30ef\u30c3\u30d7\u975e\u5bfe\u5fdc\u3067\u3042\u308c\u3070\u3044\u3063\u305f\u3093\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u3066\u304b\u3089HDD\u3092\u53d6\u308a\u66ff\u3048\u30014\u306e\u624b\u9806\u304b\u3089\u3084\u308c\u3070\u826f\u3044\u306f\u305a\u3002<\/p>\n<p>1)\u7389\u3092\u5916\u3059\u6e96\u5099<\/p>\n<p>cfgadm\u30b3\u30de\u30f3\u30c9(\u5f15\u6570\u306a\u3057)\u3067\u30c7\u30d0\u30a4\u30b9\u4e00\u89a7\u304c\u51fa\u308b\u306e\u3067\u3001\u305d\u306e\u4e2d\u304b\u3089\u554f\u984c\u306e\u8d77\u304d\u3066\u3044\u308b\u7389\u3092\u898b\u3064\u3051\u3066\u3001unconfigure\u3059\u308b\u3002unconfigure\u3057\u305f\u3089cfgadm\u3067\u4e00\u89a7\u3092\u78ba\u8a8d\u3057\u3066\u3001unconfigure\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3002<\/p>\n<pre>root@melongena:~# <strong>cfgadm<\/strong>\nAp_Id                          Type         Receptacle   Occupant     Condition\nsata4\/0::dsk\/c5t0d0            disk         connected    configured   ok\nsata4\/1::dsk\/c5t1d0            disk         connected    configured   ok\nsata4\/2::dsk\/c5t2d0            disk         connected    configured   ok\nsata4\/3::dsk\/c5t3d0            disk         connected    configured   ok\nsata5\/0::dsk\/c6t0d0            disk         connected    configured   ok\nsata5\/1::dsk\/c6t1d0            disk         connected    configured   ok\nsata5\/2::dsk\/c6t2d0            disk         connected    configured   ok\nsata5\/3::dsk\/c6t3d0            disk         connected    configured   ok\n\uff5e\u7565\uff5e\nroot@melongena:~# <strong>cfgadm -c unconfigure sata5\/0::dsk\/c6t0d0<\/strong>\nUnconfigure the device at: \/devices\/pci@0,0\/pci8086,244e@1e\/pci1095,3124@1:0\nThis operation will suspend activity on the SATA device\nContinue (yes\/no)? <strong>yes<\/strong>\nroot@melongena:~# <strong>cfgadm<\/strong>\nAp_Id                          Type         Receptacle   Occupant     Condition\nsata4\/0::dsk\/c5t0d0            disk         connected    configured   ok\nsata4\/1::dsk\/c5t1d0            disk         connected    configured   ok\nsata4\/2::dsk\/c5t2d0            disk         connected    configured   ok\nsata4\/3::dsk\/c5t3d0            disk         connected    configured   ok\nsata5\/0                        disk         connected    unconfigured ok\nsata5\/1::dsk\/c6t1d0            disk         connected    configured   ok\nsata5\/2::dsk\/c6t2d0            disk         connected    configured   ok\nsata5\/3::dsk\/c6t3d0            disk         connected    configured   ok\n\uff5e\u7565\uff5e<\/pre>\n<p>2)\u7389\u3092\u5916\u3059<\/p>\n<p>\u304a\u3082\u3080\u308d\u306b\u7389\u3092\u5916\u3057\u3066\u4e88\u5099\u306e\u7389\u306b\u4ed8\u3051\u66ff\u3048\u3066\u5143\u306e\u4f4d\u7f6e\u306b\u633f\u5165\u3002cfgadm\u3067\u306fempty\u306b\u306a\u308b\u3002<\/p>\n<pre>root@melongena:~# <strong>cfgadm<\/strong>\nAp_Id                          Type         Receptacle   Occupant     Condition\nsata4\/0::dsk\/c5t0d0            disk         connected    configured   ok\nsata4\/1::dsk\/c5t1d0            disk         connected    configured   ok\nsata4\/2::dsk\/c5t2d0            disk         connected    configured   ok\nsata4\/3::dsk\/c5t3d0            disk         connected    configured   ok\nsata5\/0                        sata-port    empty        unconfigured ok\nsata5\/1::dsk\/c6t1d0            disk         connected    configured   ok\nsata5\/2::dsk\/c6t2d0            disk         connected    configured   ok\nsata5\/3::dsk\/c6t3d0            disk         connected    configured   ok\n\uff5e\u7565\uff5e<\/pre>\n<p>3)\u518d\u5ea6\u7389\u3092\u8a8d\u8b58\u3055\u305b\u308b<\/p>\n<p>cfgadm\u3067\u8a72\u5f53\u306e\u30dd\u30fc\u30c8\u306bHDD\u304c\u8a8d\u8b58\u3055\u308c\u3001unconfigure\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3089\u30011\u306e\u624b\u9806\u3068\u540c\u3058\u304f\u3001\u4eca\u5ea6\u306fconfigure\u3059\u308b\u3002<\/p>\n<pre>root@melongena:~# <strong>cfgadm<\/strong>\nAp_Id                          Type         Receptacle   Occupant     Condition\nsata4\/0::dsk\/c5t0d0            disk         connected    configured   ok\nsata4\/1::dsk\/c5t1d0            disk         connected    configured   ok\nsata4\/2::dsk\/c5t2d0            disk         connected    configured   ok\nsata4\/3::dsk\/c5t3d0            disk         connected    configured   ok\nsata5\/0                        disk         connected    unconfigured unknown\nsata5\/1::dsk\/c6t1d0            disk         connected    configured   ok\nsata5\/2::dsk\/c6t2d0            disk         connected    configured   ok\nsata5\/3::dsk\/c6t3d0            disk         connected    configured   ok\n\uff5e\u7565\uff5e\nroot@melongena:~# <strong>cfgadm -c configure sata5\/0::dsk\/c6t0d0<\/strong>\nroot@melongena:~# <strong>cfgadm<\/strong>\nAp_Id                          Type         Receptacle   Occupant     Condition\nsata4\/0::dsk\/c5t0d0            disk         connected    configured   ok\nsata4\/1::dsk\/c5t1d0            disk         connected    configured   ok\nsata4\/2::dsk\/c5t2d0            disk         connected    configured   ok\nsata4\/3::dsk\/c5t3d0            disk         connected    configured   ok\nsata5\/0::dsk\/c6t0d0            disk         connected    configured   ok\nsata5\/1::dsk\/c6t1d0            disk         connected    configured   ok\nsata5\/2::dsk\/c6t2d0            disk         connected    configured   ok\nsata5\/3::dsk\/c6t3d0            disk         connected    configured   ok\n\uff5e\u7565\uff5e<\/pre>\n<p>4)zfs\u306b\u7389\u304c\u4ea4\u63db\u3055\u308c\u305f\u3053\u3068\u3092\u901a\u77e5\u3059\u308b<\/p>\n<p>\u3053\u308c\u3067\u3001\u5f8c\u306f\u52dd\u624b\u306bresilver(\u518d\u69cb\u7bc9)\u304c\u884c\u308f\u308c\u308b\u3002\u3046\u3061\u306e\u5834\u5408\u306f1.5%\u307b\u3069\u9032\u3093\u3060\u72b6\u614b\u3067\u6b8b\u308a5h28m\u3068\u51fa\u305f\u3002\u3046\u3061\u306fPCI\u30d0\u30b9\u306b4\u30dd\u30fc\u30c8SATA\u30ab\u30fc\u30c9\u3092\uff12\u679a\u633f\u3057\u3066\u3001PCI\u30d0\u30b9\u304c\u5f8b\u901f\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u7279\u306b\u3072\u3069\u304f\u9045\u3044\u304c\u3001\u305d\u3046\u3067\u306a\u304f\u3066\u3082\u305d\u3053\u305d\u3053\u6642\u9593\u304c\u304b\u304b\u308b\u3002<br \/>\n  <br \/>\u6687\u306b\u3042\u304b\u3057\u3066\u6642\u3005status\u3092\u898b\u3066\u3044\u305f\u3089\u3001\u3071\u3089\u3071\u3089\u3068\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u30a8\u30e9\u30fc\u304c\u307b\u304b\u306e\u30c9\u30e9\u30a4\u30d6\u3067\u51fa\u305f\u308a\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6c17\u304c\u3064\u3044\u305f\u3002\u30b1\u30fc\u30d6\u30eb\u306e\u54c1\u8cea\u304c\u3084\u305f\u3089\u60aa\u3044(1\u672c100\u5186\u306e\u30b1\u30fc\u30d6\u30eb\u304c\u6df7\u3058\u3063\u3066\u3044\u308b)\u306e\u304c\u539f\u56e0\u306a\u306e\u3060\u308d\u3046\u3068\u601d\u3046\u304c\u3001\u672c\u5f53\u306b\u99c4\u76ee\u306a\u30b1\u30fc\u30d6\u30eb\u306f\u4ee5\u524d\u3055\u3093\u3056\u3093\u3072\u3069\u3044\u76ee\u306b\u3042\u3063\u3066\u629c\u3044\u3066\u3042\u308b\u306e\u3067\u30ad\u30cb\u30b7\u30ca\u30a4\u3053\u3068\u306b\u3059\u308b(\u771f\u4f3c\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093w)\u3002\u30d1\u30ea\u30c6\u30a3\u304c\u4e8c\u91cd\u306b\u3042\u308b\u3053\u3068\u3082\u3001\u3053\u306e\u8fba\u3092\u6df1\u304f\u6c17\u306b\u3057\u306a\u304f\u3066\u3059\u3080\u7406\u7531\u3002<\/p>\n<pre>root@melongena:~# zpool replace tank c6t0d0\nroot@melongena:~# zpool status\n\uff5e\u7565\uff5e\n  pool: tank\n state: DEGRADED\n scrub: scrub in progress for 0h0m, 0.00% done, 378h41m to go\nconfig:\n\n        NAME              STATE     READ WRITE CKSUM\n        tank              DEGRADED     0     0     0\n          raidz2          DEGRADED     0     0     0\n            c5t0d0        ONLINE       0     0     0\n            replacing     DEGRADED     0     0 5.40K\n              c6t0d0s0\/o  FAULTED      8   205     0  too many errors\n              c6t0d0      ONLINE       0     0     0\n            c5t1d0        ONLINE       0     0     0\n            c6t1d0        ONLINE       0     0     0\n            c5t2d0        ONLINE       0     0     0\n            c6t2d0        ONLINE       0     0     0\n            c5t3d0        ONLINE       0     0     0\n            c6t3d0        ONLINE       0     0     0\n        spares\n          c3d1            AVAIL\n\nerrors: No known data errors<\/pre>\n<p>\u5916\u3057\u305f\u7389\u306f\u5225\u306e\u6a5f\u68b0\u3067\u4e00\u65e5\u307b\u3069\u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\u3057\u7d9a\u3051\u3066\u3001\u554f\u984c\u304c\u3042\u308b\u3088\u3046\u3060\u3063\u305f\u3089\u8cfc\u5165\u3057\u305f\u5e97\u3078\u6301\u3061\u8fbc\u3082\u3046\u3068\u601d\u3046\u3002<\/p>\n<p>\u8ffd\u8a18\uff1a<br \/>\n  <br \/>\u7fcc\u65e5\u898b\u3066\u307f\u305f\u3089\u4f5c\u696d\u304c\u7d42\u308f\u3063\u3066\u3044\u305f\u3002\u3069\u30fc\u3082\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u30a8\u30e9\u30fc\u304c\u307d\u3061\u307d\u3061\u51fa\u3066\u3044\u308b\u3002\u6b21\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6642\u306b\u306f\u30b1\u30fc\u30d6\u30eb\u3092\u5909\u3048\u305f\u65b9\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3002\u3002<\/p>\n<pre>root@melongena:~# <strong>zpool status<\/strong>\n\uff5e\u7565\uff5e\n  pool: tank\n state: ONLINE\nstatus: One or more devices has experienced an unrecoverable error.  An\n        attempt was made to correct the error.  Applications are unaffected.\naction: Determine if the device needs to be replaced, and clear the errors\n        using 'zpool clear' or replace the device with 'zpool replace'.\n   see: http:\/\/www.sun.com\/msg\/ZFS-8000-9P\n scrub: resilver completed after 5h20m with 0 errors on Sun Aug  2 19:52:20 2009\nconfig:\n\n        NAME        STATE     READ WRITE CKSUM\n        tank        ONLINE       0     0     0\n          raidz2    ONLINE       0     0     0\n            c5t0d0  ONLINE       0     0     5  108K resilvered\n            c6t0d0  ONLINE       0     0     0  178G resilvered\n            c5t1d0  ONLINE       0     0     0\n            c6t1d0  ONLINE       0     0     0\n            c5t2d0  ONLINE       0     0     0\n            c6t2d0  ONLINE       0     0     0\n            c5t3d0  ONLINE       0     0     5  108K resilvered\n            c6t3d0  ONLINE       0     0     3  64.5K resilvered\n        spares\n          c3d1      AVAIL\n\nerrors: No known data errors<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u6642\u671f\u3055\u3093\u3056\u3093\u8a18\u4e8b\u3092\u66f8\u3044\u305fNAS\u3060\u304c\u3001\u3064\u3044\u306b\uff11\u767a\u30c8\u30e9\u30d6\u30eb\u304c\u8d77\u304d\u305f\u3002\u30a2\u30af\u30bb\u30b9\u30e9\u30f3\u30d7\u304c\u3064\u304d\u3063\u3071\u306a\u3057\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u898b\u3066\u307f\u308b\u3068\u3001 pool: tank state: DEGRADED status: One or more d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[35,36],"tags":[],"_links":{"self":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts\/338"}],"collection":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/comments?post=338"}],"version-history":[{"count":3,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts\/338\/revisions"}],"predecessor-version":[{"id":341,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts\/338\/revisions\/341"}],"wp:attachment":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/media?parent=338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/categories?post=338"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/tags?post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}