まだまだ検証段階なので、夜起動して朝シャットダウンしてるサーバなのですが、1ヶ月ぶりぐらいにスクラブをかけてみました。
root@zfsmeister:/mtank/share# zpool scrub mtank
スクラブを停止するときは、上記コマンドに「-s」オプションをつけるだけです。
root@zfsmeister:~# zpool status -v mtank
pool: mtank
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://www.sun.com/msg/ZFS-8000-8A
scrub: scrub in progress for 0h28m, 96.15% done, 0h1m to go
config:
NAME STATE READ WRITE CKSUM
mtank DEGRADED 0 0 36
raidz1 DEGRADED 0 0 72
c3t1d0 DEGRADED 0 0 0 too many errors
c3t2d0 DEGRADED 0 0 0 too many errors
c3t3d0 DEGRADED 0 0 0 too many errors
c3t4d0 DEGRADED 0 0 0 too many errors
errors: Permanent errors have been detected in the following files:
mtank/share:<0×30>
ちょwwwwwwwwwwwwwwwwwwwww
ありえんぐらいチェックサムエラー出てるんですけど・・・
とりあえずスクラブが終わったらクリアーしてみました。
root@zfsmeister:~# zpool clear mtank
root@zfsmeister:/mtank/share# zpool status -v mtank
pool: mtank
state: ONLINE
status: The pool is formatted using an older on-disk format. The pool can
still be used, but some features are unavailable.
action: Upgrade the pool using ‘zpool upgrade’. Once this is done, the
pool will no longer be accessible on older software versions.
scrub: scrub stopped after 0h3m with 0 errors on Mon Oct 19 21:45:21 2009
config:
NAME STATE READ WRITE CKSUM
mtank ONLINE 0 0 0
raidz1 ONLINE 0 0 0
c3t1d0 ONLINE 0 0 0
c3t2d0 ONLINE 0 0 0
c3t3d0 ONLINE 0 0 0
c3t4d0 ONLINE 0 0 0
errors: No known data errors
とりあえず、ファイルシステムには影響はなかったっぽいです。
しかし、ちょっと怖いのでバックアップ取っとこう。