LoginSignup
1
1

More than 5 years have passed since last update.

zfs運用メモ

Last updated at Posted at 2016-11-15

ディスクが壊れたとき

  • 物理的にディスクを入れ替える
  • zfs replaceを実行する

エラーがないとき

  • そのまま完了

エラーが有ったとき

  • データが一部破損していた場合resilverが止まるので対処する必要がある
  • なんのファイルが壊れたのわかるのでそれがファイルであれば削除する
  • スナップショットに残っているのであれば該当スナップショットを削除する
  • 元データが残っていれば上書きする

その他

raidz2にしとかないとresilver中に破損が発覚するとそのデータを捨て無くてはならない

  pool: volume1
 state: DEGRADED
status: One or more devices has experienced an error resulting in data
    corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
    entire pool from backup.
   see: http://illumos.org/msg/ZFS-8000-8A
  scan: scrub in progress since Sat Nov 12 20:12:19 2016
        155G scanned out of 14.3T at 307M/s, 13h24m to go
        0 repaired, 1.06% done
config:

    NAME                       STATE     READ WRITE CKSUM
    volume1                    DEGRADED     0     0    57
      raidz1-0                 DEGRADED     0     0   114
        replacing-0            DEGRADED     0     0     0
          9583792808441608587  UNAVAIL      0     0     0  was /dev/ada0.nop/old
          ada0.nop             ONLINE       0     0     0
        ada1.nop               ONLINE       0     0     0
        ada2.nop               ONLINE       0     0     0
        ada3.nop               ONLINE       0     0     0
    logs
      ada8                     ONLINE       0     0     0

errors: Permanent errors have been detected in the following files:

        volume1/work:<0x1225>
        volume1/work@auto-20150121-040000:/path/filename

4Tをresilverすると16hかかる。エラーがあると二日とか三日とかかかる

resilvered 3.57T in 16h57m with 0 errors on Tue Nov 15 01:09:32 2016
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1