storcli replaced megacli and some syntax has changed.
Additional external reference:
https://www.thomas-krenn.com/en/wiki/StorCLI
Dynamic help of the commands
./storcli64 -help | less
Show all the info related to controller 0
./storcli64 /c0 show all
Excerpts of the VD (Virtual Disk) and PD (Physical Disk) info.
Note:
- DG (Disk Group) and VD are typically the same value but can differ if VDs had been deleted and recreated.
- 252:2 and 252:3 are Unconfigured Good and F = foreign.
VD LIST : ======= ----------------------------------------------------------- DG/VD TYPE State Access Consist Cache sCC Size Name ----------------------------------------------------------- 0/0 RAID1 Optl RW Yes RAWBC - 110.827 GB ----------------------------------------------------------- PD LIST : ======= ---------------------------------------------------------------------------- EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp ---------------------------------------------------------------------------- 252:2 0 UGood F 2.727 TB SATA HDD N N 512B ST3000DM001-9YN166 U 252:3 1 UGood F 2.727 TB SATA HDD N N 512B ST3000DM001-9YN166 U 252:4 6 Onln 0 110.827 GB SATA SSD N N 512B INTEL SSDSC2CW120A3 U 252:5 5 Onln 0 110.827 GB SATA SSD N N 512B INTEL SSDSC2CW120A3 U ----------------------------------------------------------------------------
To clear / erase the status of a disk
./storcli64 /c0 /e252 /s2 start erase simple
The DG is cleared
---------------------------------------------------------------------------- EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp ---------------------------------------------------------------------------- 252:2 0 UGood - 2.727 TB SATA HDD N N 512B ST3000DM001-9YN166 U
Create a VD
./storcli64 /c0 add vd r1 name=metamore1 drives=252:2-3 Controller = 0 Status = Success Description = Add VD Succeeded
Delete a VD
./storcli64 /c0 /v1 delete
Locate a physical disk by blinking it's LED
./storcli64 /c0/e252/s5 start locate Controller = 0 Status = Success Description = Start Drive Locate Succeeded.
0 Comments