{"id":773,"date":"2022-08-17T21:24:28","date_gmt":"2022-08-17T12:24:28","guid":{"rendered":"https:\/\/tatsushi.ml\/blog\/?p=773"},"modified":"2022-08-17T21:34:31","modified_gmt":"2022-08-17T12:34:31","slug":"zfs-raidz1","status":"publish","type":"post","link":"https:\/\/tatsushi.info\/blog\/zfs-raidz1\/","title":{"rendered":"ZFS RaidZ1 \u30c7\u30a3\u30b9\u30af\u4ea4\u63db"},"content":{"rendered":"<p>FreeBSD\u3092\u5165\u308c\u3066\u4f7f\u3063\u3066\u308b\u30b5\u30fc\u30d0\u306e\u30c7\u30a3\u30b9\u30af\u304c1\u672c\u58ca\u308c\u305f\u3002<\/p>\n<pre><code>$ zpool status\n  pool: tank\n state: DEGRADED\nstatus: One or more devices has experienced an error resulting in data\n    corruption.  Applications may be affected.\naction: Restore the file in question if possible.  Otherwise restore the\n    entire pool from backup.\n   see: https:\/\/openzfs.github.io\/openzfs-docs\/msg\/ZFS-8000-8A\n  scan: resilvered 7.22G in 00:13:13 with 7 errors on Wed Aug 10 01:09:33 2022\nconfig:\n\n    NAME                             STATE     READ WRITE CKSUM\n    tank                             DEGRADED     0     0     0\n      raidz1-0                       DEGRADED     0     0     0\n        diskid\/DISK-WD-WCC4E3CU93CP  ONLINE       0     0     0\n        diskid\/DISK-WD-WCC7K2AV2YX9  ONLINE       0     0     0\n        diskid\/DISK-WD-WCC4E3CU9SVU  REMOVED      0     0     0\n        diskid\/DISK-WD-WCC4E6XN90PN  ONLINE       0     0     0\nerrors: List of errors unavailable: permission denied\n\nerrors: 7 data errors, use '-v' for a list\n\n<\/code><\/pre>\n<p>RAID\u904b\u7528\u306e\u5e38\u8b58\u3068\u3057\u3066\u65b0\u54c1\u306e\u30b9\u30da\u30a2\u30c7\u30a3\u30b9\u30af\u306f\u4e00\u672c\u7528\u610f\u3057\u3066\u3042\u3063\u305f\u306e\u3067\u3001\u30b7\u30ea\u30a2\u30eb(WCC4E3CU9SVU)\u3092\u78ba\u8a8d\u3057\u3066\u65b0\u54c1\u3068\u4ea4\u63db\u3001\u30ea\u30d6\u30fc\u30c8\u3001\u30ea\u30d7\u30ec\u30fc\u30b9\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/tatsushi.ml\/blog\/wp-content\/uploads\/2022\/08\/IMG_4986.jpg\" alt=\"test\" \/><\/p>\n<pre><code>$ sudo zpool replace tank \/dev\/diskid\/DISK-WD-WCC4E3CU9SVU \/dev\/diskid\/DISK-WD-WCC7K5VFCVR3 \n$ zpool status\n  pool: tank\n state: DEGRADED\nstatus: One or more devices is currently being resilvered.  The pool will\n    continue to function, possibly in a degraded state.\naction: Wait for the resilver to complete.\n  scan: resilver in progress since Wed Aug 15 17:35:02 2022\n    1.11T scanned at 6.13G\/s, 39.0G issued at 215M\/s, 1.53T total\n    9.64G resilvered, 2.50% done, 02:01:05 to go\nconfig:\n\n    NAME                               STATE     READ WRITE CKSUM\n    tank                               DEGRADED     0     0     0\n      raidz1-0                         DEGRADED     0     0     0\n          diskid\/DISK-WD-WCC4E3CU93CP    ONLINE       0     0     0\n          diskid\/DISK-WD-WCC7K2AV2YX9    ONLINE       0     0     0\n          replacing-0                    DEGRADED     0     0     0\n            diskid\/DISK-WD-WCC4E3CU9SVU  OFFLINE      0     0     0\n            diskid\/DISK-WD-WCC7K5VFCVR3  ONLINE       0     0     0  (resilvering)\n          diskid\/DISK-WD-WCC4E6XN90PN    ONLINE       0     0     0\nerrors: List of errors unavailable: permission denied\n\nerrors: 5 data errors, use '-v' for a list\n<\/code><\/pre>\n<p>2\u6642\u9593\u304f\u3089\u3044\u3067\u518d\u69cb\u7bc9\u5b8c\u4e86\u3002\u7d42\u308f\u3063\u305f\u9803\u306b\u78ba\u8a8d\u3059\u308b\u3068\u3001<\/p>\n<pre><code>$ sudo zpool status -v\n  pool: tank\n state: ONLINE\nstatus: One or more devices has experienced an error resulting in data\n    corruption.  Applications may be affected.\naction: Restore the file in question if possible.  Otherwise restore the\n    entire pool from backup.\n   see: https:\/\/openzfs.github.io\/openzfs-docs\/msg\/ZFS-8000-8A\n  scan: resilvered 390G in 01:56:29 with 33 errors on Tue Aug 16 15:36:31 2022\nconfig:\n\n    NAME                             STATE     READ WRITE CKSUM\n    tank                             ONLINE       0     0     0\n      raidz1-0                       ONLINE       0     0     0\n        diskid\/DISK-WD-WCC4E3CU93CP  ONLINE     530     0     2\n        diskid\/DISK-WD-WCC7K2AV2YX9  ONLINE       0     0   477\n        diskid\/DISK-WD-WCC7K5VFCVR3  ONLINE       0     0     0\n        diskid\/DISK-WD-WCC4E6XN90PN  ONLINE       0     0   477\n\nerrors: Permanent errors have been detected in the following files:\n\n        \/tank\/timemachine\/MacBookAir.sparsebundle\/bands\/94b\n        \/tank\/timemachine\/MacBookAir.sparsebundle\/bands\/868\n        \/usr\/home\/tatsushi\/photo\/20150707\/DSC_4759.NEF\n        \/usr\/home\/tatsushi\/photo\/20150707\/DSC_4750.NEF\n        \/usr\/home\/tatsushi\/photo\/20150707\/DSC_4796.NEF\n        \/usr\/home\/tatsushi\/photo\/20150707\/DSC_4879.NEF\n<\/code><\/pre>\n<p>\u3082\u30461\u672c\u30ea\u30fc\u30c9\u30a8\u30e9\u30fc\u51fa\u3066\u308b\u30022\u672c\u540c\u6642\u306b\u58ca\u308c\u308b\u306e\u3092\u30ae\u30ea\u30ae\u30ea\u56de\u907f\u3067\u304d\u305f\u3053\u3068\u306b\u306a\u308b\u306e\u304b?\u3000\u3053\u308c\u3082\u5dee\u3057\u66ff\u3048\u3002<br \/>\n\u58ca\u308c\u305f6\u30d5\u30a1\u30a4\u30eb\u306e\u3046\u3061\u3001\u5199\u771f\u306eRAW\u30c7\u30fc\u30bf\u306fPrime Photo\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5fa9\u5e30\u3067\u304d\u305f\u3002\u6b8b\u308a2\u30d5\u30a1\u30a4\u30eb\u306fTime machine\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u4e00\u90e8\u306a\u306e\u3067\u3001Mac\u5074\u304b\u3089\u5168\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304b\u3051\u3066\u304a\u3051\u3070\u4e0a\u66f8\u304d\u3055\u308c\u308b\u3001\u306f\u305a\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u306e\u51fa\u3066\u308b\u30c7\u30a3\u30b9\u30af\u3092\u30aa\u30d5\u30e9\u30a4\u30f3\u306b\u3057\u3066\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3002<\/p>\n<pre><code>$ sudo zpool offline tank \/dev\/diskid\/DISK-WD-WCC4E3CU93CP\n$ sudo zpool status -v\n  pool: tank\n state: DEGRADED\nstatus: One or more devices has experienced an error resulting in data\n    corruption.  Applications may be affected.\naction: Restore the file in question if possible.  Otherwise restore the\n    entire pool from backup.\n   see: https:\/\/openzfs.github.io\/openzfs-docs\/msg\/ZFS-8000-8A\n  scan: scrub repaired 2.41M in 01:26:46 with 5 errors on Tue Aug 16 18:27:11 2022\nconfig:\n\n    NAME                             STATE     READ WRITE CKSUM\n    tank                             DEGRADED     0     0     0\n      raidz1-0                       DEGRADED     0     0     0\n        diskid\/DISK-WD-WCC4E3CU93CP  OFFLINE    627     0     4\n        diskid\/DISK-WD-WCC7K2AV2YX9  ONLINE       0     0   487\n        diskid\/DISK-WD-WCC7K5VFCVR3  ONLINE       0     0    10\n        diskid\/DISK-WD-WCC4E6XN90PN  ONLINE       0     0   487\n\nerrors: Permanent errors have been detected in the following files:\n\n        \/tank\/timemachine\/MacBookAir.sparsebundle\/bands\/94b\n        \/tank\/timemachine\/MacBookAir.sparsebundle\/bands\/868\n$ sync\n$ sudo shutdown -p now\nShutdown NOW!\nshutdown: [pid 7303]\n$                                                                                \n*** FINAL System shutdown message from tatsushi@YETI ***                     \n\nSystem going down IMMEDIATELY                                                  \n\nSystem shutdown time has arrived\n<\/code><\/pre>\n<p>\u30c7\u30a3\u30b9\u30af\u4ea4\u63db\u5f8c\u3001\u30ea\u30d7\u30ec\u30fc\u30b9\u3002<\/p>\n<pre><code>$ sudo zpool replace tank \/dev\/diskid\/DISK-WD-WCC4E3CU93CP \/dev\/diskid\/DISK-WD-WX42D91C35KC \n$ zpool status\n  pool: tank\n state: DEGRADED\nstatus: One or more devices is currently being resilvered.  The pool will\n    continue to function, possibly in a degraded state.\naction: Wait for the resilver to complete.\n  scan: resilver in progress since Wed Aug 17 17:35:02 2022\n    1.11T scanned at 6.13G\/s, 39.0G issued at 215M\/s, 1.53T total\n    9.64G resilvered, 2.50% done, 02:01:05 to go\nconfig:\n\n    NAME                               STATE     READ WRITE CKSUM\n    tank                               DEGRADED     0     0     0\n      raidz1-0                         DEGRADED     0     0     0\n        replacing-0                    DEGRADED     0     0     0\n          diskid\/DISK-WD-WCC4E3CU93CP  OFFLINE      0     0     0\n          diskid\/DISK-WD-WX42D91C35KC  ONLINE       0     0     0  (resilvering)\n        diskid\/DISK-WD-WCC7K2AV2YX9    ONLINE       0     0     0\n        diskid\/DISK-WD-WCC7K5VFCVR3    ONLINE       0     0     0\n        diskid\/DISK-WD-WCC4E6XN90PN    ONLINE       0     0     0\nerrors: List of errors unavailable: permission denied\n\nerrors: 5 data errors, use '-v' for a list\n$ sudo zpool status -v\nPassword:\n  pool: tank\n state: ONLINE\nstatus: One or more devices has experienced an error resulting in data\n    corruption.  Applications may be affected.\naction: Restore the file in question if possible.  Otherwise restore the\n    entire pool from backup.\n   see: https:\/\/openzfs.github.io\/openzfs-docs\/msg\/ZFS-8000-8A\n  scan: resilvered 392G in 01:13:19 with 5 errors on Wed Aug 17 18:48:21 2022\nconfig:\n\n    NAME                             STATE     READ WRITE CKSUM\n    tank                             ONLINE       0     0     0\n      raidz1-0                       ONLINE       0     0     0\n        diskid\/DISK-WD-WX42D91C35KC  ONLINE       0     0     0\n        diskid\/DISK-WD-WCC7K2AV2YX9  ONLINE       0     0     5\n        diskid\/DISK-WD-WCC7K5VFCVR3  ONLINE       0     0     5\n        diskid\/DISK-WD-WCC4E6XN90PN  ONLINE       0     0     5\n\nerrors: Permanent errors have been detected in the following files:\n\n        \/tank\/timemachine\/MacBookAir.sparsebundle\/bands\/94b\n        \/tank\/timemachine\/MacBookAir.sparsebundle\/bands\/868\n<\/code><\/pre>\n<p>\u3053\u308c\u3067\u5b89\u5fc3\u3001\u3068\u306f\u3044\u3048\u3001\u6b8b\u308a2\u672c\u3082\u307e\u3068\u3081\u3066\u8cb7\u3063\u305f\u3082\u306e\u306a\u306e\u3067\u4e0d\u5b89\u304c\u6b8b\u308b\u3002\u30b9\u30da\u30a2\u30c7\u30a3\u30b9\u30af\u8cb7\u3063\u3066\u3001\u76e3\u8996\u3092\u4ed5\u8fbc\u3093\u3067\u304a\u3044\u305f\u65b9\u304c\u826f\u3055\u305d\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD\u3092\u5165\u308c\u3066\u4f7f\u3063\u3066\u308b\u30b5\u30fc\u30d0\u306e\u30c7\u30a3\u30b9\u30af\u304c1\u672c\u58ca\u308c\u305f\u3002 $ zpool status pool: tank state: DEGRADED status: One or more devices has exper [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_lightning_design_setting":{"layout":"default"},"footnotes":""},"categories":[38],"tags":[40,39,41],"class_list":["post-773","post","type-post","status-publish","format-standard","hentry","category-nas","tag-freebsd","tag-nas","tag-zfs"],"veu_head_title_object":{"title":"","add_site_title":""},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/tatsushi.info\/blog\/wp-json\/wp\/v2\/posts\/773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tatsushi.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tatsushi.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tatsushi.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tatsushi.info\/blog\/wp-json\/wp\/v2\/comments?post=773"}],"version-history":[{"count":6,"href":"https:\/\/tatsushi.info\/blog\/wp-json\/wp\/v2\/posts\/773\/revisions"}],"predecessor-version":[{"id":780,"href":"https:\/\/tatsushi.info\/blog\/wp-json\/wp\/v2\/posts\/773\/revisions\/780"}],"wp:attachment":[{"href":"https:\/\/tatsushi.info\/blog\/wp-json\/wp\/v2\/media?parent=773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tatsushi.info\/blog\/wp-json\/wp\/v2\/categories?post=773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tatsushi.info\/blog\/wp-json\/wp\/v2\/tags?post=773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}