如何检查、修改3108Raid卡策略和设置

2020-02-18  本文已影响0人  Chovyn

方案一:重启到3108卡进行检查、修改(该方法只适用于读写策略,操作前提是服务器允许重启)
方案二:在系统内使用官方工具Storcli检查、修改

针对方案二:以Linux为例

1、准备工作:

用命令检查系统内有没有自带storcli工具
ls /opt/MegaRAID/storcli/

如果没有,

安装方法一:下载地址:
https://www.broadcom.com/support/download-search?tab=search
在搜索框keyword填入Storcli搜索,搜索后在“Management Software and Tools”中点击最新的“STORCLI_SAS3.5”,同意后下载。
然后将文件解压,找出storcli-007.1207.0000.0000-1.noarch.rpm上传到系统内,
用root用户权限安装Storcli
rpm -ivh storcli-007.1207.0000.0000-1.noarch.rpm
安装后,64位系统Storcli的绝对路径为: /opt/MegaRAID/storcli/storcli64
32位系统Storcli的绝对路径为: /opt/MegaRAID/storcli/storcli

安装方法二:下载地址
https://share.weiyun.com/5xSx1ho
下载storcli-1.15.04-1.tar.gz上传到系统内
使用命令安装Storcli

tar -zxvf storcli-1.15.04-1.tar.gz
cd /opt/MegaRAID/storcli
chmod +x *

2、RAID信息总览:

查看所有控制器上的所有RAID
/opt/MegaRAID/storcli/storcli64 /call/vall show
查看第0号RAID卡所有的虚拟盘的详细信息
/opt/MegaRAID/storcli/storcli64 /c0/vall show all
查看第0号RAID卡设备号为1的虚拟盘的详细信息
/opt/MegaRAID/storcli/storcli64 /c0/v1 show all

3、关于缓存读写策略

如果read缓存策略没开启,想要需修改为Read Ahead:---->提高顺序读效率
/opt/MegaRAID/storcli/storcli64 /call/vall set rdcache=ra
如果write缓存策略没开启,想要修改为Write back ---->提高写效率
/opt/MegaRAID/storcli/storcli64 /call/vall set wrcache=wb
修改完后,再次查看控制器上的所有RAID情况
/opt/MegaRAID/storcli/storcli64 /call/vall show

4、关于一致性校验

查看第0号RAID卡的CC(consistency check)设置
/opt/MegaRAID/storcli/storcli64 /c0 show cc
检查第0号RAID卡的ccrate设置
/opt/MegaRAID/storcli/storcli64 /c0 show ccrate
检查第0号RAID卡的一致性校验情况
/opt/MegaRAID/storcli/storcli64 /c0 show |grep -A 3 'DG/VD'

图中状态为NO表示还没进行过一致性校验,强制开始一致性校验:
/opt/MegaRAID/storcli/storcli64 /c0/vall start cc force
强制开始校验后,再次检查CC状态,发现已经在校验中
/opt/MegaRAID/storcli/storcli64 /c0 show cc

其他:

查看第0号RAID卡的摘要信息
/opt/MegaRAID/storcli/storcli64 /c0 show
查看第0号RAID卡详细信息
/opt/MegaRAID/storcli/storcli64 /c0 show all
查看帮助文档(翻查命令)
/opt/MegaRAID/storcli/storcli64 -h |more
检查第0号RAID卡的rebuild速率
/opt/MegaRAID/storcli/storcli64 /c0 show rebuildrate
设置第0号RAID卡的rebuild速率
/opt/MegaRAID/storcli/storcli64 /c0 set rebuildrate=30
查看第0号RAID卡的物理磁盘的信息
/opt/MegaRAID/storcli/storcli64 /c0 /eall /sall show

扩展阅读:

Storcli命令详解(带图片):storcli 简易使用介绍 - 博客园
https://www.cnblogs.com/luxiaodai/p/9878747.html
Storcli64 工具操作指南
https://www.cnblogs.com/chong93/p/10470032.html
https://blog.csdn.net/weixin_30323631/article/details/99501960

更多内容及后续更新:
https://docs.qq.com/doc/DR3dYVXVpS1F5QWxj

上一篇下一篇

猜你喜欢

热点阅读