MegaCli64 Cheat Sheet: Difference between revisions
Line 375: | Line 375: | ||
== Configuration Related == | == Configuration Related == | ||
{|class="wikitable sortable" | |||
!Command | |||
!Description | |||
!Syntax | |||
|- | |||
|Add RAID 0,1,5, or 6 Configuration | |||
|Adds a RAID level 0, 1, 5, or 6 configuration to a specified adapter. | |||
|class="code" style="white-space: nowrap;"|MegaCli64 CfgLDAdd R0|R1|R5|R6[E0:S0,E1:S1,...] [WT | WB] [NORA | RA | ADRA]<br /> | |||
[Direct | Cached] [CachedBadBBU|NoCachedBadBBU] [szXXXXXXXX [szYYYYYYYY [... ]]]<br /> | |||
[strpszM] [Hsp[E5:S5,...]] [afterLdX] aN | |||
|- | |||
|Add RAID 10,50, or 60 Configuration | |||
|Creates a RAID level 10, 50, or 60 (spanned) configuration from the specified arrays. Multiple arrays are specified using the ArrayX[E0:S0,...] option. | |||
|class="code" style="white-space: nowrap;"|MegaCli64 CfgSpanAdd aN|a0,1,2|aALL R10|R50|R60<br /> | |||
Array0[E0:S0,E1:S1,...] Array1[E0:S0,E1:S1,...] [...] [WT | WB] [NORA | RA | ADRA]<br /> | |||
[Direct | Cached] [CachedBadBBU|NoCachedBadBBU] [szXXXXXXXX [szYYYYYYYY [... ]]]<br /> | |||
[strpszM] [afterLdX] aN | |||
|- | |||
|Add virtual drive for application type | |||
|Add virtual drive by specifying application type and group ID | |||
|N/A | |||
|- | |||
|Create virtual drive and a new drive group | |||
|User selects drives for each driveGroup / subgroup. This option is for RAID10, RAID50, and RAID60 only. | |||
|N/A | |||
|- | |||
|Clear Existing Configuration | |||
|Clears the existing configuration. | |||
|class="code" style="white-space: nowrap;"|MegaCli64 CfgClr aN|a0,1,2|aALL | |||
|- | |||
|Save Configuration | |||
|Saves the configuration for the selected adapter(s) to the given filename. | |||
|class="code" style="white-space: nowrap;"|MegaCli64 CfgSave f FileName aN | |||
|- | |||
|Restore Configuration Data from File | |||
|Can store or restore all read and write adapter properties, all read and write properties for virtual disks, and the RAID configuration including hot spares (with some caveates). | |||
|class="code" style="white-space: nowrap;"|MegaCli64 CfgRestore f FileName aN | |||
|} | |||
== Manage Foreign Configuration Information == | |||
{{footer}} | {{footer}} |
Revision as of 22:49, 26 July 2014
Alteeve Wiki :: MegaCli64 Cheat Sheet |
![]() |
Note: All content here is "©2014 LSI Corporation. All rights reserved". This copy is made of reference only and no claim is made by Alteeve's Niche! to any of the referenced material. |
This page is a nearly direct copy of LSI/Avago reference page, as of July 26, 2014, for the MegaCli Linux command line tool.
This copy was made for two reasons;
- The original article was formatted in such a way that the content was hard to read.
- A copy of the content was desired in case of interruption in LSI/Avago's website.
General Commands
Command | Syntax |
---|---|
View Version | MegaCli64 v |
Help | MegaCli64 help|h|? |
Set Adapter Properties
Command | Syntax | Example |
---|---|---|
Cache Flush Interval | MegaCli64 AdpSetProp {CacheFlushInterval val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp CacheFlushInterval 2 a0 |
Rebuild Rate | MegaCli64 AdpSetProp {RebuildRate val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp RebuildRate 75 a0 |
Patrol Read Rate | MegaCli64 AdpSetProp {PatrolReadRate val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp PatrolReadRate 38 a0 |
BGI (BackGround Interval) Rate | MegaCli64 AdpSetProp {BgiRate val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp BgiRate 92 a0 |
CC (Consistency Check) Rate | MegaCli64 AdpSetProp {CCRate val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp CCRate 23 a0 |
Reconstruction Rate | MegaCli64 AdpSetProp {ReconRate val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp ReconRate 15 a0 |
Spinup Drive Count | MegaCli64 AdpSetProp {SpinupDriveCount val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp SpinupDriveCount 2 a0 |
Spinup Delay | MegaCli64 AdpSetProp {SpinupDelay val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp SpinupDelay 10 a0 |
Coercion Mode | MegaCli64 AdpSetProp {CoercionMode val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp CoercionMode 0 a0 |
Predictive Failure Poll Interval | MegaCli64 AdpSetProp {PredFailPollInterval val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp PredFailPollInterval 20 a0 |
Battery Warning Enable/Disable | MegaCli64 AdpSetProp {BatWarnDsbl val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp BatWarnDsbl 0 a0 |
ECC Bucket Size | MegaCli64 AdpSetProp {EccBucketSize val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp EccBucketSize 128 a0 |
ECC Bucket Leak Rate | MegaCli64 AdpSetProp {EccBucketLeakRate val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp EccBucketLeakRate 64 a0 |
Abort Check Consistency on Error | MegaCli64 AdpSetProp {AbortCCOnError val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp AbortCCOnError 0 a0 |
Enable SMART Copyback | MegaCli64 AdpSetProp {SMARTCpyBkEnbl val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp SMARTCpyBkEnbl 0 a0 |
Enable SSD SMART Copyback | MegaCli64 AdpSetProp {SSDSMARTCpyBkEnbl val} aN|a0,1,2|aALL | MegaCli64 AdpSetProp SSDSMARTCpyBkEnble 0 a0 |
Enable NCQ | MegaCli64 AdpSetProp {NCQEnbl} aN|a0,1,2|aALL | MegaCli64 AdpSetProp NCQEnbl a0 |
Disable NCQ | MegaCli64 AdpSetProp {NCQDsbl} aN|a0,1,2|aALL | MegaCli64 AdpSetProp NCQDsbl a0 |
Alarm Control
Command | Syntax | Example |
---|---|---|
Alarm Enable | MegaCli64 AdpSetProp AlarmEnbl aN|a0,1,2|aALL | MegaCli64 AdpSetProp AlarmEnbl a0 |
Alarm Disable | MegaCli64 AdpSetProp AlarmDsbl aN|a0,1,2|aALL | MegaCli64 AdpSetProp AlarmDsbl a0 |
Alarm Silence | MegaCli64 AdpSetProp AlarmSilence aN|a0,1,2|aALL | MegaCli64 AdpSetProp NCQDsbl a0 |
View Adapter Properties
Command | Syntax | Example |
---|---|---|
View number of adapters | MegaCli64 adpcount | MegaCli64 adpcount |
Cache Flush Interval | MegaCli64 AdpGetProp CacheFlushInterval aN|a0,1,2|aALL | MegaCli64 AdpGetProp CacheFlushInterval a0 |
Rebuild Rate | MegaCli64 AdpGetProp RebuildRate aN|a0,1,2|aALL | MegaCli64 AdpGetProp RebuildRate a0 |
Patrol Read Rate | MegaCli64 AdpGetProp PatrolReadRate aN|a0,1,2|aALL | MegaCli64 AdpGetProp PatrolReadRate a0 |
BGI (BackGround Interval) Rate | MegaCli64 AdpGetProp BgiRate aN|a0,1,2|aALL | MegaCli64 AdpGetProp BgiRate a0 |
CC (Consistency Check) Rate | MegaCli64 AdpGetProp CCRate aN|a0,1,2|aALL | MegaCli64 AdpGetProp CCRate a0 |
Reconstruction Rate | MegaCli64 AdpGetProp ReconRate aN|a0,1,2|aALL | MegaCli64 AdpGetProp ReconRate a0 |
Spinup Drive Count | MegaCli64 AdpGetProp SpinupDriveCount aN|a0,1,2|aALL | MegaCli64 AdpGetProp SpinupDriveCount a0 |
Spinup Delay | MegaCli64 AdpGetProp SpinupDelay aN|a0,1,2|aALL | MegaCli64 AdpGetProp SpinupDelay a0 |
Coercion Mode | MegaCli64 AdpGetProp CoercionMode aN|a0,1,2|aALL | MegaCli64 AdpGetProp CoercionMode a0 |
Predictive Failure Poll Interval | MegaCli64 AdpGetProp PredFailPollInterval aN|a0,1,2|aALL | MegaCli64 AdpGetProp PredFailPollInterval a0 |
Battery Warning Enable/Disable | MegaCli64 AdpGetProp BatWarnDsbl aN|a0,1,2|aALL | MegaCli64 AdpGetProp BatWarnDsbl a0 |
ECC Bucket Size | MegaCli64 AdpGetProp EccBucketSize aN|a0,1,2|aALL | MegaCli64 AdpGetProp EccBucketSize a0 |
ECC Bucket Leak Rate | MegaCli64 AdpGetProp EccBucketLeakRate aN|a0,1,2|aALL | MegaCli64 AdpGetProp EccBucketLeakRate a0 |
Abort Check Consistency on Error (CC) | MegaCli64 AdpGetProp AbortCCOnError aN|a0,1,2|aALL | MegaCli64 AdpGetProp AbortCCOnError a0 |
Alarm Status (Enabled/Disabled/Silenced) | MegaCli64 AdpGetProp AlarmDsply aN|a0,1,2|aALL | MegaCli64 AdpGetProp AlarmDsply a0 |
All Adapter Information | MegaCli64 AdpAllInfo aN|a0,1,2|aALL | MegaCli64 AdpAllInfo a0 |
Get Adapter Time | MegaCli64 AdpGetTime aN|a0,1,2|aALL | MegaCli64 AdpGetTime a0 |
Set Adapter Time | MegaCli64 AdpSetTime yyyymmdd hh:mm:ss aN | MegaCli64 AdpSetTime 20071210 9:33:00 a0 |
Adapter Set Verify | MegaCli64 AdpSetTime yyyymmdd hh:mm:ss aN | MegaCli64 AdpSetTime 20071210 9:33:00 a0 |
Adapter BIOS State / Boot Options
Command | Syntax | Example |
---|---|---|
Enable BIOS | MegaCli64 AdpBIOS Enbl aN|a0,1,2|aALL | MegaCli64 AdpBIOS Enbl a0 |
Disable BIOS | MegaCli64 AdpBIOS Dsbl aN|a0,1,2|aALL | MegaCli64 AdpBIOS Dsbl a0 |
Set BIOS to Stop on Error | MegaCli64 AdpBIOS SOE aN|a0,1,2|aALL | MegaCli64 AdpBIOS SOE a0 |
Set BIOS to Bypass Error | MegaCli64 AdpBIOS BE aN|a0,1,2|aALL | MegaCli64 AdpBIOS BE a0 |
Display BIOS State | MegaCli64 AdpBIOS Dsply aN|a0,1,2|aALL | MegaCli64 AdpBIOS Dsply a0 |
Set Boot Drive | MegaCli64 AdpBootDrive {Set Lx} aN|a0,1,2|aALL | MegaCli64 AdpBIOS Dsply a0 |
Display Boot Drive | MegaCli64 AdpBootDrive Get aN|a0,1,2|aALL | MegaCli64 AdpBootDrive Get a0 |
Adapter's Auto Rebuild Settings
![]() |
Note: This appears to be missing in the source document. |
Command Type
These sections are broken out into sections based on the 'Command Type' column in the source document. This breakout was done to preserve horizontal screen real-estate and to make index navigation more useful.
Server / System
Command | Description | Syntax |
---|---|---|
Show system overview | Displays a summary of all the controllers that are present in the server. | MegaCli64 adpCount |
Download firmware | CLI will attempt to download fw to all compatible controllers that supports the image. By default CLI with check signature and version. | MegaCli64 AdpFwFlash f filename [NoSigChk] [NoVerChk] aN|a0,1,2|aALL |
Flash FW in Mode 0 with ROM file | Flashes the firmware in Mode 0 with the ROM file listed. For Mode 0 flash, the adapter number is not valid. | MegaCli64 AdpM0Flash f filename |
Patrol Read
Command | Description | Syntax |
---|---|---|
Show Patrol Read rate | Displays patrolreadrate? | MegaCli64 AdpGetProp PatrolReadRate aN|a0,1,2|aALL |
Get Properties of Patrol Read | Displays patrol read properties?? | MegaCli64 AdpGetProp {PatrolReadRate val} aN|a0,1,2|aALL |
Get Status of Patrol Read | Displays patrol read status. | N/A |
Set Patrol Read Options | Sets Patrol Read options on a single adapter, multiple adapters, or all adapters (X = single controller). See Note (4). | MegaCli64 AdpPR Dsbl|EnblAuto|EnblMan|Start|Stop|Info| SSDPatrolReadEnbl | SSDPatrolReadDsbl | {SetDelay Val}|{SetStartTime yyyymmdd hh}|{maxConcurrentPD Val} aN|a0,1,2|aALL |
Start Patrol Read | Specify start patrol read option. | see above |
Stop Patrol Read | Specify stop patrol read option. | see above |
Set Patrol Read Delay Interval | Sets the time between Patrol Read iterations on a single adapter, multiple adapters, or all adapters. |
MegaCli64 AdpPRSetDelay Val aN|a0,1,2|aALL Val |
BIOS Related
Command | Description | Syntax |
---|---|---|
Set Bootable Virtual Disk ID | Sets the virtual disk as bootable so that during the next reboot, the BIOS will look for a boot sector in the specified virtual disk. | MegaCli64 AdpBootDrive {Set {Lx | physdrv[E0:S0]}} aN|a0,1,2|aALL |
Show Bootable Virtual Disk ID | Displays the bootable virtual disk ID. | MegaCli64 AdpBootDrive Get aN|a0,1,2|aALL |
Set BIOS Status Options | Sets BIOS options. Enables, Disables, or display BIOS status, or stop on error during POST, or bypass errors during POST. | MegaCli64 AdpBIOS Enbl | Dsbl | Dsply | SOE | BE aN|a0,1,2|aALL |
BBU
Command | Description | Syntax |
---|---|---|
Display BBU Information | Displays complete information about the BBU, such as status, capacity information, design information, and properties. | MegaCli64 AdpBbuCmd aN|a0,1,2|aALL |
Display Current BBU Properties | Displays current BBU properties of auto learn period, next learn time, learn delay interval, and autolearn mode. | MegaCli64 AdpBbuCmd GetBbuProperties aN|a0,1,2|aALL |
Display BBU Status Information | Displays complete information about the BBU status, such as the temperature and voltage. | MegaCli64 AdpBbuCmd GetBbuStatus aN|a0,1,2|aALL |
Display BBU Capacity | Displays BBU capacity information. See Note (6). | MegaCli64 AdpBbuCmd GetBbuCapacityInfo aN|a0,1,2|aALL |
Set BBU Learn Delay interval | Sets BBU Property of Learn Delay Interval | MegaCli64 AdpBbuCmd SetBbuProperties f <fileName> aN|a0,1,2|aALL |
Start BBU Learning Cycle | Starts the learning cycle on the BBU. No parameter is needed for this option. | MegaCli64 AdpBbuCmd BbuLearn aN|a0,1,2|aALL |
Place Battery in LowPower Storage Mode | Places the battery in LowPower Storage mode. The battery automatically exits this state after 5 seconds. | MegaCli64 AdpBbuCmd BbuMfgSleep aN|a0,1,2|aALL |
Seal EEPROM Write ccess. | Seal the gas guage EEPROM write access. This opcode is should only be used at manufacturing time. | MegaCli64 AdpBbuCmd BbuMfgSeal aN|a0,1,2|aALL |
Configuration Related
Command | Description | Syntax |
---|---|---|
Add RAID 0,1,5, or 6 Configuration | Adds a RAID level 0, 1, 5, or 6 configuration to a specified adapter. | MegaCli64 CfgLDAdd R0|R1|R5|R6[E0:S0,E1:S1,...] [WT | WB] [NORA | RA | ADRA] [Direct | Cached] [CachedBadBBU|NoCachedBadBBU] [szXXXXXXXX [szYYYYYYYY [... ]]] |
Add RAID 10,50, or 60 Configuration | Creates a RAID level 10, 50, or 60 (spanned) configuration from the specified arrays. Multiple arrays are specified using the ArrayX[E0:S0,...] option. | MegaCli64 CfgSpanAdd aN|a0,1,2|aALL R10|R50|R60 Array0[E0:S0,E1:S1,...] Array1[E0:S0,E1:S1,...] [...] [WT | WB] [NORA | RA | ADRA] |
Add virtual drive for application type | Add virtual drive by specifying application type and group ID | N/A |
Create virtual drive and a new drive group | User selects drives for each driveGroup / subgroup. This option is for RAID10, RAID50, and RAID60 only. | N/A |
Clear Existing Configuration | Clears the existing configuration. | MegaCli64 CfgClr aN|a0,1,2|aALL |
Save Configuration | Saves the configuration for the selected adapter(s) to the given filename. | MegaCli64 CfgSave f FileName aN |
Restore Configuration Data from File | Can store or restore all read and write adapter properties, all read and write properties for virtual disks, and the RAID configuration including hot spares (with some caveates). | MegaCli64 CfgRestore f FileName aN |
Manage Foreign Configuration Information
Any questions, feedback, advice, complaints or meanderings are welcome. | |||
Alteeve's Niche! | Alteeve Enterprise Support | Community Support | |
© 2025 Alteeve. Intelligent Availability® is a registered trademark of Alteeve's Niche! Inc. 1997-2025 | |||
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions. |