RAID Card Battery

 

 

 


Battery

 

iBBU = Intelligent Battery Backup Unit

BatteryType: iBBU08

Model: BAT1S1P(Device Name)

For MegaRaid 9260-8i 9261-8i 9280-8i

Battery mode(Mode Of Operation):

  • mode_1: 12 hours @45C retention with a transparent learn cycle and best service life
    (Estimated service life: 5yrs)
  • mode_2: 12 hours @55C
    (Estimated service life: 3yrs)
  • mode_3: 24 hours retention with a transparent learn cycle and a balanced service life
    (Estimated service life: 3yrs)
  • mode_4 (Default): 48 hours @45C retention with a non-transparent learn cycle and a moderate service life
    (Estimated service life: 3yrs)

Battery status

MegaCli64 -AdpBbuCmd -a0 | less

  1. -GetBbuStatus
  2. -GetBbuCapacityInfo
  3. -GetBbuDesignInfo
  4. -GetBbuProperties

MegaCli64 -AdpBbuCmd -GetBbuStatus -a0

BBU status for Adapter: 0

BatteryType: iBBU08
Voltage: 3947 mV
Current: 529 mA            <- Discharging 時負數
Temperature: 40 C
Battery State     : Non Operational

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
  No space to cache offload               : No
  Pack is about to fail & should be replaced : No
  Cache Offload premium feature required  : No
  Module microcode update required        : No
BBU GasGauge Status: 0x0180
  Relative State of Charge: 31 %
  Charger System State: 1
  Charger System Ctrl: 0
  Charging current: 529 mA
  Absolute state of charge: 21 %
  Max Error: 0 %

  Battery backup charge time : 23 hours

MegaCli64 -AdpBbuCmd -GetBbuCapacityInfo -a0

BBU Capacity Info for Adapter: 0

  Relative State of Charge: 31 %
  Absolute State of charge: 21 %
  Remaining Capacity: 327 mAh
  Full Charge Capacity: 1074 mAh
  Run time to empty: Battery is not being discharged.
  Average time to empty: 39 Min.
  Estimated Time to full recharge: 1 Hour, 59 Min.
  Cycle Count: 112

MegaCli64 -AdpBbuCmd -GetBbuDesignInfo -aALL

BBU Design Info for Adapter: 0

  Date of Manufacture: 11/27, 2012
  Design Capacity: 1500 mAh
  Design Voltage: 4100 mV
  Specification Info: 0
  Serial Number: ????
  Pack Stat Configuration: 0x0000
  Manufacture Name: LS36691
  Device Name: bq27541
  Device Chemistry: LION
  Battery FRU: N/A
  Transparent Learn = 0
  App Data = 0

MegaCli64 -AdpBbuCmd -GetBbuProperties -aALL

BBU Properties for Adapter: 0

  Auto Learn Period: 28 Days
  Next Learn time: May 25 2020 03:32:26
  Learn Delay Interval:0 Hours
  Auto-Learn Mode: Enabled
  BBU Mode = 5

Modify Battery Mode

# 查看電池支援什麼 Mode

MegaCli64 -AdpBbuCmd -getBbumodes -aALL

BbuMode-ID Retention-Time(Hrs) Service-Life(Yrs) Temperature(Dg-Centi) TransparentLearn

     1              12                  5                45               1

     2              12                  3                55               1

     3              24                  3                45               1

     4              48                  3                45               0

     5              48                  1                55               0

# Modify mode using MegaCLI:

# Create a file that has the following entries:

echo 'bbuMode=1' > file.txt

MegaCli64 -AdpBbuCmd -SetBbuProperties -f file.txt -a0

Adapter 0: Set BBU Properties Succeeded.

 * "Charging Status: None" 時才設定到

立即進行 BBU Learn

MegaCli64 -AdpBbuCmd -BbuLearn -a0

Adapter 0: BBU Learn Succeeded.

MegaCli64 -AdpBbuCmd -GetBbuStatus -a0

...
Battery State     : Non Operational
...
  Charging Status              : Discharging
  Learn Cycle Active                      : Yes

Remark: 排程

MegaCli64 -AdpBbuCmd -ScheduleLearn -Dsbl|-Info|[-STARTTIME DDD hh] -aN|-a0,1,2|-aALL

More Info.

What is the Default and the Current policy of the RAID controller depending on the BBU status

MegaCli64 -LDInfo -LAll -aAll | grep "Cache Policy:"

# Force WriteBack if needed

MegaCli64 -LDSetProp -ForcedWB -Immediate -Lall -aAll

# Force the BBU to relearn cycle

MegaCli64 -AdpBbuCmd -BbuLearn -aALL

DRT = Data Retention Time

Transparent and Shorter Learn CyclesThe battery learn cycle is the process

where MegaRAID firmware recalibrates the bat-tery gas gauge with respect to the battery’s chemical capacity

so that controller can decide whether or not the battery can maintain the controller cache for the selected period of time (DRT) in the event of a power failure.

The battery learn cycle partially discharges and then fully charges the battery backup unit.

 


BBU Terminal Logging

 

MegaCli64 -FwTermLog -Dsply -aALL

12/23/14 17:50:10: prDiskStart: starting Patrol Read on PD=00
12/23/14 17:50:10: prDiskStart: starting Patrol Read on PD=01
12/23/14 17:50:10: prDiskStart: starting Patrol Read on PD=02
12/23/14 17:50:10: prDiskStart: starting Patrol Read on PD=03
12/23/14 17:50:11: EVT#03353-12/23/14 17:50:11:  39=Patrol Read started

遇到 Error 後:

12/23/14 17:53:43: EVT#03354-12/23/14 17:53:43: 113=Unexpected sense: PD 00(e0x20/s0) Path 1221000000000000, CDB: 4d 00 4d 00 00 00 00 00 20 00, Sense: 5/24/00
12/23/14 17:53:43: Raw Sense for PD 0: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00

解釋

位置: "PD 00(e0x20/s0)"                           # Disk0, enclosure 0x20 ,slot 0:

Address: "Path 1221000000000000"         # SAS Address of the drive:

Command: "CDB: 4d 00 4d 00 00 00 00 00 20 00"

actual fault: "Sense: 5/24/00"

List_of_SCSI_commands - "CDB: 4d 00 4d 00 00 00 00 00 20 00"

http://en.wikipedia.org/wiki/SCSI_command#List_of_SCSI_commands

 

Type of error/actual fault - "Sense: 5/24/00"

http://en.wikipedia.org/wiki/Key_Code_Qualifier

詳見:

http://datahunter.org/megacli#terminal_logging

 


sg_logs

 

access log pages with SCSI LOG SENSE command

This utility sends a SCSI LOG SENSE command to the DEVICE and  then outputs the response.

The LOG SENSE command is used to fetch log pages.

Known log pages are  decoded  by  default.  When  the  --reset  and/or --select  option  is  given then a SCSI LOG SELECT command is issued to reset parameters.

http://manpages.ubuntu.com/manpages/trusty/man8/sg_logs.8.html

Format:

http://www.bustrace.com/bustrace9/sas/log_sense_supported_pages.htm