{"id":11051,"date":"2014-03-07T23:59:58","date_gmt":"2014-03-07T14:59:58","guid":{"rendered":"http:\/\/oichinote.com\/plus\/?p=11051"},"modified":"2014-03-08T00:40:15","modified_gmt":"2014-03-07T15:40:15","slug":"cannot-recover-from-zfs-error","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2014\/03\/cannot-recover-from-zfs-error.html","title":{"rendered":"ZFS\u3067\u306e\u30c7\u30a3\u30b9\u30af\u30a8\u30e9\u30fc\u3001\u56de\u5fa9\u3067\u304d\u307e\u305b\u3093"},"content":{"rendered":"<p>\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\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\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<\/ul>\n<p>\u30a8\u30e9\u30fc\u306f\u6c7a\u5b9a\u7684\u3067\u3001\u4fee\u5fa9\u3067\u304d\u306a\u3044\u69d8\u3067\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u79fb\u884c\u306e\u305f\u3081\u3001HDD\u3092\u8cb7\u3044\u307e\u3057\u305f\u3002\u7701\u96fb\u529b\u5316\u3068\u5c06\u6765\u7684\u306a\u5bb9\u91cf\u5897\u52a0\u3092\u898b\u8d8a\u3057\u3066\u30012.5\u30a4\u30f3\u30c1\u306e2TB\u30e2\u30c7\u30eb\u3067\u3059\u3002<\/p>\n[amazonjs asin=\"B00E3S5TRO\" locale=\"JP\"]\n<p>\u901a\u5e38\u306eNotePC\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b9.5mm\u306e\u7269\u3067\u306f\u306a\u304f\u3001\u539a\u305515mm\u306e\u7279\u6b8a\u306a\u7269\u3067\u3059\u3002\u3067\u3082\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7PC\u306b\u5165\u308c\u3066\u4f7f\u3046\u306e\u3067\u3001\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\u4e00\u6642\u7684\u306b3TB\u306e\u5bb9\u91cf\u304c\u5fc5\u8981\u306b\u306a\u308b\u4e8b\u3001\u307e\u305f\u3001\u305d\u306e\u5f8c\u3067mirror\u69cb\u6210\u306b\u7d44\u307f\u8fbc\u3080\u4e8b\u3092\u8003\u3048\u3066\u30012\u53f0\u8cfc\u5165\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3067\u3059\u3002AFT\u30c7\u30a3\u30b9\u30af(4k\u30bb\u30af\u30bf\u30fc)\u306a\u306e\u3067\u3001\u6b21\u306e\u69d8\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n# gpart create -s gpt ada0\r\n# gpart add -a 4k -t freebsd-zfs -l disk4 ada0\r\n# gnop create -S 4096 ada0\r\n# gpart create -s gpt ada1\r\n# gpart add -a 4k -t freebsd-zfs -l disk5 ada1\r\n# gnop create -S 4096 ada1\r\n<\/pre>\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2013\/12\/set-up-hdds-as-zfs-pool.html\" rel=\"_RAclick\">\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u7528\u30c7\u30a3\u30b9\u30af\u3092ZFS\u30d7\u30fc\u30eb\u3068\u3057\u3066\u8a2d\u5b9a: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2013\u5e7412\u670822\u65e5)<\/em><\/li>\n<\/ul\n\nZFS\u3067\u30014TB\u306e\u30b9\u30c8\u30e9\u30a4\u30d7\u3092\u7d44\u3080\u306e\u306f\u7c21\u5358\u3067\u3059\u3002\n\n\n\n<pre>\r\n# zpool create zpool gpt\/disk4 gpt\/disk5\r\n<\/pre>\n<p>\u3053\u306e\u3042\u3068\u3001\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u8ee2\u9001\u3057\u3088\u3046\u3068\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306e\u8aad\u307f\u51fa\u3057\u3067\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u3066\u3057\u307e\u3063\u3066\u3001\u5148\u3078\u9032\u3081\u307e\u305b\u3093\u3002<\/p>\n<pre>\r\n# zfs send -vRp upool@20140306 | zfs receive -uvdF zpool\r\n<\/pre>\n<p>\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u6b21\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/flying-foozy\/20110409\/1302362569\" target=\"_blank\">HOME \u7528\u9014\u3092\u5225\u306e ZFS pool \u306b\u79fb\u884c\u3059\u308b &#8211; \u5f77\u5fa8\u3048\u308b\u30d5\u30b8\u30ef\u30e9<\/a><\/li>\n<\/ul>\n<p>\u767a\u60f3\u3092\u8ee2\u63db\u3057\u3066\u3001\u65e2\u5b58\u30d7\u30fc\u30eb(upool)\u306b\u3001\u65b0\u3057\u3044\u30c7\u30a3\u30b9\u30af(gpt\/disk4, gpt\/disk5)\u3092mirror\u3068\u3057\u3066\u8ffd\u52a0\u3057\u3088\u3046\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre>\r\n# zpool destory zpool\r\n<\/pre>\n<p>\u3068\u3057\u3066\u3001\u5148\u307b\u3069\u4f5c\u3063\u305fzpool\u3092\u7834\u58ca\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u304d\u305d\u3093\u30d7\u30fc\u30eb\u3078\u306e\u8ffd\u52a0\u3067\u3059\u3002upool\u306f\u3001\u4e8c\u3064\u306e\u30d7\u30fc\u30eb\u306e\u96c6\u5408\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\n# zpool attach upool gpt\/disk0 gpt\/disk4\r\n# zpool attach upool gpt\/disk1 gpt\/disk5\r\n<\/pre>\n<p>\u3055\u3059\u304cZFS\u3001\u7c21\u5358\u306a\u64cd\u4f5c\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u69d8\u306a\u69cb\u6210\u306b\u306a\u308a\u307e\u3059\u3002\u8d64\u3044\u90e8\u5206\u304c\u8ffd\u52a0\u3057\u305f\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/2014\/03\/20140307zfs-mirror3.png\" alt=\"ZFS mirror\" width=\"480\" height=\"186\" class=\"alignnone size-full wp-image-11055\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2014\/03\/20140307zfs-mirror3.png 480w, https:\/\/oichinote.com\/plus\/files\/2014\/03\/20140307zfs-mirror3-150x58.png 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u6628\u65e5\u304b\u3089\u59cb\u3081\u305f\u306e\u3067\u3059\u304c\u3001\u521d\u56de\u306f\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u4eca\u3001\u3084\u308a\u76f4\u3057\u3066\u3044\u308b\u6240\u3067\u3059\u3002<\/p>\n<p>mirror\u3068\u3057\u3066\u30b3\u30d4\u30fc\u3059\u308b\u6642\u306b\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3084\u306f\u308a\u3001\u30c0\u30e1\u306a\u306e\u304b? zfs send\/recv\u3067\u306f\u306a\u304f\u3001rsync\u3067\u30b3\u30d4\u30fc\u3057\u305f\u65b9\u304c\u826f\u3044\u306e\u3060\u308d\u3046\u304b?<\/p>\n<p>\u91cd\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u5148\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u3042\u308b\u304b\u3089\u5927\u4e08\u592b\u306a\u306e\u3067\u3059\u304c\u3002<\/p>\n<p>\u3069\u3046\u3059\u308b\u306e\u304c\u826f\u3044\u306e\u3060\u308d\u3046\u304b&#8230;\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\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\u304d\u3066\u3044\u307e\u3059\u3002 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 (2014\u5e742\u670821\u65e5) \u30a8\u30e9\u30fc\u306f\u6c7a\u5b9a\u7684\u3067\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":11055,"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_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300eZFS\u3067\u306e\u30c7\u30a3\u30b9\u30af\u30a8\u30e9\u30fc\u3001\u56de\u5fa9\u3067\u304d\u307e\u305b\u3093\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":false,"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-11051","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-freebsd","category-nas"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/oichinote.com\/plus\/files\/2014\/03\/20140307zfs-mirror3.png","jetpack-related-posts":[{"id":10369,"url":"https:\/\/oichinote.com\/plus\/2013\/12\/set-up-hdds-as-zfs-pool.html","url_meta":{"origin":11051,"position":0},"title":"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u7528\u30c7\u30a3\u30b9\u30af\u3092ZFS\u30d7\u30fc\u30eb\u3068\u3057\u3066\u8a2d\u5b9a","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e7412\u670822\u65e5","format":false,"excerpt":"HDD\u30922\u53f0\u5897\u8a2d\u3057\u307e\u3057\u305f\u304c\u3001\u7269\u7406\u7684\u306b\u63a5\u7d9a\u3057\u305f\u3060\u3051\u3067\u3001FreeBSD\u304b\u3089\u306f\u4f7f\u3048\u308b\u69d8\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"ZFS\u69cb\u6210","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/12\/20131220freebsd-zfs.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":20201,"url":"https:\/\/oichinote.com\/plus\/2017\/06\/moving-zpool-data-to-another-drive.html","url_meta":{"origin":11051,"position":1},"title":"\ufeffZFS\u306e\u30c7\u30fc\u30bf\u30d7\u30fc\u30eb\u306e\u5f15\u8d8a\u3057","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2017\u5e746\u670821\u65e5","format":false,"excerpt":"\u30b7\u30b9\u30c6\u30e0\u30d7\u30fc\u30eb\u306e\u79fb\u884c\u306f\u7d50\u69cb\u9762\u5012\u3067\u3057\u305f\u3002 AFT\u306a\u306e\u306b\u30d6\u30ed\u30c3\u30af\u30b5\u30a4\u30ba\u304c512B \u30c7\u30fc\u30bf\u30d7\u30fc\u30eb\u3082\u79fb\u884c\u3057\u307e\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"GW3.5AA-SUP3","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2017\/06\/20170621gw3.5aa-sup3.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":10146,"url":"https:\/\/oichinote.com\/plus\/2013\/11\/add-mirroring-disks-to-existed-zfs-pool.html","url_meta":{"origin":11051,"position":2},"title":"ZFS\u3067\u65e2\u5b58\u30d7\u30fc\u30eb\u306b\u30df\u30e9\u30fc\u30c7\u30a3\u30b9\u30af\u3092\u8ffd\u52a0\u3059\u308b","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e7411\u670821\u65e5","format":false,"excerpt":"FreeBSD 9.1\u3092\u30b5\u30fc\u30d0\u306b\u3057\u3066\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002 FreeBSD\u306b\u30b5\u30fc\u30d0\u7528\u30bd\u30d5\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"ZFS\u69cb\u6210","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/11\/20131121freebsd-zfs.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":7985,"url":"https:\/\/oichinote.com\/plus\/2013\/04\/install-freebsd-with-full-zfs.html","url_meta":{"origin":11051,"position":3},"title":"FreeBSD9\u3067Full ZFS\u30b7\u30b9\u30c6\u30e0\u4f5c\u6210\u306e\u5b9f\u9a13[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e744\u670829\u65e5","format":false,"excerpt":"FreeBSD\u52c9\u5f37\u30b7\u30ea\u30fc\u30ba\u306e\u4e00\u74b0\u3067\u3059\u3002 FreeBSD\u306e\u52c9\u5f37\u4e2d: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593 (2012\u5e7411\u67083\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"\u30b7\u30b9\u30c6\u30e0\u7528\u30d7\u30fc\u30eb","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/04\/20130428zfs_rpool.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":20256,"url":"https:\/\/oichinote.com\/plus\/2017\/06\/mooving-the-system-pool-to-another-disk.html","url_meta":{"origin":11051,"position":4},"title":"FreeBSD\u306eRoot on ZFS\u30b7\u30b9\u30c6\u30e0\u306e\u5225\u30c7\u30a3\u30b9\u30af\u3078\u306e\u79fb\u884c","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2017\u5e746\u670817\u65e5","format":false,"excerpt":"FreeBSD10\u306eRoot\u3067\u4f7f\u3063\u3066\u3044\u308b\u30d7\u30fc\u30eb(rpool)\u3092\u5225\u306e\u30c7\u30a3\u30b9\u30af\u306b\u30b3\u30d4\u30fc\u3057\u3001\u305d\u306e\u30c7\u30a3\u30b9\u30af\u304b\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"Install\u958b\u59cb","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-1-install.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9613,"url":"https:\/\/oichinote.com\/plus\/2013\/09\/attach-disk-for-mirroring-on-zfs.html","url_meta":{"origin":11051,"position":5},"title":"ZFS\u3067\u65e2\u5b58\u30c7\u30a3\u30b9\u30af\u3092\u30df\u30e9\u30fc\u5316\u3059\u308b","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e749\u670826\u65e5","format":false,"excerpt":"FreeBSD 9.1\u642d\u8f09\u306ePC\u3092\u3001\u30b5\u30fc\u30d0\u6a5f\u3068\u3057\u3066\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002 FreeBSD\u306b\u30b5\u30fc\u30d0\u7528\u30bd\u30d5\u30c8\u3092\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"ZFS\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/09\/20130926freebsd-zfs.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/11051","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=11051"}],"version-history":[{"count":4,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/11051\/revisions"}],"predecessor-version":[{"id":11056,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/11051\/revisions\/11056"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media\/11055"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=11051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=11051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=11051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}