Megacli: Difference between revisions
From DWIKI
mNo edit summary |
mNo edit summary |
||
Line 74: | Line 74: | ||
MegaCli -PDMarkMissing -PhysDrv \[E:S\] -aN | MegaCli -PDMarkMissing -PhysDrv \[E:S\] -aN | ||
MegaCli -PDPrpRmv -PhysDrv [E:S] -aN | MegaCli -PDPrpRmv -PhysDrv [E:S] -aN | ||
== Unexpected sense code == | == Unexpected sense code == | ||
* | |||
*The last bit, like Sense: 24/5/0 is SCSI sense code |
Revision as of 09:47, 7 December 2020
Links
Megaraid command line tool
- http://tools.rapidsoft.de/perc/perc-cheat-sheet.pdf
- http://erikimh.com/megacli-cheatsheet/
- http://tools.rapidsoft.de/perc/
- https://exxa.tech/linux/lsi-megaraid-command-line-utility
- http://www.lsi.com/DistributionSystem/AssetDocument/files/docs/techdocs/storage_stand_prod/sas/embedded_mr_sw_ug.pdf
- Replacing a disk with megacli
- Megacli on Linux
Drive mappings
Shown as Disk0 (Slot number 0) by megacli
Enclosure Device ID: 10 Slot Number: 0 Enclosure position: 0 Device Id: 13 Sequence Number: 11 Media Error Count: 0 Other Error Count: 0 Inquiry Data: X9O1S0V1S5HHTOSHIBA HDWD240 KQ000A
In smart it's
/dev/bus/0 -d sat+megaraid,13
Commands
Show all info
MegaCli -AdpAllInfo -a0
Show all drives
MegaCli -PDList -aALL
Virtual/physical drives
megaCli -LdPdInfo -a0
Show BBU status
megacli -AdpBbuCmd -a0 -nolog
Show array status
MegaCli -LdInfo L1 -a0 -nolog
Locate one drive
Where '6' is the Slot Number from pdlist/pdfino and '252' the Enclosure device id.
MegaCli64 -PdLocate -start -physdrv \[252:6\] -a0
FAQ
Primary-5, Secondary-0, RAID Level Qualifier-3
https://globalroot.wordpress.com/2013/06/18/megacli-raid-levels/
Replace a drive
MegaCli -PDOffline -PhysDrv \[E:S\] -aN MegaCli -PDMarkMissing -PhysDrv \[E:S\] -aN MegaCli -PDPrpRmv -PhysDrv [E:S] -aN
Unexpected sense code
- The last bit, like Sense: 24/5/0 is SCSI sense code