From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 9 08:20:05 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5253B1065673 for ; Fri, 9 Sep 2011 08:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2E2A38FC16 for ; Fri, 9 Sep 2011 08:20:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p898K5Bc083094 for ; Fri, 9 Sep 2011 08:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p898K4Gi083093; Fri, 9 Sep 2011 08:20:05 GMT (envelope-from gnats) Resent-Date: Fri, 9 Sep 2011 08:20:05 GMT Resent-Message-Id: <201109090820.p898K4Gi083093@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Garrett Cooper Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE6CF106564A for ; Fri, 9 Sep 2011 08:10:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id A45F98FC18 for ; Fri, 9 Sep 2011 08:10:08 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p898A8rZ077528 for ; Fri, 9 Sep 2011 08:10:08 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p898A848077527; Fri, 9 Sep 2011 08:10:08 GMT (envelope-from nobody) Message-Id: <201109090810.p898A848077527@red.freebsd.org> Date: Fri, 9 Sep 2011 08:10:08 GMT From: Garrett Cooper To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/160581: mfiutil doesn't properly detect dead battery with mfiutil show battery X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 08:20:06 -0000 >Number: 160581 >Category: bin >Synopsis: mfiutil doesn't properly detect dead battery with mfiutil show battery >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 09 08:20:04 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Garrett Cooper >Release: 9.0-BETA1 >Organization: iXsystems, Inc. >Environment: FreeBSD bayonetta.local 9.0-BETA1 FreeBSD 9.0-BETA1 #0 r224946M: Thu Aug 18 10:02:09 PDT 2011 gcooper@bayonetta.local:/usr/obj/usr/src/sys/BAYONETTA amd64 >Description: Long story short, my RAID battery died 2 weeks ago. The controller is reporting the failure, along with the mfiutil cache show command, but mfiutil isn't detecting the correct battery state when running mfiutil show battery. Example: $ sudo mfiutil show battery mfi0: Battery State: Manufacture Date: 9/19/2009 Serial Number: 1022 Manufacturer: LS1111001B Model: 3598301 Chemistry: LION Design Capacity: 1215 mAh Full Charge Capacity: 417 mAh Current Capacity: 397 mAh Charge Cycles: 58 Current Charge: 95% Design Voltage: 3700 mV Current Voltage: 4067 mV Temperature: 40 C Status: normal <-- HERE $ dmesg | grep batt mfi0: 35492 (boot + 4s/0x0008/FATAL) - Battery has failed and cannot support data retention. Please replace the battery mfi0: 35623 (368111183s/0x0008/FATAL) - Battery has failed and cannot support data retention. Please replace the battery $ sudo mfiutil cache mfid0 mfi0 volume mfid0 cache settings: I/O caching: writes and reads write caching: write-back write cache with bad BBU: disabled read ahead: always drive write cache: enabled Cache Disabled Due to Dead Battery MegaCli does though, of course: $ sudo ~/MegaCli -AdpBbuCmd -GetBbuS BBU status for Adapter: 0 BatteryType: iBBU Voltage: 4051 mV Current: 0 mA Temperature: 40 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 : Yes Remaining Capacity Low : Yes 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: 100 % Charger System State: 49168 Charger System Ctrl: 0 Charging current: 0 mA Absolute state of charge: 34 % Max Error: 2 % Exit Code: 0x00 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: