SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


Sidebar

Sponsor:

Would you like to sponsor this site?
Or buy me a beer?:


Recently Changed Pages:

View All Pages
View All Q Pages


View All Tags


Sign up for Q to post comments.





WIKI Disclaimer: As with most other things on the Internet, the content on this wiki is not supported. It was contributed by me and is published “as is”. It has worked for me, and might work for you.
Also note that any view or statement expressed anywhere on this site are strictly mine and not the opinions or views of my employer.


Terms And Conditions for Q users


Pages with comments

PageDateDiscussionTags
2019/05/01 14:08 2 Comments
2019/03/15 16:02 1 Comment
2019/03/15 16:02 1 Comment
2019/03/15 16:02 3 Comments
2017/04/20 15:28 1 Comment
2017/04/20 15:23 1 Comment
2017/04/19 14:44 1 Comment
2017/04/17 20:10 1 Comment
2017/04/17 20:07 1 Comment
2017/04/17 19:58 1 Comment
2017/04/17 19:52 1 Comment

View All Comments

megacli

MegaCLI Usage

LSI MegaCLI -- Check For Failed Raid Controller Battery

701590_rusty_batteryThere are several tools that you can use to monitor and configure and LSI SAS controller, however as I have found, some are easier than others to use and some to not always display the correct information.

In my case my controller is a SAS 9260-8i, and when building a server I always make sure that I install the MegaRaid Storage Manager gui for configuring disks and setting up email alerts. However I have often found that this tool is sometimes confusing to use for other tasks so I also make sure that I install the MegaCLI (command line interface). Both utilities can be downloaded directly from LSI here.

MegaRaid Storage Manager installs to /usr/local/MegaRAID Storage Manager, while the cli installs via rpm to /opt/MegaRAID/MegaCli.

Anyway to check the battery status run the following (note i am running 64 bit os)

>./MegaCli64 -AdpBbuCmd -aAll

Your output will be lengthy - but look for the line below to know if you need to replace your BBU.

Battery Replacement required            : Yes

Two additonal usefully commands are:

    megacli -AdpAllInfo -aALL lists all the adapters in the machine
    megacli -PDList -aALL lists all disks and enclosures

Note that there is an open source CLI called Megactl, and while its quick and easy to use to see a quick list of your disks and their statuses, its not shown itself to be accurate when it comes to detecting whether or not a battery has failed. You can get it here

Additonal Megacli command can be found here; https://twiki.cern.ch/twiki/bin/view/FIOgroup/DiskRefPerc
sjoerd@solaris:~$ sudo /opt/MegaRAID/CLI/MegaCli -AdpBbuCmd -aAll

BBU status for Adapter: 0

BatteryType: iTBBU3
Voltage: 4090 mV
Current: 0 mA
Temperature: 26 C

BBU Firmware Status:

  Charging Status              : None
  Voltage                      : OK
  Temperature                  : OK
  Learn Cycle Requested        : No
  Learn Cycle Active           : No
  Learn Cycle Status           : OK
  Learn Cycle Timeout          : No
  I2c Errors Detected          : No
  Battery Pack Missing         : No
  Battery Replacement required : No
  Remaining Capacity Low       : No
  Periodic Learn Required      : No
  Transparent Learn            : No

Battery state:

GasGuageStatus:
  Fully Discharged        : No
  Fully Charged           : Yes
  Discharging             : Yes
  Initialized             : Yes
  Remaining Time Alarm    : No
  Remaining Capacity Alarm: No
  Discharge Terminated    : No
  Over Temperature        : No
  Charging Terminated     : No
  Over Charged            : No

Relative State of Charge: 99 %
Charger System State: 49168
Charger System Ctrl: 0
Charging current: 0 mA
Absolute state of charge: 87 %
Max Error: 2 %

BBU Capacity Info for Adapter: 0

Relative State of Charge: 99 %
Absolute State of charge: 87 %
Remaining Capacity: 1058 mAh
Full Charge Capacity: 1066 mAh
Run time to empty: Battery is not being discharged
Average time to empty: Battery is not being discharged
Average Time to full: Battery is not being charged
Cycle Count: 7
Max Error: 2 %
Remaining Capacity Alarm: 120 mAh
Remaining Time Alarm: 10 Min


BBU Design Info for Adapter: 0

Date of Manufacture: 02/22, 2012
Design Capacity: 1215 mAh
Design Voltage: 3700 mV
Specification Info: 33
Serial Number: 237
Pack Stat Configuration: 0x6490
Manufacture Name: LS1121001A
Device Name: 3150401
Device Chemistry: LION
Battery FRU: N/A


BBU Properties for Adapter: 0

Auto Learn Period: 2592000 Sec
Next Learn time: 401331780 Sec
Learn Delay Interval:0 Hours
Auto-Learn Mode: Enabled
BBU status for Adapter: 1

BatteryType: iBBU
Voltage: 3946 mV
Current: 508 mA
Temperature: 28 C

BBU Firmware Status:

  Charging Status              : Charging
  Voltage                      : OK
  Temperature                  : OK
  Learn Cycle Requested        : Yes
  Learn Cycle Active           : No
  Learn Cycle Status           : OK
  Learn Cycle Timeout          : No
  I2c Errors Detected          : No
  Battery Pack Missing         : No
  Battery Replacement required : No
  Remaining Capacity Low       : No
  Periodic Learn Required      : No
  Transparent Learn            : No

Battery state:

GasGuageStatus:
  Fully Discharged        : Yes
  Fully Charged           : No
  Discharging             : No
  Initialized             : Yes
  Remaining Time Alarm    : No
  Remaining Capacity Alarm: Yes
  Discharge Terminated    : No
  Over Temperature        : No
  Charging Terminated     : No
  Over Charged            : No

Relative State of Charge: 6 %
Charger System State: 49168
Charger System Ctrl: 0
Charging current: 512 mA
Absolute state of charge: 6 %
Max Error: 100 %

BBU Capacity Info for Adapter: 1

Relative State of Charge: 7 %
Absolute State of charge: 7 %
Remaining Capacity: 82 mAh
Full Charge Capacity: 1215 mAh
Run time to empty: Battery is not being discharged
Average time to empty: Battery is not being discharged
Average Time to full: 201 min
Cycle Count: 0
Max Error: 100 %
Remaining Capacity Alarm: 120 mAh
Remaining Time Alarm: 10 Min


BBU Design Info for Adapter: 1

Date of Manufacture: 01/08, 2012
Design Capacity: 1215 mAh
Design Voltage: 3700 mV
Specification Info: 33
Serial Number: 129
Pack Stat Configuration: 0x64a0
Manufacture Name: LS1121001A
Device Name: 3150301
Device Chemistry: LION
Battery FRU: N/A


BBU Properties for Adapter: 1

Auto Learn Period: 2592000 Sec
Next Learn time: 0 Sec
Learn Delay Interval:0 Hours
Auto-Learn Mode: Enabled

Exit Code: 0x00

Sources

You could leave a comment if you were logged in.
megacli.txt · Last modified: 2013/12/12 09:25 by sjoerd