LSI StorCLI
From VVCWiki
Jump to navigationJump to search
- Check physical disks
# /opt/MegaRAID/storcli/storcli64 /c0 /eall /sall show Controller = 0 Status = Success Description = Show Drive Information Succeeded. Drive Information : ================= ------------------------------------------------------------------------- EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp ------------------------------------------------------------------------- 20:1 8 Onln 0 837.258 GB SAS HDD N N 512B ST900MM0006 U 20:2 9 Onln 0 837.258 GB SAS HDD N N 512B ST900MM0006 U 20:3 10 UGood - 837.258 GB SAS HDD N N 512B ST900MM0006 U 20:4 11 UGood - 837.258 GB SAS HDD N N 512B ST900MM0006 U 20:5 12 UGood - 837.258 GB SAS HDD N N 512B ST900MM0006 U 20:6 13 UGood - 837.258 GB SAS HDD N N 512B ST900MM0006 U 20:7 14 UGood - 837.258 GB SAS HDD N N 512B ST900MM0006 U 20:8 15 UGood - 837.258 GB SAS HDD N N 512B ST900MM0006 U 20:9 16 UGood - 837.258 GB SAS HDD N N 512B ST900MM0006 U 20:10 17 UGood - 837.258 GB SAS HDD N N 512B ST900MM0006 U 20:11 18 UGood - 837.258 GB SAS HDD N N 512B ST900MM0006 U 20:12 19 UGood - 837.258 GB SAS HDD N N 512B ST900MM0006 U
- Create RAID10 from available disks
# /opt/MegaRAID/storcli/storcli64 /c0 add vd type=r10 size=all drives=20:3-12 pdperarray=2 pdcache=on strip=64
- Check Logical drive status
# /opt/MegaRAID/storcli/storcli64 /c0 /v1 show Controller = 0 Status = Success Description = None Virtual Drives : ============== ---------------------------------------------------------- DG/VD TYPE State Access Consist Cache sCC Size Name ---------------------------------------------------------- 1/1 RAID10 Optl RW No RaWBD - 4.087 TB ----------------------------------------------------------
- Initialize RAID
# /opt/MegaRAID/storcli/storcli64 /c0 /v1 start init
- Initiate consistency check
# /opt/MegaRAID/storcli/storcli64 /c0 /v1 start cc # /opt/MegaRAID/storcli/storcli64 /c0 /v1 show cc Controller = 0 Status = Success Description = None VD Operation Status : =================== ----------------------------------- VD Operation Progress% Status ----------------------------------- 1 CC 1 In progress -----------------------------------
- Create file system
# mkfs.xfs -L splunk -f -d su=64k,sw=5,agsize=$((45725424*4096)) /dev/vg1/splunk