zpool scrub
普通のFileSystemだと fsck に相当するのが ZFS だと scrub の機能
指定したプールの全データをなめてチェックサムを再計算して確認するので(とオイラは理解している)時間はかかるけど、たまに実行しておかねばね とたーまーにやってます。rc か cron に放り込むと言う手もあるんだろけど結果も確認したいので今は手動。
# zpool scrub プール名
こいつを実行してDISK容量にも寄るけれど しばらく放置して
# zpool status プール名 -x
とすると終わっていれば結果を返してくれます
scrub: scrub in progress, 91.91% done, 0h1m to go
先日 サーバで実行したら
# zpool status -x
pool: raid5pool
state: ONLINE
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://www.sun.com/msg/ZFS-8000-9P
scrub: scrub completed after 3h47m with 0 errors on Mon Jul 6 22:26:40 2009
config:
NAME STATE READ WRITE CKSUM
raid5pool ONLINE 0 0 0
raidz1 ONLINE 0 0 0
c0t2d0 ONLINE 0 0 4 196K repaired
c0t4d0 ONLINE 0 0 7 208K repaired
c0t5d0 ONLINE 0 0 6 84K repaired
errors: No known data errors
修正箇所が発生してましたが、問題は無いようですね
# zpool clear プール名
と実行してカウンタを初期化しておきます

コメント