Search This Blog


Installing MegaCLI

Finding the Software

Ensure you are using a MegaRAID Controller

lspci -nn | grep RAID
02:00.0 RAID bus controller [0104]: LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] [1000:0079] (rev 04)

Search for "MegaCli Linux"
  1. Click "File Type" > "Management Software" on the left
  2. Download the latest version of MegaCLI

Extracting Necessary Files

  1. Change to temp directory
    1. cd /tmp
  2. Copy the zip to your current location
    1. cp /home/(username)/(path_to_zip)/ .
  3. Unzip the software
    1. unzip (version)
    2. unzip CLI_Lin_(version).zip
    3. unzip

Installing software using RPM

Run the following commands to install the libraries and the MegaCli Binaries
rpm -i Lib_Utils-(version).noarch.rpm
rpm -i MegaCli-(version)

Common Software Commands

After installing the binaries will be located in the following location:

You can copy the binary to your home directory as it is a stand-alone application. Though it may be missing some functionality that is included in the installed libraries.

Display Adapter Status

The following command will give you:

  • Global information/settings on the physical adapter
  • Adapter capabilities (RAID levels, Drive Types)
  • Image/Firmware Revisions
  • Serial Number
  • Product Name
/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aAll

Viewing Logical Disk (RAID Volume) Configuration

The following will show all logical device configuration. All configured RAID arrays will be displayed as well as the options used to configured the arrays.

/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aAll

Viewing Physical Disk Info

The following will give you information about individual drives and provide:

  • SMART Statistics
  • Size
  • Drive Model
  • Link Speed
  • Temperature
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll

No comments:

Post a Comment