当前位置:网站首页>Megacli常用命令整理
Megacli常用命令整理
2022-06-25 22:03:00 【tinychen777】
本文主要介绍Megacli工具的常用命令
MegaCli 是LSI公司官方提供的SCSI卡管理工具软件,后来经过一系列的收购合并等操作,现在的LSI属于博通公司旗下的产品,因此如果需要下载MegaCli的话可以前往博通官网下载。
MegaCli工具一般在/opt/MegaRAID/MegaCli/MegaCli64,当然也可以直接使用MegaCli,一般来说两者是一样的
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL
# 查看所有阵列卡的所有阵列逻辑卷的所有信息
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -a0 | grep -i "Virtual Disk"
# 查看第1张阵列卡上一共有多少个raid阵列组(默认从0开始计数)
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -L0 -a0
# 查看第1张阵列卡上的第0个raid阵列组的信息(默认从0开始计数)
/opt/MegaRAID/MegaCli/MegaCli64 -LDPdInfo -aAll
# 查看所有阵列卡的所有阵列逻辑卷的所有信息(包括阵列逻辑卷对应的物理硬盘)
/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL
# 显示所有阵列卡信息,可以查看机器上一共有多少张阵列卡以及每张卡的详细信息
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL
# 查看所有阵列卡上的所有物理硬盘信息,包括型号、接口、SN码、部分SMART信息等
/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r5 [32:2,32:3,32:4] WB Direct -Hsp[32:4] -a0
# 在第1张阵列卡上创建一个 raid5 阵列,由物理盘 1,2,3 构成,该阵列的热备盘是物理盘 4
# 注意这里的32:2指的是使用eID和slot ID对一个阵列卡下的硬盘进行定位(默认从0开始计数)
/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r5 [32:2,32:3,32:4] WB Direct -a0
# 同上,创建一个 raid5 阵列,但是不指定热备盘
/opt/MegaRAID/MegaCli/MegaCli64 -LDRecon -Start -r5 -Add -PhysDrv[32:5] -L1 -a0
# 在线添加物理硬盘到某个阵列中
/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdDel -L1 -a0
# 删除第1张阵列卡上的第2个raid阵列(默认从0开始计数)
/opt/MegaRAID/MegaCli/MegaCli64 -LDInit -ShowProg -LALL -aALL
# 阵列创建完后,会有一个初始化同步块的过程,可以看看其进度
/opt/MegaRAID/MegaCli/MegaCli64 -LDInit -ProgDsply -LALL -aALL
# 同上,但是以动态可视化文字界面显示进度信息
/opt/MegaRAID/MegaCli/MegaCli64 -LDBI -ShowProg -LALL -aALL
# 查看阵列后台初始化进度
/opt/MegaRAID/MegaCli/MegaCli64 -LDBI -ProgDsply -LALL -aALL
# 同上,以动态可视化文字界面显示
/opt/MegaRAID/MegaCli/MegaCli64 -PDHSP -Set [-EnclAffinity] [-nonRevertible] -PhysDrv[32:7] -a0
# 指定第1张阵列卡的第8块盘作为全局热备 (默认从0开始计数)
/opt/MegaRAID/MegaCli/MegaCli64 -PDHSP -Set [-Dedicated [-Array1]] [-EnclAffinity] [-nonRevertible] -PhysDrv[32:7] -a0
# 同上,指定为某个阵列的专用热备
/opt/MegaRAID/MegaCli/MegaCli64 -PDHSP -Rmv -PhysDrv[32:7] -a0
# 删除全局热备盘
/opt/MegaRAID/MegaCli/MegaCli64 -PDOffline -PhysDrv [32:2] -a0
# 将某块物理盘下线(offline)
/opt/MegaRAID/MegaCli/MegaCli64 -PDOnline -PhysDrv [32:2] -a0
# 将某块物理盘下线(online)
/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv [32:2] -a0
# 换盘后查看物理磁盘重建进度
/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ProgDsply -PhysDrv [32:2] -a0
# 以动态可视化界面查看物理磁盘重建进度
/opt/MegaRAID/MegaCli/MegaCli64 -FwTermLog -Dsply -aALL
# 查看raid卡日志,注意日志的输出量可能较大,阵列卡对应的组建阵列等操作的详细信息都可以在日志中查看
/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL
# 显示Raid卡型号,Raid设置,Disk相关信息
/opt/MegaRAID/MegaCli/MegaCli64 -adpCount
# 显示适配器个数,只能查看机器上一共有多少张阵列卡,不能查看详细信息
/opt/MegaRAID/MegaCli/MegaCli64 -AdpGetTime –aALL
# 显示适配器时间
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aAll
# 查看BBU的详细信息
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus - aALL |grep 'Charger Status'
# 查看BBU电池的充电状态
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL
# 显示BBU状态信息
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuCapacityInfo -aALL
# 显示BBU容量信息
/opt/MegaRAID/MegaCli/ MegaCli64 -AdpBbuCmd -GetBbuDesignInfo -aALL
# 显示BBU设计参数
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuProperties -aALL
# 显示当前BBU属性
边栏推荐
- mysql
- Leetcode-1528- rearrange string - hash table - string
- Day4 branch and loop summary and operation
- Rk3568+ Hongmeng industrial control board industrial gateway video gateway solution
- BI-SQL丨存储过程(一)
- A. Balance the Bits--Codeforces Round #712 (Div. 1)
- C# IO Stream 流(二)扩展类_封装器
- Beacon realizes asset management and indoor positioning based on 5.2 ultra-low power Bluetooth module efr32 (bg22ax)
- Leetcode (605) -- flower planting
- Reproduction of an implant found by Kaspersky that writes shellcode into evenlog
猜你喜欢

经典图像分割网络:Unet 支持libtorch部署推理【附代码】

先序线索二叉树

excel如何实现中文单词自动翻译成英文?这个公式教你了

QT custom implemented calendar control

qtcreator 格式化代码
![[Axi] interpretation of Axi protocol atomic access](/img/40/c742b861d92dfa2a1b27ae9ccc7a5d.png)
[Axi] interpretation of Axi protocol atomic access

Hibernate core api/ configuration file / L1 cache details

CTS RTS RX TX in serial port flow control UART (direct communication between serial port module and MCU)

Qt自定义实现的日历控件

jdbc常见异常及错误解决办法汇总
随机推荐
Qt Utf8 与 Unicode 编码的互相转换, Unicode编码输出为格式为 &#xXXXX
Ad20 learning notes I
Uniapp -- framework arrangement and analysis summary
MySQL自定义函数实例
Qtcreator formatting code
mysql集群
UE4 learning records create a role and control its movement
Leaky API interface practical development series (13): gooseneck cloud service php-api two-dimensional array parameter transfer solution
CSDN add on page Jump and off page specified paragraph jump
第六章 习题(678)【微机原理】【习题】
C1. k-LCM (easy version)-Codeforces Round #708 (Div. 2)
登录拦截器
Leetcode-1528- rearrange string - hash table - string
树状类查询组件
Qt 中文和英文分别使用不同的字体
1.8 billion pixel Mars panorama Ultra HD released by NASA, very shocking
C. Fibonacci Words-April Fools Day Contest 2021
流数据
LeetCode-1528-重新排列字符串-哈希表-字符串
记录一下Qt将少量图片输出为MP4的思路及注意事项