zoukankan      html  css  js  c++  java
  • Solaris 10 镜像同步维护

    Solaris 10 镜像同步维护

    欢迎来到 来到大浪涛天的博客

    solaris 10镜像同步维护

    1. 查看镜像发现有镜像块需要被维护
      root@WEBServer # metastat
      d20: Mirror
      Submirror 0: d21
        State: Okay    
      Submirror 1: d22
        State: Needs maintenance 
      Resync in progress: 0 % done
      Pass: 1
      Read option: roundrobin (default)
      Write option: parallel (default)
      Size: 277764096 blocks
    2. 对需要维护的镜像做重新同步操作
      #metareplace -e d20 c0t0d0s0 

      查看mirror状态,看到同步过程Resyncing。

      root@WEBServer # 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  
    3. 等d21完成后,再同步d22。时间很长,每步要等4-5小时。
      #metareplace -e d20 c0t1d0s0  
    4. 最后执行metastat查看状态正常
      root@WEBServer # 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   
  • 相关阅读:
    c# 利用反射设置属性值
    C#中扩展方法
    Python与Ruby比较
    Python 学习笔记(半ZZ半自己写)
    c# 写的一个类帮助器(动态生成类 动态类 动态属性)
    c#学习python
    LBS中从数据库查询某经纬度2KM范围内的数据 针对大数据量的性能优化
    隐藏ToString等系统自带方法
    C#命名规范
    SQL Server 数值四舍五入,小数点后保留2位
  • 原文地址:https://www.cnblogs.com/chacha51/p/13764869.html
Copyright © 2011-2022 走看看