本文最后更新于:September 2, 2020 pm
本文主要介绍Megacli工具的常用命令
MegaCli 是LSI公司官方提供的SCSI卡管理工具软件,后来经过一系列的收购合并等操作,现在的LSI属于博通公司旗下的产品,因此如果需要下载MegaCli的话可以前往博通官网下载。
MegaCli工具一般在/opt/MegaRAID/MegaCli/MegaCli64
,当然也可以直接使用MegaCli
,一般来说两者是一样的
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
| /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -a0 | grep -i "Virtual Disk"
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -L0 -a0
/opt/MegaRAID/MegaCli/MegaCli64 -LDPdInfo -aAll
/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r5 [32:2,32:3,32:4] WB Direct -Hsp[32:4] -a0
/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r5 [32:2,32:3,32:4] WB Direct -a0
/opt/MegaRAID/MegaCli/MegaCli64 -LDRecon -Start -r5 -Add -PhysDrv[32:5] -L1 -a0
/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdDel -L1 -a0
/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
/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
/opt/MegaRAID/MegaCli/MegaCli64 -PDOnline -PhysDrv [32:2] -a0
/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
/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -adpCount
/opt/MegaRAID/MegaCli/MegaCli64 -AdpGetTime –aALL
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aAll
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus - aALL |grep 'Charger Status'
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuCapacityInfo -aALL
/opt/MegaRAID/MegaCli/ MegaCli64 -AdpBbuCmd -GetBbuDesignInfo -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuProperties -aALL
|