当前位置:网站首页>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属性
边栏推荐
- 平衡二叉树AVL
- 社招两年半10个公司28轮面试面经(含字节、拼多多、美团、滴滴......)
- C. Planar Reflections-CodeCraft-21 and Codeforces Round #711 (Div. 2)
- hiberate架构介绍及环境搭建(非常详细)
- 后序线索二叉树
- After xampp restarts, the MySQL service cannot be started.
- Kylin
- OpenJudge NOI 2.1 15:Counterfeit Dollar
- WordPress
- golang Make a list of intervals with sequential numbers
猜你喜欢

qtcreator 格式化代码
![Classic image segmentation network: UNET supports libtorch deployment reasoning [with code]](/img/3a/fb3bfe673db5123e3124404f3905c0.png)
Classic image segmentation network: UNET supports libtorch deployment reasoning [with code]

Uni app -- listen for the exit of the return key

提取系统apk

The simplest screen recording to GIF gadget in history, licecap, can be tried if the requirements are not high

idea Kotlin版本升级

中序线索二叉树

Kotlin null pointer bug

Online customer service - charging standards and service provision of third parties

YUV444、YUV422、YUV420、YUV420P、YUV420SP、YV12、YU12、NV12、NV21
随机推荐
Graduation trip | recommended 5-day trip to London
B. Box Fitting-CodeCraft-21 and Codeforces Round #711 (Div. 2)
Online customer service - charging standards and service provision of third parties
关于go中资源泄漏/goroutine泄漏/内存泄漏/CPU打满等情况分析
对卡巴斯基发现的一个将shellcode写入evenlog的植入物的复现
QLabel 文字水平滚动显示
C# IO Stream 流(一)基础概念_基本定义
My vscode
Qtcreator formatting code
Share a downloaded osgeo4w64 Library Based on qgis3.10
proxy
Beacon realizes asset management and indoor positioning based on 5.2 ultra-low power Bluetooth module efr32 (bg22ax)
二进制、16进制、大端小端
Pointer strengthening and improvement
UE4 学习记录二 给角色添加骨架,皮肤,及运动动画
自定义QComboBox下拉框,右对齐显示,下拉列表滑动操作
社招两年半10个公司28轮面试面经(含字节、拼多多、美团、滴滴......)
Extraction system apk
登录拦截器
Screen recording to GIF is an easy-to-use gadget, screentogif, which is free and easy to use!