{"id":2337,"date":"2020-10-21T10:46:08","date_gmt":"2020-10-21T01:46:08","guid":{"rendered":"https:\/\/www.ish.org\/blog\/?p=2337"},"modified":"2020-10-22T19:06:45","modified_gmt":"2020-10-22T10:06:45","slug":"nas-1%e5%8f%b7%e6%a9%9f%ef%bc%88%e3%81%9d%e3%81%ae3zfs%e3%81%aeraidz%e4%bf%ae%e5%be%a9%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.ish.org\/blog\/?p=2337","title":{"rendered":"NAS 1\u53f7\u6a5f\uff08\u305d\u306e3:zfs\u306eraidz\u4fee\u5fa9\uff09"},"content":{"rendered":"<p>dump &#038; restore\u304c\u5b8c\u4e86\u3057\u305f\u306e\u3067\u3001shutdown\u3057\u305f\u5f8c\u306b\u3001ada4\u3092raidz\u306e5\u500b\u76ee\u306eHDD\u3068\u4ea4\u63db\u3057\u3066\u518d\u5ea6boot up\u3057\u305f\u3002<!--more--><br \/>\n\u8d77\u52d5\u5f8c\u3001\u81ea\u52d5\u7684\u306bada4\u306e\u4fee\u5fa9\u304c\u59cb\u307e\u308a\u300134\u6642\u9593\u8fd1\u304f\u304b\u304b\u3063\u3066\u4fee\u5fa9\u304c\u5b8c\u4e86\u3057\u305f\u3093\u3060\u3051\u3069\u3001checksum error\u304c\u4e00\u676f\u767a\u751f\u3057\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n<pre>% zpool status\r\n  pool: onion\r\n state: ONLINE\r\nstatus: One or more devices has experienced an unrecoverable error.  An\r\n        attempt was made to correct the error.  Applications are unaffected.\r\naction: Determine if the device needs to be replaced, and clear the errors\r\n        using 'zpool clear' or replace the device with 'zpool replace'.\r\n   see: http:\/\/illumos.org\/msg\/ZFS-8000-9P\r\n  scan: resilvered 3.26T in 1 days 09:43:39 with 0 errors on Tue Oct 20 16:16:47 2020\r\nconfig:\r\n\r\n        NAME                        STATE     READ WRITE CKSUM\r\n        onion                       ONLINE       0     0     0\r\n          raidz1-0                  ONLINE       0     0     0\r\n            ada0p2                  ONLINE       0     0     0\r\n            ada1p2                  ONLINE       0     0     0\r\n            ada2p2                  ONLINE       0     0     0\r\n            ada3p2                  ONLINE       0     0     0\r\n            diskid\/DISK-XXXXXXXXp2  ONLINE       0     0   198\r\n\r\nerrors: No known data errors<\/pre>\n<p>\u3057\u304b\u3057\u4f55\u6545checksum error\u304c\u767a\u751f\u3057\u305f\u3093\u3060\u308d\u3046\u3002\u4e0d\u5b89\u3060\u3063\u305f\u306e\u3067scrub\u3057\u3066\u307f\u305f\u3089<\/p>\n<pre>% zpool status\r\n  pool: onion\r\n state: ONLINE\r\nstatus: One or more devices has experienced an unrecoverable error.  An\r\n        attempt was made to correct the error.  Applications are unaffected.\r\naction: Determine if the device needs to be replaced, and clear the errors\r\n        using 'zpool clear' or replace the device with 'zpool replace'.\r\n   see: http:\/\/illumos.org\/msg\/ZFS-8000-9P\r\n  scan: scrub repaired 4K in 0 days 09:14:51 with 0 errors on Wed Oct 21 01:34:18 2020\r\nconfig:\r\n\r\n        NAME                        STATE     READ WRITE CKSUM\r\n        onion                       ONLINE       0     0     0\r\n          raidz1-0                  ONLINE       0     0     0\r\n            ada0p2                  ONLINE       0     0     0\r\n            ada1p2                  ONLINE       0     0     0\r\n            ada2p2                  ONLINE       0     0     0\r\n            ada3p2                  ONLINE       0     0     0\r\n            diskid\/DISK-XXXXXXXXp2  ONLINE       0     0   199\r\n\r\nerrors: No known data errors<\/pre>\n<p>\u307e\u305fchecksum error\u304c\u5897\u3048\u3066\u3057\u307e\u3063\u305f\u3002(zpool clear\u305b\u305a\u306bscrub\u3057\u305f\u306e\u3067\u3001\u4eca\u56de\u306f1\u500b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3053\u3068\u306b\u306a\u308b\u3002)\u4e0d\u5b89\u3067\u306f\u3042\u308b\u304c\u3001\u4e00\u65e6checksum error\u3092\u30af\u30ea\u30a2\u3057\u3066\u3001\u5f8c\u65e5\u3001\u518d\u5ea6scrub\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002\u305d\u308c\u3088\u308a\u3082\u3001ada4p2\u306b\u306a\u3089\u305adiskid\u8868\u793a\u306e\u307e\u307e\u306a\u306e\u304c\u898b\u305f\u76ee\u304c\u60aa\u304f\u3066\u6c17\u306b\u306a\u308b\u3002ada4p2\u8868\u793a\u306b\u623b\u3059\u65b9\u6cd5\u304c\u5224\u3089\u306a\u3044\u3002\u8868\u793a\u306e\u554f\u984c\u3060\u3051\u3067\u306a\u304f\u3001\u3053\u306e\u307e\u307e\u3067\u306fada4\u3060\u3051gpart\u3067\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u306e\u3082\u9762\u5012\u3002\u4eca\u5f8c\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3067\u3082\u5224\u308a\u306b\u304f\u3044\u306e\u3067gpt label\u3092\u4f7f\u3046\u3053\u3068\u306b\u65b9\u91dd\u5909\u66f4\u3057\u3001live USB\u3067shell\u3092\u8d77\u52d5\u3057\u305f\u5f8c\u3001<\/p>\n<pre># zpool import -R \/mnt -d \/dev\/gpt onion\r\n# zpool status\r\n  pool: onion\r\n state: ONLINE\r\n  scan: resilvered 172K in 0 days 00:00:02 with 0 errors on Wed Oct 21 09:36:35 2020\r\nconfig:\r\n\r\n        NAME                  STATE     READ WRITE CKSUM\r\n        onion                 ONLINE       0     0     0\r\n          raidz1-0            ONLINE       0     0     0\r\n            gpt\/freebsd-zfs0  ONLINE       0     0     0\r\n            gpt\/freebsd-zfs1  ONLINE       0     0     0\r\n            gpt\/freebsd-zfs2  ONLINE       0     0     0\r\n            gpt\/freebsd-zfs3  ONLINE       0     0     0\r\n            gpt\/freebsd-zfs4  ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n# zpool export onion\r\n# reboot<\/pre>\n<p>\u3053\u308c\u3067gpt label\u3067\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u3001gpart show ada4\u7b49\u3082\u7121\u4e8b\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<p><a href=\/blog\/?p=2315>\u305d\u306e2<\/a>\u3078\u623b\u308b\u3000<a href=\/blog\/?p=2353>\u305d\u306e4<\/a>\u3078\u7d9a\u304f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>dump &#038; restore\u304c\u5b8c\u4e86\u3057\u305f\u306e\u3067\u3001shutdown\u3057\u305f\u5f8c\u306b\u3001ada4\u3092raidz\u306e5\u500b\u76ee\u306eHDD\u3068\u4ea4\u63db\u3057\u3066\u518d\u5ea6boot up\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[],"class_list":["post-2337","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-zfs"],"_links":{"self":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2337"}],"version-history":[{"count":15,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2337\/revisions"}],"predecessor-version":[{"id":2357,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2337\/revisions\/2357"}],"wp:attachment":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}