ZFS chsum mismatch
久しぶりにportsを更新しようとしてみたが、どうにもこうにも失敗する。/var/log/messageを見てみたら、
# tail /var/log/messages Dec 3 14:14:56 rose root: ZFS: checksum mismatch, zpool=zroot path=/dev/gptid/4b1c2c6d-f1 ff-11e0-8357-00e04d212996 offset=55508849664 size=2560 Dec 3 14:14:56 rose root: ZFS: zpool I/O failure, zpool=zroot error=86
なにー、ということで、
# zpool status pool: zroot state: ONLINE 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: none requested config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 24 raidz1 ONLINE 0 0 58 gptid/4a181563-f1ff-11e0-8357-00e04d212996 ONLINE 0 0 2 gptid/4b1c2c6d-f1ff-11e0-8357-00e04d212996 ONLINE 0 0 1 errors: 6 data errors, use '-v' for a list
うひゃー。
# zpool status -v pool: zroot state: ONLINE 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: none requested config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 24 raidz1 ONLINE 0 0 58 gptid/4a181563-f1ff-11e0-8357-00e04d212996 ONLINE 0 0 2 gptid/4b1c2c6d-f1ff-11e0-8357-00e04d212996 ONLINE 0 0 1 errors: Permanent errors have been detected in the following files: /space/ncvs/ports/net/spread4/scripts/Attic /space/ncvs/ports/www/junkbuster/files /space/ncvs/ports/net/licq-console/files /space/ncvs/ports/audio/p5-CDDB-File /space/ncvs/ports/audio/sphinx/files/patch-src-libsphinx2_blk_cdcn_norm.c,v /home/work/foltia.bak/foltia-r124/install/perl/db/.svn/tmp/prop-base
正しい対処は良く分からないんだけど、エラーのファイルを削除してscrubしてみた。
# zpool scrub zroot # zpool status -v pool: zroot state: ONLINE 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 0h4m, 0.89% done, 7h31m to go config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 24 raidz1 ONLINE 0 0 58 gptid/4a181563-f1ff-11e0-8357-00e04d212996 ONLINE 0 0 2 gptid/4b1c2c6d-f1ff-11e0-8357-00e04d212996 ONLINE 0 0 1 errors: Permanent errors have been detected in the following files: zroot/space:<0x33d10> zroot/space:<0x24558> zroot/space:<0x354a8> zroot/space:<0x467b0> zroot/space:<0x449d8> zroot/home:<0x9018>
結果は7時間31分後に。。。