免费注册 查看新帖 |

Chinaunix

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

Solaris卷状态出现maintenance的处理 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-24 15:24 |只看该作者 |倒序浏览

Solaris卷状态出现maintenance的处理
昨天登陆到一台SUN blade 2500,看到如下信息
[email=root@WEBServer]root@WEBServer[/email]
# metastat
d20: Mirror
    Submirror 0: d21
      State: Needs maintenance
    Submirror 1: d22
      State: Needs maintenance
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 277764096 blocks
d21: Submirror of d20
    State: Needs maintenance
    Invoke: metareplace d20 c0t0d0s0
    Size: 277764096 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c0t0d0s0                   0     No    Maintenance  
d22: Submirror of d20
    State: Needs maintenance
    Invoke: after replacing "Maintenance" components:
                metareplace d20 c0t1d0s0
    Size: 277764096 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c0t1d0s0                   0     No    Last Erred   
Sun管理的卷不正常了,原因是两个submirror数据同步出现了问题,需要重做同步。解决方法如下
1. 使用format 工具,检查是否有坏块                                       
该机器配置了2个硬盘作为镜像,两个硬盘都要检测一遍。
format--> 选择 盘1 (c0t0)--> analyze --> read on each disk, read过程很慢,耐心等待
完成后同样步骤换盘2去read。整个过程大约耗费了2小时。

最后系统报告正常,万幸磁盘没有坏

,不然老板又要生气了..
analyze> read
Ready to analyze (won't harm SunOS). This takes a long time,
but is interruptable with CTRL-C. Continue? yes
        pass 0
   14086/23/734  
        pass 1
   14086/23/734  
Total of 0 defective blocks repaired.

2. 同步mirror
执行如下命令同步meta data.

#metareplace -e d20 c0t0d0s0  
查看mirror状态,看到同步过程Resyncing。
[email=root@WEBServer]root@WEBServer[/email]
# metastat
d20: Mirror
    Submirror 0: d21
      State: Resyncing   
    Submirror 1: d22
      State: Needs maintenance
    Resync in progress: 0 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 277764096 blocks
d21: Submirror of d20
    State: Resyncing   
    Size: 277764096 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c0t0d0s0                   0     No    Resyncing   
d22: Submirror of d20
    State: Needs maintenance
    Size: 277764096 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c0t1d0s0                   0     No    Last Erred   
等d21完成后,再同步d22。时间很长,每步要等4-5小时。。。
#metareplace -e d20 c0t1d0s0   
3. 最后执行metastat查看状态正常
[email=root@WEBServer]root@WEBServer[/email]
# metastat
d20: Mirror
    Submirror 0: d21
      State: Okay         
    Submirror 1: d22
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 277764096 blocks
d21: Submirror of d20
    State: Okay         
    Size: 277764096 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c0t0d0s0                   0     No    Okay   
        


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/43930/showart_345792.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP