PowerEdge: Extracting the RAID-Controller Logs using MegaCLI

Summary: This article explains how to extract RAID controller logs on your Dell system using MegaCli utility by Broadcom (formerly LSI/Avagotech).

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions


 

Reviewing the logs from the RAID controller is an important step when troubleshooting hard drive and RAID-related issues.

Note: The Dell PERCLI Utility has replaced MegaCLI (not supported by Dell) starting with the PERC Series 8 and newer series. See the List of PERC types for Dell EMC systems to identify which series is your PERC controller.
Note: Starting with the PERC11 Series (H750) MegaCLI will no longer work, PERCCLI must be used instead.  PowerEdge: How to Use the PowerEdge Expandable RAID Controller Command-Line Interface Utility

Access the RAID Controller logs with MegaCli in Microsoft Windows, Linux, or VMware operating systems:

Table of content
Extracting the RAID controller logs using MegaCli in Windows operating systems.
Extracting the RAID controller logs using MegaCli in Linux operating systems.
Extracting the RAID Controller logs with MegaCli in VMware ESXi.

 

Extracting the RAID controller logs using MegaCli in Windows operating systems:

To extract the RAID controller logs, perform the following procedure:

  1. Download the MegaCli utilityThis hyperlink is taking you to a website outside of Dell Technologies.  from the Broadcom support site

  2. Extract the downloaded files and copy them to any directory of your installed operating system (for example:  C:\temp\megacli)

  3. From the command prompt in Windows operating systems, navigate to the newly created directory and run any of the following commands:

    Note: Administrative rights are necessary.

    Command

    Action

    MegaCli.exe -FwTermLog -Dsply -aALL > ttylog.txt

    Creates the RAID controller log (ttylog)

    MegaCli.exe -PDList -aALL > disks.txt

    Creates a list with information about the RAID controllers, virtual disks, and hard disks

    MegaCli.exe -LDInfo -LALL -aALL > LDinfo.txt

    Creates a list with information about existing RAID volumes and configurations

    MegaCli.exe -AdpAllInfo -aALL > Adapterinfo.txt

    Creates a list with information about RAID controller settings

    MegaCli.exe -AdpBbuCmd -aALL > Battery.txt

    Creates a detailed list of the battery status of the RAID controller (state of charge, learning cycle, etc.)

    MegaCli.exe -AdpEventLog -IncludeDeleted -f deleted.txt -aALL

    Creates the RAID controller log with all events since the first controller initialization
    (Note: This file is stored in the MegaCLI root folder) 

 

Extracting the RAID controller logs using MegaCli in Linux operating systems:


To extract the PERC logs, perform the following procedure:

  1. Download the MegaCli utilityThis hyperlink is taking you to a website outside of Dell Technologies. from the Broadcom support site

  2. Extract the downloaded files and install them to any directory of your installed operating system (for example:  /tmp/megacli)

  3. From a terminal window in Linux, install the using the following command:

    Note: root privileges are required to install MegaCLI:
    # rpm -i MegaCli-8.07.14-1.noarch.rpm 

     

  4. Then change directory into /opt/MegaRAID/MegaCLI/ and run any of the commands from the table below:

    Command

    Action

    ./MegaCli64 -FwTermLog -Dsply -aALL > /tmp/ttylog.txt

    Creates the RAID controller log (ttylog)

    ./MegaCli64 -PDList -aALL > /tmp/disks.txt

    Creates a list with information about the RAID controllers, virtual disks, and hard disks installed

    ./MegaCli64 -LDInfo -LALL -aALL > /tmp/LDinfo.txt

    Creates a list with information about existing RAID volumes and configurations

    ./MegaCli64 -AdpAllInfo -aALL > /tmp/Adapterinfo.txt

    Creates a list with information about RAID controller settings

    ./MegaCli64 -AdpBbuCmd -aALL > /tmp/Battery.txt

    Creates a detailed list of the battery status of the RAID controller (state of charge, learning cycle, etc.)

    ./MegaCli64 -AdpEventLog -IncludeDeleted -f deleted.txt -aALL

    Creates the RAID controller event log with all events since the first controller initialization
    (Note: This file is saved in the MegaCLI root folder) 

 


Extracting the RAID Controller logs with MegaCli in VMware ESXi:


To extract the RAID Controller logs, perform the following procedure:

  1. Activate SSH using Option 1 or Option 2
    • Option 1: vSphere Client to vCenter
      • Connect using the vSphere Client to the vCenter and the ESX/ESXi host.

      • Select your ESXi host.

      • Then select Configuration and click Security.

      • Click sub-services, then the properties box.

      • Select the SSH - enable option.

    • Option 2: Within ESXi
      • Connect using the IDRAC to the ESXi host (virtual console) or connect directly to the ESXi host.

      • Press F2 -> Troubleshooting Options.

      • Select SSH - enable if it is disabled (Figure 1 (English-only)).

        ESXI Troubleshooting Options ESXI actions drop down menu options 
        Figure: Enabling the SSH

  2. Download the MegaCli utilityThis hyperlink is taking you to a website outside of Dell Technologies. from the Broadcom support site

  3. Extract the downloaded files and copy the vmware-esx-MegaCli-8.07.07.vib in the subfolder Vmware-MN to the ESXi host folder /tmp.

  4. From an SSH console connected to the ESXi host, install the vmware-esx-MegaCli-8.07.07.vib using the following command:

    esxcli software vib install -v=/tmp/vmware-esx-MegaCli-8.07.07.vib --no-sig-check 
  5. From an SSH console switch to the directory /opt/lsi/MegaCLI and run any of the following commands:

    Command

    Action

    ./MegaCli -FwTermLog -Dsply -aALL > /tmp/ttylog.txt

    Creates the RAID controller log (ttylog)

    ./MegaCli -PDList -aALL > /tmp/disks.txt

    Creates a list with information about the RAID controllers, virtual disks, and hard disks installed

    ./MegaCli -LDInfo -LALL -aALL > /tmp/LDinfo.txt

    Creates a list with information about existing RAID volumes and configurations

    ./MegaCli -AdpAllInfo -aALL > /tmp/Adapterinfo.txt

    Creates a list with information about RAID controller settings

    ./MegaCli -AdpBbuCmd -aALL > /tmp/Battery.txt

    Creates a detailed list of the battery status of the RAID controller (state of charge, learning cycle, etc.)

    ./MegaCli -AdpEventLog -IncludeDeleted -f deleted.txt -aALL

    Creates the RAID controller log with all events since the first controller initialization

    Note: The "deleted.txt" file is always stored in the MegaCLI folder.

    Putty console Command output for MegaCLI command 
    Figure: Controller log creation
     

Affected Products

DSS 7500, DSS 9620, PowerEdge C1100, PowerEdge C2100, PowerEdge C5125, PowerEdge C5220, PowerEdge C6100, PowerEdge C6105, PowerEdge C6220, PowerEdge C6220 II, PowerEdge c6320, PowerEdge c6320p, Poweredge FC430, Poweredge FC630, Poweredge FC830 , PowerEdge FD332, PowerEdge FM120x4 (for PE FX2/FX2s), PowerEdge M420, PowerEdge M520, PowerEdge M520 (for PE VRTX), PowerEdge M620, PowerEdge M620 (for PE VRTX), PowerEdge M630, PowerEdge M630 (for PE VRTX), PowerEdge M820, PowerEdge M820 (for PE VRTX), PowerEdge M830, PowerEdge M830 (for PE VRTX), PowerEdge R200, PowerEdge R210, PowerEdge R210 II, PowerEdge R220, PowerEdge R230, PowerEdge R310, PowerEdge R320, PowerEdge R330, PowerEdge R410, PowerEdge R415, PowerEdge R420, PowerEdge R430, PowerEdge R510, PowerEdge R515, PowerEdge R520, PowerEdge R530, PowerEdge R530xd, PowerEdge R610, PowerEdge R620, PowerEdge R630, PowerEdge R710, PowerEdge R715, PowerEdge R720, PowerEdge R720XD, PowerEdge R730, PowerEdge R730xd, PowerEdge R820, PowerEdge R830, PowerEdge R920, PowerEdge R930, PowerEdge T320, PowerEdge T420, PowerEdge T620 ...
Article Properties
Article Number: 000188270
Article Type: How To
Last Modified: 21 Feb 2025
Version:  10
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.