首页 技术 正文
技术 2022年11月14日
0 收藏 944 点赞 3,738 浏览 1979 个字

一、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

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,996
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,510
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,353
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,137
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,770
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,848