免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2945 | 回复: 3
打印 上一主题 下一主题

SVM RAID1又遇last erred求大神支招 [复制链接]

论坛徽章:
4
申猴
日期:2013-08-28 13:29:09天秤座
日期:2013-12-31 16:54:51技术图书徽章
日期:2014-03-31 10:00:412015亚冠之北京国安
日期:2015-10-08 16:19:12
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-06-14 00:19 |只看该作者 |倒序浏览

raid卷信息,没换盘之前的信息。

# metastat
d100: Trans
    State: Okay
    Size: 16504857 blocks
    Master Device: d73
    Logging Device: d94

d73: Mirror
    Submirror 0: d33
      State: Okay
    Submirror 1: d43
      State: Needs maintenance
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 16504857 blocks

d33: Submirror of d73
    State: Okay
    Size: 16504857 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t2d0s3                   0     No    Okay


d43: Submirror of d73
    State: Needs maintenance
    Invoke: metareplace d73 c2t3d0s3 <new device>
    Size: 16504857 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t3d0s3                   0     No    Maintenance


d101: Trans
    State: Okay
    Size: 10484181 blocks
    Master Device: d75
    Logging Device: d96

d75: Mirror
    Submirror 0: d35
      State: Okay
    Submirror 1: d45
      State: Needs maintenance
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 10484181 blocks

d35: Submirror of d75
    State: Okay
    Size: 10484181 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t2d0s5                5778     Yes   Okay


d45: Submirror of d75
    State: Needs maintenance
    Invoke: metareplace d75 c2t3d0s5 <new device>
    Size: 10484181 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t3d0s5                5778     No    Maintenance


d94: Logging device for d100
    State: Okay
    Size: 123969 blocks

d94: Mirror
    Submirror 0: d34
      State: Okay
    Submirror 1: d44
      State: Needs maintenance
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 124227 blocks

d34: Submirror of d94
    State: Okay
    Size: 124227 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t2d0s4                   0     No    Okay


d44: Submirror of d94
    State: Needs maintenance
    Invoke: metareplace d94 c2t3d0s4 <new device>
    Size: 124227 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t3d0s4                   0     No    Maintenance



d96: Logging device for d101
    State: Okay
    Size: 2097152 blocks

d96: Mirror
    Submirror 0: d36
      State: Needs maintenance
    Submirror 1: d46
      State: Needs maintenance
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 37013868 blocks

d36: Submirror of d96
    State: Needs maintenance
    Invoke: after replacing "Maintenance" components:
                metareplace d96 c2t2d0s6 <new device>
    Size: 37013868 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t2d0s6                   0     No    Last Erred


d46: Submirror of d96
    State: Needs maintenance
    Invoke: metareplace d96 c2t3d0s6 <new device>
    Size: 37013868 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t3d0s6                   0     No    Maintenance


d70: Mirror
    Submirror 0: d30
      State: Okay
    Submirror 1: d40
      State: Needs maintenance
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 3735477 blocks

d30: Submirror of d70
    State: Okay
    Size: 3735477 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t2d0s0                   0     No    Okay


d40: Submirror of d70
    State: Needs maintenance
    Invoke: metareplace d70 c2t3d0s0 <new device>
    Size: 3735477 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t3d0s0                   0     No    Maintenance


d71: Mirror
    Submirror 0: d31
      State: Okay
    Submirror 1: d41
      State: Needs maintenance
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 3253014 blocks

d31: Submirror of d71
    State: Okay
    Size: 3253014 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t2d0s1                   0     No    Okay


d41: Submirror of d71
    State: Needs maintenance
    Invoke: metareplace d71 c2t3d0s1 <new device>
    Size: 3253014 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t3d0s1                   0     No    Maintenance


c2t2d0s6的状态是Last Erred,换完硬盘以后的raid卷状态。

# metastat         
d100: Trans
    State: Okay         
    Size: 16504857 blocks
    Master Device: d73
    Logging Device: d94

d73: Mirror
    Submirror 0: d33
      State: Needs maintenance
    Submirror 1: d43
      State: Needs maintenance
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 16504857 blocks

d33: Submirror of d73
    State: Needs maintenance
    Invoke: after replacing "Maintenance" components:
                metareplace d73 c2t2d0s3 <new device>
    Size: 16504857 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t2d0s3                   0     No    Last Erred   


d43: Submirror of d73
    State: Needs maintenance
    Invoke: metasync d73
    Size: 16504857 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t3d0s3                   0     No    Resyncing   


d101: Trans
    State: Okay         
    Size: 10484181 blocks
    Master Device: d75
    Logging Device: d96

d75: Mirror
    Submirror 0: d35
      State: Okay         
    Submirror 1: d45
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 10484181 blocks

d35: Submirror of d75
    State: Okay         
    Size: 10484181 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t2d0s5                5778     Yes   Okay         


d45: Submirror of d75
    State: Okay         
    Size: 10484181 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t3d0s5                5778     Yes   Okay         


d94: Logging device for d100
    State: Okay         
    Size: 123969 blocks

d94: Mirror
    Submirror 0: d34
      State: Okay         
    Submirror 1: d44
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 124227 blocks

d34: Submirror of d94
    State: Okay         
    Size: 124227 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t2d0s4                   0     No    Okay         


d44: Submirror of d94
    State: Okay         
    Size: 124227 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t3d0s4                   0     No    Okay         



d96: Logging device for d101
    State: Okay         
    Size: 2097152 blocks

d96: Mirror
    Submirror 0: d36
      State: Needs maintenance
    Submirror 1: d46
      State: Needs maintenance
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 37013868 blocks

d36: Submirror of d96
    State: Needs maintenance
    Invoke: after replacing "Maintenance" components:
                metareplace d96 c2t2d0s6 <new device>
    Size: 37013868 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t2d0s6                   0     No    Last Erred   


d46: Submirror of d96
    State: Needs maintenance
    Invoke: metasync d96
    Size: 37013868 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t3d0s6                   0     No    Resyncing   


d70: Mirror
    Submirror 0: d30
      State: Needs maintenance
    Submirror 1: d40
      State: Needs maintenance
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 3735477 blocks

d30: Submirror of d70
    State: Needs maintenance
    Invoke: after replacing "Maintenance" components:
                metareplace d70 c2t2d0s0 <new device>
    Size: 3735477 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t2d0s0                   0     No    Last Erred   


d40: Submirror of d70
    State: Needs maintenance
    Invoke: metasync d70
    Size: 3735477 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t3d0s0                   0     No    Resyncing   


d71: Mirror
    Submirror 0: d31
      State: Okay         
    Submirror 1: d41
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 3253014 blocks

d31: Submirror of d71
    State: Okay         
    Size: 3253014 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t2d0s1                   0     No    Okay         


d41: Submirror of d71
    State: Okay         
    Size: 3253014 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c2t3d0s1                   0     No    Okay         


换完硬盘以后在同步的过程中c2t2d0s3   c2t2d0s0报错,状态也变成了last erred。
现在怎么修复?这个last erred的盘还能修复吗?

论坛徽章:
3
2015年辞旧岁徽章
日期:2015-03-03 16:54:15操作系统版块每日发帖之星
日期:2016-01-21 06:20:00操作系统版块每日发帖之星
日期:2016-08-11 06:20:00
2 [报告]
发表于 2013-06-14 15:19 |只看该作者
先做备份,再做其他的操作

论坛徽章:
0
3 [报告]
发表于 2013-06-14 16:09 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
4
申猴
日期:2013-08-28 13:29:09天秤座
日期:2013-12-31 16:54:51技术图书徽章
日期:2014-03-31 10:00:412015亚冠之北京国安
日期:2015-10-08 16:19:12
4 [报告]
发表于 2013-06-15 09:08 |只看该作者
本帖最后由 kwtip 于 2013-06-15 09:10 编辑

问题解决了步骤如下
先运行format->analyze->read有last erred的硬盘时间很长73G的要10小时左右,然后在metasync d70,等同步完以后换上去的新盘状态为OK后,在运行metareplace -e d70 c2t2d0s0修复有last erred卷。

lanyang_tj的办法很好用。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP