博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
raid卡MegaCli工具使用说明
阅读量:4315 次
发布时间:2019-06-06

本文共 2357 字,大约阅读时间需要 7 分钟。

一、DELL&IBM

MegaCli -AdpAllInfo -aALL —看配置项

#检查raid级别
MegaCli -LDInfo -Lall -aALL | grep 'RAID Level:'
RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0

#检查raid缓存容量

MegaCli -cfgdsply -aALL | grep 'Memory:'
Memory: 512MB

#检查Cache策略

MegaCli -LDInfo -Lall -aALL | grep 'Current Cache Policy:'
Current Cache Policy: WriteBack, ReadAhead, Cached, Write Cache OK if Bad BBU

#检查电池状态

MegaCli -AdpBbuCmd -aAll|grep 'isSOHGood:'
isSOHGood: Yes

MegaCli -AdpBbuCmd -aAll

#检查磁盘状态

MegaCli -PDList -aALL | grep 'Firmware state:'
Firmware state: Online

#检查磁盘是否是SSD

MegaCli -PDList -aALL |grep -i ssd

MegaCli -pdlist -aall | grep rror

MegaCli -fwtermlog dsply -aall —查看raid卡日志

#查看磁盘缓存

MegaCli -LDSetProp -EnDskCache -lall -a0 —开启磁盘缓存

MegaCli -LDSetProp -DisDskCache -lall -a0 —关闭命令

MegaCli -LDinfo -lall -a0 —查看

Default Cache Policy: WriteBack, ReadAhead, Cached, Write Cache OK if Bad BBU
Current Cache Policy: WriteBack, ReadAhead, Cached, Write Cache OK if Bad BBU
Access Policy: Read/Write
Disk Cache Policy: Enabled —开启

Disk Cache Policy: Disabled —关闭

Disk Cache Policy: Disk's Default —默认设置,与厂家有关系,不确定是开启还是关闭

#查看巡读

MegaCli -AdpPR -Info -aALL

Adapter 0: Patrol Read Information:

Patrol Read Mode: Disabled ——被关闭了,默认就是被关闭的,百度的

Patrol Read Execution Delay: 168 hours
Number of iterations completed: 0
Current State: Stopped

Exit Code: 0x00

# 查看是充放电策略

MegaCli -AdpBbuCmd -GetBbuProperties -a0

 

BBU Properties for Adapter: 0

Auto Learn Period: 2592000 Sec

Next Learn time: 388447520 Sec
Learn Delay Interval:0 Hours
Auto-Learn Mode: Enabled ——开启

查看微码:
# MegaCli -adpallinfo -a0 | head -10

二、HP

#检查raid级别
hpacucli ctrl all show config detail |grep 'Fault Tolerance:'
Fault Tolerance: RAID 1
Fault Tolerance: RAID 1+0

#检查电池、磁盘状态

[root@yf-dba-mld-cal00.yf01.baidu.com ~]# hpacucli ctrl all show config detail |grep 'Status'

Controller Status: OK #raid卡控制器状态

Cache Status: OK #cache状态
Battery Status: OK #电池状态
Status: OK #阵列状态
Status: OK #磁盘状态
Status: OK
Status: OK
Status: OK #阵列状态
Status: OK #磁盘状态
Status: OK
Status: OK
Status: OK
Status: OK
Status: OK
Status: OK

hpacucli ctrl slot=1 show status —查看raid卡信息

#raid卡缓存容量
hpacucli ctrl all show config detail |grep 'Total Cache Size'
Total Cache Size: 512 MB

#raid卡读写策略

hpacucli ctrl all show config detail|grep 'Accelerator Ratio'
Accelerator Ratio: 50% Read / 50% Write

转载于:https://www.cnblogs.com/gsblog/p/3363512.html

你可能感兴趣的文章
hMailServer搭建简单邮件系统
查看>>
从零开始学习jQuery
查看>>
Spring+SpringMVC+MyBatis深入学习及搭建(四)——MyBatis输入映射与输出映射
查看>>
opacity半透明兼容ie8。。。。ie8半透明
查看>>
CDOJ_24 八球胜负
查看>>
Alpha 冲刺 (7/10)
查看>>
一款jQuery打造的具有多功能切换的幻灯片特效
查看>>
SNMP从入门到开发:进阶篇
查看>>
@ServletComponentScan ,@ComponentScan,@Configuration 解析
查看>>
unity3d 射弹基础案例代码分析
查看>>
thinksns 分页数据
查看>>
os模块
查看>>
LINQ to SQL vs. NHibernate
查看>>
基于Angular5和WebAPI的增删改查(一)
查看>>
windows 10 & Office 2016 安装
查看>>
最短路径(SP)问题相关算法与模板
查看>>
js算法之最常用的排序
查看>>
Python——交互式图形编程
查看>>
经典排序——希尔排序
查看>>
团队编程项目作业2-团队编程项目代码设计规范
查看>>