kwtip 发表于 2013-06-14 00:19

SVM RAID1又遇last erred求大神支招


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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase State      Hot Spare
      c2t2d0s5                5778   Yes   Okay         


d45: Submirror of d75
    State: Okay         
    Size: 10484181 blocks
    Stripe 0:
      Device            Start BlockDbase 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 BlockDbase State      Hot Spare
      c2t2d0s4                   0   No    Okay         


d44: Submirror of d94
    State: Okay         
    Size: 124227 blocks
    Stripe 0:
      Device            Start BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase 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 BlockDbase State      Hot Spare
      c2t2d0s1                   0   No    Okay         


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


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

119beyond 发表于 2013-06-14 15:19

先做备份,再做其他的操作

lanyang_tj 发表于 2013-06-14 16:09

kwtip 发表于 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的办法很好用。
页: [1]
查看完整版本: SVM RAID1又遇last erred求大神支招