• Megacli常用命令汇总


    https://www.linuxhub.org/?p=4389
    http://dp2u.com/2016/MegaCli-online-create-RAID.html

    1.显示Rebuid进度

    /opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -physdrv[20:2] -aALL

    2.查看E S

    /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll -NoLog | grep -Ei "(enclosure|slot)"

    3.查看所有硬盘的状态

    /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll -NoLog

    4.查看所有Virtual Disk的状态

    /opt/MegaRAID/MegaCli/MegaCli64 -LdPdInfo -aAll -NoLog

    RAID Level对应关系:

    RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0 RAID 1
    RAID Level : Primary-0, Secondary-0, RAID Level Qualifier-0 RAID 0
    RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3 RAID 5
    RAID Level : Primary-1, Secondary-3, RAID Level Qualifier-0 RAID 10

    5.在线做Raid

    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0[0:11] WB NORA Direct CachedBadBBU -strpsz64 -a0 -NoLog
    /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r5 [12:2,12:3,12:4,12:5,12:6,12:7] WB Direct -a0 

    6.点亮指定硬盘(定位)

    /opt/MegaRAID/MegaCli/MegaCli64 -PdLocate -start -physdrv[252:2] -a0 

    7.清除Foreign状态

    /opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -Clear -a0 

    8.查看RAID阵列中掉线的盘

    /opt/MegaRAID/MegaCli/MegaCli64 -pdgetmissing -a0 

    9.替换坏掉的模块

    /opt/MegaRAID/MegaCli/MegaCli64 -pdreplacemissing -physdrv[12:10] -Array5 -row0 -a0 

    10.手动开启rebuid

    /opt/MegaRAID/MegaCli/MegaCli64 -pdrbld -start -physdrv[12:10] -a0 

    11.查看Megacli的log

    /opt/MegaRAID/MegaCli/MegaCli64 -FwTermLog dsply -a0 > adp2.log 

    12.设置HotSpare

    /opt/MegaRAID/MegaCli/MegaCli64 -pdhsp -set [-Dedicated [-Array2]] [-EnclAffinity] [-nonRevertible] -PhysDrv[4:11] -a0
    /opt/MegaRAID/MegaCli/MegaCli64 -pdhsp -set [-EnclAffinity] [-nonRevertible] -PhysDrv[321}] -a0

    13.关闭Rebuild

    /opt/MegaRAID/MegaCli/MegaCli64 -AdpAutoRbld -Dsbl -a0 

    14.设置rebuild的速率

    /opt/MegaRAID/MegaCli/MegaCli64 -AdpSetProp RebuildRate -30 -a0 


    http://www.opstool.com/article/184
  • 相关阅读:
    appium 滑动屏幕
    appium 根据属性名获取属性值 特殊情况 element.get_attribute('name')相当于element.get_attribute('content-desc')或element.get_attribute('text')
    appium 获取元素的内容 获取元素的位置和大小
    appium 点击 输入 清空 ;异常处理 当输入中文 ,没有效果时,需要前置代码里加两行代码
    appium 隐式 查找元素
    appium 过滤出带有‘设’的文本
    appium 批量找元素
    通过id class xpath 找元素
    随笔
    spring 事务传播特性
  • 原文地址:https://www.cnblogs.com/shabake/p/9595365.html
Copyright © 2020-2023  润新知