This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
it_tips:storcliqr [2020/06/09 17:37] florido created |
it_tips:storcliqr [2020/06/12 12:46] (current) florido [MegaRAID storCLI quick reference] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== MegaRAID storCLI quick reference ====== | ====== MegaRAID storCLI quick reference ====== | ||
- | binary usually located in '/opt/MegaRAID/storcli/storcli64' | + | binary usually located in ''/opt/MegaRAID/storcli/storcli64'' |
===== Useful commands ===== | ===== Useful commands ===== | ||
Line 24: | Line 24: | ||
<code bash>storcli /c0/v0 show all</code> | <code bash>storcli /c0/v0 show all</code> | ||
+ | |||
+ | ==== Find enclosure ID ==== | ||
+ | |||
+ | <code bash>storcli /c0/eall show</code> | ||
+ | |||
+ | |||
+ | ==== List specific enclosure info ==== | ||
+ | |||
+ | /e133 stands for volume with id 133 | ||
+ | |||
+ | <code bash>storcli /c0/e133 show all</code> | ||
+ | |||
+ | ==== Find Physical drives IDs ==== | ||
+ | |||
+ | <code bash>storcli /c0/e133/sall show</code> | ||
+ | |||
+ | ==== Get specific Physical drive info ==== | ||
+ | |||
+ | GHS = Global Hot Spare | ||
+ | |||
+ | <code bash>storcli /c0/e133/s0 show all</code> | ||
+ | |||
+ | <code bash>storcli /c0/pall show all</code> | ||
+ | ==== Create Volume ==== | ||
+ | |||
+ | details: | ||
+ | * raid6 | ||
+ | * name alicedisk | ||
+ | * drives: enclosure:drive 0 to 6 | ||
+ | * Strip: 1MB | ||
+ | |||
+ | <code bash>storcli /c0 add vd r6 name=alicedisk drives=133:0-6 Strip=1024</code> | ||
+ | |||
+ | ==== Check background activity ==== | ||
+ | |||
+ | Usually initialization or rebuild. Weird thing is that initialization is not shown properly when in background mode. | ||
+ | |||
+ | <code bash>storcli/c0/v0 show bgi</code> | ||
+ | <code bash>storcli/c0/v0 show init</code> | ||
+ | |||
+ | ==== setup hotspare ==== | ||
+ | |||
+ | One needs to identify the enclosure for this to work and list all physical drives. | ||
+ | |||
+ | This adds s7 | ||
+ | |||
+ | <code bash>storcli /c0/e133/s7 add hotsparedrive</code> | ||
+ | |||
+ | ==== Consistency check status (remember to schedule!) ==== | ||
+ | |||
+ | <code bash>storcli /c0 show cc</code> | ||