Megacli: Difference between revisions
From DWIKI
m (→Show all info) |
m (→FAQ) |
||
(23 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Commands= | |||
==Show all info== | = Links = | ||
*[http://erikimh.com/megacli-cheatsheet/ MegaCli Cheat sheet] | |||
*[https://www.t10.org/lists/1spc-lst.htm SCSI codes] | |||
*[https://www.sysorchestra.com/online-capacity-expansion-of-a-dell-hardware-raid-1-with-larger-disks-and-a-lvm/ Online expansion of Raid-1] | |||
*[https://www.broadcom.com/support/knowledgebase/1211161499760/lsi-command-line-interface-cross-reference-megacli-vs-twcli-vs-s Megacli to storcli cross reference] | |||
*[https://raid.wiki.kernel.org/index.php/Hardware_Raid_Setup_using_MegaCli Hardware Raid Setup using MegaCli] | |||
= Megaraid command line tool = | |||
*[http://tools.rapidsoft.de/perc/perc-cheat-sheet.pdf http://tools.rapidsoft.de/perc/perc-cheat-sheet.pdf] | |||
*[http://erikimh.com/megacli-cheatsheet/ http://erikimh.com/megacli-cheatsheet/] | |||
*[http://tools.rapidsoft.de/perc/ http://tools.rapidsoft.de/perc/] | |||
*[https://exxa.tech/linux/lsi-megaraid-command-line-utility 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 http://www.lsi.com/DistributionSystem/AssetDocument/files/docs/techdocs/storage_stand_prod/sas/embedded_mr_sw_ug.pdf] | |||
*[https://www.advancedclustering.com/act_kb/replacing-a-disk-with-megacli/ Replacing a disk with megacli] | |||
*[https://raid.wiki.kernel.org/index.php/Hardware_Raid_Setup_using_MegaCli Megacli on Linux] | |||
= Drive mappings = | |||
*[https://raid.wiki.kernel.org/index.php/Hardware_Raid_Setup_using_MegaCli#Mapping_virtual_drives_to_linux_devices https://raid.wiki.kernel.org/index.php/Hardware_Raid_Setup_using_MegaCli#Mapping_virtual_drives_to_linux_devices] | |||
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 | MegaCli -AdpAllInfo -a0 | ||
==Show all drives== | == Show all drives == | ||
MegaCli -PDList -aALL | MegaCli -PDList -aALL | ||
| |||
== Virtual/physical drives == | |||
megaCli -LdPdInfo -a0 | |||
| |||
== Show BBU status == | |||
megacli -AdpBbuCmd -a0 -nolog | |||
==request BBU learn cycle== | |||
MegaCli -AdpBbuCmd -BbuLearn -a0 | |||
== 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 | |||
==Silence alarm== | |||
MegaCli -AdpSetProp AlarmSilence -aALL | |||
==Grow size after replacing with bigger disks== | |||
To grow the third volume: | |||
MegaCli64 -LdExpansion -p100 -L3 -a0 | |||
= FAQ = | |||
== Primary-5, Secondary-0, RAID Level Qualifier-3 == | |||
[https://globalroot.wordpress.com/2013/06/18/megacli-raid-levels/ 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: .... <span style="font-family:monospace"><span style="color:#000000; background-color:#ffffff">Sense: 5/24/00</span></span> == | |||
These are SCSI sense codes: | |||
Sense key: 5 | |||
Sense code: 24 | |||
Sense qualifier: 0 | |||
==Firmware state: Unconfigured(bad)== | |||
MegaCli -PDMakeGood -PhysDrv[<Enclosure#>:<Slot#>] -a0 | |||
[[Category:Storage]] |
Latest revision as of 11:00, 3 May 2023
Links
- MegaCli Cheat sheet
- SCSI codes
- Online expansion of Raid-1
- Megacli to storcli cross reference
- Hardware Raid Setup using MegaCli
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
request BBU learn cycle
MegaCli -AdpBbuCmd -BbuLearn -a0
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
Silence alarm
MegaCli -AdpSetProp AlarmSilence -aALL
Grow size after replacing with bigger disks
To grow the third volume:
MegaCli64 -LdExpansion -p100 -L3 -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: .... Sense: 5/24/00
These are SCSI sense codes:
Sense key: 5 Sense code: 24 Sense qualifier: 0
Firmware state: Unconfigured(bad)
MegaCli -PDMakeGood -PhysDrv[<Enclosure#>:<Slot#>] -a0