前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >修复zpool data errors错误

修复zpool data errors错误

作者头像
党志强
发布2020-02-11 11:07:11
1.6K0
发布2020-02-11 11:07:11
举报
文章被收录于专栏:敏而好学敏而好学敏而好学

故障信息:

root@host1:/tank/new/ddd# zpool status -v tank

 pool: tank

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://illumos.org/msg/ZFS-8000-8A

 scan: scrub repaired 0 in 0h0m with 1161 errors on Thu Apr 17 10:02:52 2014

config:

       NAME                       STATE     READ WRITE CKSUM

       tank                       ONLINE       0     0 6.83K

         mirror-0                 ONLINE       0     0 13.7K

           c3t5000C5000B74F2DBd0  ONLINE       0     0 13.7K

           c3t5000C50043FFA61Fd0  ONLINE       0     0 13.7K

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

       /tank/new/ddd/Oracle Solaris 11 11_11 .cn. E26926_01.zip

root@host1:/tank/new/ddd# zpool status  tank

 pool: tank

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://illumos.org/msg/ZFS-8000-8A

 scan: scrub repaired 0 in 0h0m with 1161 errors on Thu Apr 17 10:02:52 2014

config:

       NAME                       STATE     READ WRITE CKSUM

       tank                       ONLINE       0     0 6.83K

         mirror-0                 ONLINE       0     0 13.7K

           c3t5000C5000B74F2DBd0  ONLINE       0     0 13.7K

           c3t5000C50043FFA61Fd0  ONLINE       0     0 13.7K

errors: 1161 data errors, use '-v' for a list

修复方法:

root@host1:/tank/new/ddd# rm /tank/new/ddd/Oracle\ Solaris\ 11\ 11_11\ .cn.\ E26926_01.zip

root@host1:/tank/new/ddd# zpool status -v tank

 pool: tank

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://illumos.org/msg/ZFS-8000-8A

 scan: scrub repaired 0 in 0h0m with 1161 errors on Thu Apr 17 10:02:52 2014

config:

       NAME                       STATE     READ WRITE CKSUM

       tank                       ONLINE       0     0 6.83K

         mirror-0                 ONLINE       0     0 13.7K

           c3t5000C5000B74F2DBd0  ONLINE       0     0 13.7K

           c3t5000C50043FFA61Fd0  ONLINE       0     0 13.7K

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

       tank/new:<0x51b9>

检测:

root@host1:/tank/new/ddd# zpool status  tank

 pool: tank

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://illumos.org/msg/ZFS-8000-8A

 scan: scrub repaired 0 in 0h0m with 1161 errors on Thu Apr 17 10:02:52 2014

config:

       NAME                       STATE     READ WRITE CKSUM

       tank                       ONLINE       0     0 6.83K

         mirror-0                 ONLINE       0     0 13.7K

           c3t5000C5000B74F2DBd0  ONLINE       0     0 13.7K

           c3t5000C50043FFA61Fd0  ONLINE       0     0 13.7K

errors: 1161 data errors, use '-v' for a list

结果:

 pool: tank

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://illumos.org/msg/ZFS-8000-8A

 scan: scrub in progress since Thu Apr 17 10:05:46 2014

   2.20G scanned out of 2.44G at 70.5M/s, 0h0m to go

   0 repaired, 90.38% done

config:

       NAME                       STATE     READ WRITE CKSUM

       tank                       ONLINE       0     0 6.83K

         mirror-0                 ONLINE       0     0 13.7K

           c3t5000C5000B74F2DBd0  ONLINE       0     0 13.7K

           c3t5000C50043FFA61Fd0  ONLINE       0     0 13.7K

errors: 1161 data errors, use '-v' for a list

 pool: tank

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://illumos.org/msg/ZFS-8000-9P

 scan: scrub repaired 0 in 0h0m with 0 errors on Thu Apr 17 10:06:22 2014

config:

       NAME                       STATE     READ WRITE CKSUM

       tank                       ONLINE       0     0 6.83K

         mirror-0                 ONLINE       0     0 13.7K

           c3t5000C5000B74F2DBd0  ONLINE       0     0 13.7K

           c3t5000C50043FFA61Fd0  ONLINE       0     0 13.7K

errors: No known data errors

总结:

   一个文件可以对应很多个数据块错误,当发现数据有错误时,通过镜像可以自动修复错误,如果没有其他备份机制,数据块的损坏将是永久的,数据无法恢复,只能通过清除损坏的文件来清理数据块错误。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2014-04-17 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档