How to mange controller raid with MegaCli over vmware esxi

xseries 2350 M4  + vmware esxi 5.1
Donwload megacli software from ibm site

How to install?

You need have active ssh connection to the esxi server 
Install to esxi server :

esxcli software vib install /tmp/vmware-esx-MegaCli-8.04.07.vib –no-sig-check

(The installation probably need put the host in manintenece mode and reboot server)

How to use?

Go to /opt/lsi/MegaCli/ and run ./MegaCli with option :

Check the status all of HD:

./MegaCli -PDList -aALL

or single HD

./MegaCli -PDInfo -PhysDrv [E:S] -aALL          (E is the enclosure and is the slot)

Download the log of controller:

./MegaCli -AdpEventLog -GetEvents -f events.log -aALL && cat event.log

Show info configuration:

./MegaCli -AdpAllInfo -aALL

Show controller configuration:

./MegaCli -CfgDsply -aALL

Battery status:

./MegaCli -AdpBbuCmd -aALL

Show rebuild status:

./MegaCli -PDRbld -ShowProg -PhysDrv [E:S] -aALL

And more info:

./MegaCli -h

 
How to mange controller raid with MegaCli over vmware esxi

Find serial number P2000 G3 HP

Use telnet or serial cable to connect

xxx.xxx.xxx.xxx login: admin
Password:

HP StorageWorks MSA Storage P2000 G3 iSCSI
System Name: SANxxx01
System Location: xxxxxxxx
Version: TS240P004-02
# show enclosure-status
Chassis                          Vendor   Product ID       CPLD EMP A CH:ID  Rev      EMP B CH:ID  Rev      WWPN
  Status
—————————————————————————————————————————–
2S6249C294                       HP       SPS-CHASSIS      22         00:031 2018           01:031 2018     500c0ff015fa2e3c
  OK
—————————————————————————————————————————–
Type     #  Status    FRU P/N      FRU S/N              Add’l Data
——————————————————————————-
FAN      01 OK        592267-002   CN8245T302           —
FAN      02 OK        592267-002   CN8245T303           —
PSU      01 OK        592267-002   CN8245T302           —
PSU      02 OK        592267-002   CN8245T303           —
Temp     01 OK        BK829B       CN8243M044           temp=41 C

Find serial number P2000 G3 HP

Show configuration and status HP raid esxi 5.1

Use iso esxi 5.1  customized HP

~ # /opt/hp/hpacucli/bin/hpacucli
HP Array Configuration Utility CLI 9.40.12.0
Detecting Controllers…Done.
Type “help” for a list of supported commands.
Type “exit” to close the console.

=> ctrl all show config

Smart Array E200i in Slot 0 (Embedded)    (sn: QT7AMV7298     )

   array A (SAS, Unused Space: 0  MB)

      logicaldrive 1 (558.7 GB, RAID 5, OK)

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)
      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 300 GB, OK)

Show configuration and status HP raid esxi 5.1