{"id":11360,"date":"2014-03-30T22:45:43","date_gmt":"2014-03-30T13:45:43","guid":{"rendered":"http:\/\/oichinote.com\/plus\/?p=11360"},"modified":"2014-03-30T22:45:43","modified_gmt":"2014-03-30T13:45:43","slug":"last-stage-of-recovering-zfs","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2014\/03\/last-stage-of-recovering-zfs.html","title":{"rendered":"ZFS\u5fa9\u65e7\u306f\u5927\u8a70\u3081\u306b"},"content":{"rendered":"<p>\u30d0\u30ec\u30f3\u30bf\u30a4\u30f3\u30c7\u30fc\u9803\u306b\u3001FreeBSD 9.1\u309210.0\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3088\u3046\u3068\u3057\u305f\u6642\u3001\u4e0a\u624b\u304f\u884c\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2014\/02\/be-upgrading-freebsd-from-9-1-to-10-0.html\" rel=\"_RAclick\">FreeBSD 9.1\u309210.0\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u4e2d: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2014\u5e742\u670814\u65e5)<\/em><\/li>\n<\/ul>\n<p>\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u3069\u3046\u3082\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304c\u58ca\u308c\u3066\u3044\u308b\u69d8\u306a&#8230;\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2014\/02\/disk-errors-on-zfs.html\" rel=\"_RAclick\">ZFS\u3067\u30c7\u30a3\u30b9\u30af\u30a8\u30e9\u30fc: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2014\u5e742\u670817\u65e5)<\/em><\/li>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2014\/02\/unrecovered-zfs-errors.html\" rel=\"_RAclick\">ZFS\u306e\u30c7\u30a3\u30b9\u30af\u30a8\u30e9\u30fc\u56de\u5fa9\u305b\u305a: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2014\u5e742\u670819\u65e5)<\/em><\/li>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2014\/02\/severity-of-zfs-disk-error-is-critical.html\" rel=\"_RAclick\">ZFS\u306e\u30c7\u30a3\u30b9\u30af\u30a8\u30e9\u30fc\u306f\u304b\u306a\u308a\u6df1\u523b\u306a\u72b6\u6cc1\u304b\u3082: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2014\u5e742\u670821\u65e5)<\/em><\/li>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2014\/03\/cannot-recover-from-zfs-error.html\" rel=\"_RAclick\">ZFS\u3067\u306e\u30c7\u30a3\u30b9\u30af\u30a8\u30e9\u30fc\u3001\u56de\u5fa9\u3067\u304d\u307e\u305b\u3093: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2014\u5e743\u67087\u65e5)<\/em><\/li>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2014\/03\/be-copying-files-by-rsync.html\" rel=\"_RAclick\">ZFS\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u4e2d: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2014\u5e743\u670810\u65e5)<\/em><\/li>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2014\/03\/recovering-zfs.html\" rel=\"_RAclick\">ZFS\u5fa9\u65e7\u306e\u9053\u306f\u7d9a\u304f: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2014\u5e743\u670813\u65e5)<\/em><\/li>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2014\/03\/rename-directory-from-exports-to-export.html\" rel=\"_RAclick\">ZFS\u306e\u5fa9\u65e7\u3064\u3044\u3067\u306b\/exports\u304b\u3089\/export\u306b\u79fb\u52d5: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2014\u5e743\u670821\u65e5)<\/em><\/li>\n<\/ul>\n<p>\u300c\u30d0\u30ec\u30f3\u30bf\u30a4\u30f3\u306e\u60b2\u5287\u300d\u3068\u3067\u3082\u7533\u3057\u307e\u3057\u3087\u3046\u304b&#8230;\u3002\u305d\u3057\u3066\u3001\u3053\u3093\u306a\u72b6\u614b\u3067\u3059\u3002<\/p>\n<pre>\r\n# zpool status upool\r\n  pool: upool\r\n state: ONLINE\r\nstatus: One or more devices has experienced an error resulting in data\r\n\tcorruption.  Applications may be affected.\r\naction: Restore the file in question if possible.  Otherwise restore the\r\n\tentire pool from backup.\r\n   see: http:\/\/illumos.org\/msg\/ZFS-8000-8A\r\n  scan: resilvered 1.20T in 11h51m with 59 errors on Sun Mar 30 14:57:14 2014\r\nconfig:\r\n\r\n\tNAME           STATE     READ WRITE CKSUM\r\n\tupool          ONLINE       0     0    77\r\n\t  mirror-0     ONLINE       0     0   158\r\n\t    gpt\/disk1  ONLINE       0     0   158\r\n\t    gpt\/disk4  ONLINE       0     0   158\r\n\t  mirror-2     ONLINE       0     0    44\r\n\t    gpt\/disk2  ONLINE       0     0    44\r\n\t    gpt\/disk3  ONLINE       0     0    44\r\n\tlogs\r\n\t  gpt\/zil      ONLINE       0     0     0\r\n\tcache\r\n\t  gpt\/l2arc    ONLINE       0     0     0\r\n\r\nerrors: 60 data errors, use '-v' for a list\r\n<\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u5c11\u3057\u305a\u3064\u30c7\u30fc\u30bf\u30b3\u30d4\u30fc\u3092\u7e70\u308a\u8fd4\u3057\u3001\u4eee\u30b7\u30b9\u30c6\u30e0\u3067\u5b89\u5b9a\u7684\u306b\u52d5\u4f5c\u3059\u308b\u69d8\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u305d\u308c\u3067\u3001\u304a\u304b\u3057\u304f\u306a\u3063\u3066\u3044\u305fupool\u3092zpool destroy upool\u3067\u7834\u58ca\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u3001\u3044\u307e\u307e\u3067upool\u3092\u4f5c\u308a\u4e0a\u3052\u3066\u6765\u305f\u884c\u7a0b\u3092\u3084\u308a\u76f4\u3057\u3001upool\u3092\u518d\u69cb\u7bc9\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre>\r\n# zpool create upool gpt\/disk1\r\n# zpool attach upool gpt\/disk1 gpt\/disk4\r\n# zpool add upool mirror gpt\/disk2 gpt\/disk3\r\n# zpool add upool cache gpt\/l2arc\r\n# zpool add upool log gpt\/zil\r\n<\/pre>\n<p>\u305d\u306e\u7d50\u679c\u3001\u6b21\u306e\u69d8\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre>\r\n# zpool status upool\r\n  pool: upool\r\n state: ONLINE\r\n  scan: resilvered 85K in 0h0m with 0 errors on Sun Mar 30 22:21:59 2014\r\nconfig:\r\n\r\n\tNAME           STATE     READ WRITE CKSUM\r\n\tupool          ONLINE       0     0     0\r\n\t  mirror-0     ONLINE       0     0     0\r\n\t    gpt\/disk1  ONLINE       0     0     0\r\n\t    gpt\/disk4  ONLINE       0     0     0\r\n\t  mirror-1     ONLINE       0     0     0\r\n\t    gpt\/disk2  ONLINE       0     0     0\r\n\t    gpt\/disk3  ONLINE       0     0     0\r\n\tlogs\r\n\t  gpt\/zil      ONLINE       0     0     0\r\n\tcache\r\n\t  gpt\/l2arc    ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<p>\u975e\u5e38\u306b\u5947\u9e97\u306a\u72b6\u614b\u3067\u3059\u3002\u3053\u3053\u306b\u3001\u4eee\u306b\u7acb\u3061\u4e0a\u3052\u3066\u3044\u308bypool\u306e\u5185\u5bb9\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n# zfs snapshot -r ypool@20140330\r\n# zfs send -vRp ypool@20140330 | zfs receive -uvdF upool\r\n<\/pre>\n<p>\u9806\u8abf\u306b\u30b3\u30d4\u30fc\u304c\u9032\u3093\u3067\u3044\u307e\u3059\u3002\u4eca\u306f\u3001\u30b3\u30d4\u30fc\u304c\u7d42\u308f\u308b\u306e\u3092\u5f85\u3063\u3066\u3044\u308b\u72b6\u6cc1\u3067\u3059\u3002<\/p>\n<p>\u30b3\u30d4\u30fc\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u30b7\u30f3\u30b0\u30eb\u30e6\u30fc\u30b6\u30e2\u30fc\u30c9\u3067\u7acb\u3061\u4e0a\u3052\u3001ypool\u306e\u30c7\u30a3\u30b9\u30af\u3092\u30de\u30a6\u30f3\u30c8\u3057\u306a\u3044\u69d8\u306b\u8a2d\u5b9a\u3057\u3001\u4eca\u5ea6\u306fupool\u306e\u30c7\u30a3\u30b9\u30af\u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b\u69d8\u306b\u3057\u3066\u30de\u30eb\u30c1\u30e6\u30fc\u30b6\u30e2\u30fc\u30c9\u306b\u79fb\u884c\u3059\u308c\u3070\u3001\u5143\u901a\u308a\u306e\u306f\u305a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d0\u30ec\u30f3\u30bf\u30a4\u30f3\u30c7\u30fc\u9803\u306b\u3001FreeBSD 9.1\u309210.0\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3088\u3046\u3068\u3057\u305f\u6642\u3001\u4e0a\u624b\u304f\u884c\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002 FreeBSD 9.1\u309210.0\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u4e2d: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593 (2014\u5e742\u670814\u65e5) \u8abf\u3079\u3066\u307f\u308b\u3068\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300eZFS\u5fa9\u65e7\u306f\u5927\u8a70\u3081\u306b\u300f\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[60,59],"tags":[],"class_list":["post-11360","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-nas"],"jetpack_publicize_connections":[],"jetpack-related-posts":[{"id":11051,"url":"https:\/\/oichinote.com\/plus\/2014\/03\/cannot-recover-from-zfs-error.html","url_meta":{"origin":11360,"position":0},"title":"ZFS\u3067\u306e\u30c7\u30a3\u30b9\u30af\u30a8\u30e9\u30fc\u3001\u56de\u5fa9\u3067\u304d\u307e\u305b\u3093","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e743\u67087\u65e5","format":false,"excerpt":"\u3057\u3070\u3089\u304f\u524d\u304b\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u306b\u3057\u3066\u3044\u308bFreeBSD\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0(ZFS\u4f7f\u7528)\u3067\u3001\u30a8\u30e9\u30fc\u304c\u8d77\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"ZFS mirror","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2014\/03\/20140307zfs-mirror3.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":10947,"url":"https:\/\/oichinote.com\/plus\/2014\/02\/severity-of-zfs-disk-error-is-critical.html","url_meta":{"origin":11360,"position":1},"title":"ZFS\u306e\u30c7\u30a3\u30b9\u30af\u30a8\u30e9\u30fc\u306f\u304b\u306a\u308a\u6df1\u523b\u306a\u72b6\u6cc1\u304b\u3082","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e742\u670821\u65e5","format":false,"excerpt":"\u5148\u65e5\u304b\u3089\u767a\u751f\u3057\u3066\u3044\u308b\u3001ZFS\u3067\u306e\u30c7\u30a3\u30b9\u30af\u30a8\u30e9\u30fc\u3067\u3059\u304c\u3001\u304b\u306a\u308a\u6df1\u523b\u306a\u72b6\u6cc1\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002 ZFS\u3067\u30c7\u30a3\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11158,"url":"https:\/\/oichinote.com\/plus\/2014\/03\/be-copying-files-by-rsync.html","url_meta":{"origin":11360,"position":2},"title":"ZFS\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u4e2d","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e743\u670810\u65e5","format":false,"excerpt":"\u5148\u65e5\u304b\u3089\u7d9a\u3044\u3066\u3044\u308b\u3001ZFS\u306e\u4e0d\u8abf...\u3002 ZFS\u3067\u306e\u30c7\u30a3\u30b9\u30af\u30a8\u30e9\u30fc\u3001\u56de\u5fa9\u3067\u304d\u307e\u305b\u3093: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593 \u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10919,"url":"https:\/\/oichinote.com\/plus\/2014\/02\/disk-errors-on-zfs.html","url_meta":{"origin":11360,"position":3},"title":"ZFS\u3067\u30c7\u30a3\u30b9\u30af\u30a8\u30e9\u30fc","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e742\u670817\u65e5","format":false,"excerpt":"\u5148\u65e5\u3001FreeBSD\u30929.1\u304b\u308910.0\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001\u9014\u4e2d\u3067\u6b62\u307e\u3063\u3066\u3057\u307e\u3063\u3066\u3001\u3046\u3093\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11371,"url":"https:\/\/oichinote.com\/plus\/2014\/04\/have-upgraded-freebsd-10-0-almost.html","url_meta":{"origin":11360,"position":4},"title":"FreeBSD 10.0\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067\u304d\u305f\u3001\u304b\u306a?","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e744\u67082\u65e5","format":false,"excerpt":"\u305a\u3063\u3068\u82e6\u3057\u3093\u3067\u3044\u305f\u3001FreeBSD 10.0\u3078\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u304c\u534a\u5206\u304f\u3089\u3044\u7d42\u308f\u308a\u307e\u3057\u305f\u3002 FreeB\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10897,"url":"https:\/\/oichinote.com\/plus\/2014\/02\/be-upgrading-freebsd-from-9-1-to-10-0.html","url_meta":{"origin":11360,"position":5},"title":"FreeBSD 9.1\u309210.0\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u4e2d[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e742\u670814\u65e5","format":false,"excerpt":"\u6b21\u306e\u8a18\u4e8b\u3092\u8aad\u3080\u3068\u3001\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u305f\u65b9\u304c\u65b0\u3057\u3044\u6a5f\u80fd\u304c\u4f7f\u3048\u3066\u826f\u3055\u305d\u3046\u306a\u306e\u3067\u3001\u4f5c\u696d\u3092\u958b\u59cb\u3057\u307e\u3057\u305f\u3002 Fr\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/11360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/comments?post=11360"}],"version-history":[{"count":1,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/11360\/revisions"}],"predecessor-version":[{"id":11361,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/11360\/revisions\/11361"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=11360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=11360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=11360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}