Megacli: Difference between revisions

From DWIKI
mNo edit summary
mNo edit summary
Line 7: Line 7:
*[https://www.advancedclustering.com/act_kb/replacing-a-disk-with-megacli/ Replacing a disk with megacli]
*[https://www.advancedclustering.com/act_kb/replacing-a-disk-with-megacli/ Replacing a disk with megacli]


=Drive mappings=
Shown as Disk0 (Slot number 0) by megacli


Enclosure Device ID: 10
= Drive mappings =
Slot Number: 0
 
Enclosure position: 0
*[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]
Device Id: 13
 
Sequence Number: 11
Shown as Disk0 (Slot number 0) by megacli
Media Error Count: 0
 
Other Error Count: 0
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
Inquiry Data:         X9O1S0V1S5HHTOSHIBA HDWD240                         KQ000A
 
In smart it's


In smart it's
  /dev/bus/0 -d sat+megaraid,13
  /dev/bus/0 -d sat+megaraid,13


=Commands=
=Commands=

Revision as of 12:39, 18 November 2020

Megaraid command line tool


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

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/