Storcli: Difference between revisions
m (→write back) |
m (→Drive mappings) |
||
(16 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
= Links = | = Links = | ||
*[https://www.thomas-krenn.com/en/wiki/StorCLI_commands | *[https://www.thomas-krenn.com/en/wiki/StorCLI_commands StorCLI commands] | ||
*[https://www.virtualizationhowto.com/2017/10/change-bbu-and-raid-cache-settings-with-avago-lsi-storcli/ Cache settings] | *[https://www.virtualizationhowto.com/2017/10/change-bbu-and-raid-cache-settings-with-avago-lsi-storcli/ Cache settings] | ||
*[https://titanwolf.org/Network/Articles/Article?AID=486e3967-1b44-4e90-bd28-f7e271586ba1 Conversion between raid levels] | *[https://titanwolf.org/Network/Articles/Article?AID=486e3967-1b44-4e90-bd28-f7e271586ba1 Conversion between raid levels] | ||
*[https://www.broadcom.com/site-search?q=storcli Download storcli] | |||
=HOWTO= | =HOWTO= | ||
Line 21: | Line 22: | ||
storcli /c0 /eall /sall show rebuild | storcli /c0 /eall /sall show rebuild | ||
==Drive mappings== | |||
sg_map -x | |||
Output: /dev/sgXX <host_number> <bus> <scsi_id> <lun> <scsi_type> <disk> | |||
/dev/sg11 7 0 1 0 0 /dev/sdl | |||
<scsi_id> is VD(DID?) in storcli output, this is not always same as DG :) | |||
TODO find out where that '7' comes from | |||
==Alarm== | ==Alarm== | ||
Line 44: | Line 54: | ||
*16: cachevault? | *16: cachevault? | ||
*32: manual learn requested | *32: manual learn requested | ||
==Get smart status of disk== | |||
/dev/bus/0 -d sat+megaraid,14 | |||
Where '''14''' is disk ID, not Slot number | |||
==Set disk to JBOD== | |||
If disk still in an array, first delete that :) | |||
Looks like disks should be in state '''UGood''' | |||
storcli /cx[/ex]/sx set jbod | |||
If that fails try: | |||
storcli /c0 set jbod=on | |||
this might/should set all unused drives to jbod | |||
Else look at: | |||
storcli /c0/e9/s0 start erase simple | |||
or if that fails | |||
storcli /c0/e9/s0 start erase | |||
this takes a while, check with | |||
storcli /c0/e9/s0 show erase | |||
==FAQ== | |||
===Failure 255 Operation not allowed.=== | |||
Disk still in an array? | |||
=Output= | =Output= | ||
Line 73: | Line 109: | ||
== VD settings with SSD == | == VD settings with SSD == | ||
==Set bootable == | |||
storcli /c0/e10/s0 set bootdrive= on|off | |||
NO read ahead, write through | NO read ahead, write through |
Revision as of 18:01, 20 March 2024
Links
HOWTO
Add new/replacement disk
Show all should tell you s(Slot), dg, array and row, then:
storcli /c0/e32/s12 insert dg=0 array=0 row=0 storcli /c0/e32/s12 start rebuild
Locate a disk
storcli /c0/e8/s2 start locate
Show rebuild status
storcli /c0 /eall /sall show rebuild
Drive mappings
sg_map -x
Output: /dev/sgXX <host_number> <bus> <scsi_id> <lun> <scsi_type> <disk>
/dev/sg11 7 0 1 0 0 /dev/sdl
<scsi_id> is VD(DID?) in storcli output, this is not always same as DG :)
TODO find out where that '7' comes from
Alarm
Silence alarm
storcli /c0 set alarm=off
BBU
Show time
storcli /c0 show time
Get BBU status
storcli /cx/bbu show all
BBU start learn
storcli /cx/bbu start learn
BBU status values
Check here for more confusion
- 0: OK
- 8: charging or not full, unclear
- 16: cachevault?
- 32: manual learn requested
Get smart status of disk
/dev/bus/0 -d sat+megaraid,14
Where 14 is disk ID, not Slot number
Set disk to JBOD
If disk still in an array, first delete that :) Looks like disks should be in state UGood
storcli /cx[/ex]/sx set jbod
If that fails try:
storcli /c0 set jbod=on
this might/should set all unused drives to jbod
Else look at:
storcli /c0/e9/s0 start erase simple
or if that fails
storcli /c0/e9/s0 start erase
this takes a while, check with
storcli /c0/e9/s0 show erase
FAQ
Failure 255 Operation not allowed.
Disk still in an array?
Output
UGood F
Disk contains foreign config, clear with
storcli /c0/fall del
Virtual Devices
NRWBD
NR=No Read Ahead WB = Write Back D = Direct IO
Cache settings
read ahead
usually on, pointless i reads are very random
write back
Faster, assumes you have BBU
FAQ
List controllers
storcli show all
VD settings with SSD
Set bootable
storcli /c0/e10/s0 set bootdrive= on|off
NO read ahead, write through
storcli /c0 /v2 set wrcache=wt
No read ahead
storcli /c0 /v2 set rdcache=nora
Changing cache settings
storcli /c0 /v1 set wrcache=wt|wb|awb storcli /c0 /v1 set rdcache=ra|nora
ErrMsg: use /cx/cv
There migh be a "cachevault"?
storcli /c0/cv show status