Megacli Command

MegaCli -PDList -aALL

To check all physical disk status.

MegaCli -LDinfo -Lall -aALL

To show and check all virtual disk

MegaCli -PDRbld -ProgDsply -PhysDrv [1:4] -aALL

To show the rebuild status of Physical disk 1:4

MegaCli -PDOffline -PhysDrv [1:4] -a0
MegaCli -PDOnline -PhysDrv [1:4] -a0

To make physical disk online / offline

MegaCli -PDHSP -Rmv -PhysDrv[1:5] -a0

To remove hotspare for physical disk 1:5 for all array

MegaCli -PDHSP -Set [-EnclAffinity] [-nonRevertible] -PhysDrv[1:5] -a0
MegaCli -PDHSP -Set [-Dedicated [-Array1]] [-EnclAffinity] [-nonRevertible] -PhysDrv[1:5] -a0

To make hotspare for all array or specific array

MegaCli -LDRecon -Start -r5 -Add -PhysDrv[1:4] -L1 -a0

To add new raid 5 member online for Physical disk 1:4. It is required reboot to view the size changes. (df-h)

MegaCli -LDInit -ShowProg -LALL -aALL
MegaCli -LDInit -ProgDsply -LALL -aALL

To show the progress of array initialization

MegaCli -LDBI -ShowProg -LALL -aALL
MegaCli -LDBI -ProgDsply -LALL -aALL

To show the progress of background mode of array initialization

MegaCli -CfgLdAdd -r5 [1:2,1:3,1:4] WB Direct -a0 MegaCli -CfgLdAdd -r5 [1:2,1:3,1:4] WB Direct -Hsp[1:5] -a0

Create array raid5 with 3 physical disk 1:2,1:3,1:4 (with hotstapre or not)

MegaCli -CfgLdDel -L1 -a0

Delete array 1

WT (Write through WB (Write back) NORA (No read ahead) RA (Read ahead) ADRA (Adaptive read ahead) Cached Direct sample : MegaCli -LDSetProp WT|WB|NORA|RA|ADRA -L0 -a0 or MegaCli -LDSetProp -Cached|-Direct -L0 -a0 or enable / disable disk cache MegaCli -LDSetProp -EnDskCache|-DisDskCache -L0 -a0

enable / disable disk cache or set cache property/policy of array

MegaCli -LDGetProp -Cache -LALL -aALL

To show the cache property/policy for all array



Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.