Pages

Friday, November 22, 2013

StorEdge 6180: Battery {0} has expired.

Today a customer called in telling me that one of his batteries for his StorEdge 6180 has expired the lifetime. Since the customer doesn't have any valid support for the storage I deceided to set the lifetime expiration to never. To do this I needed the sscs and service command (package SUNWstkcam, SUNWsefms etc) in my environment. In normal cases these packages are installed to /opt:

# cd /opt
# find . -name "sscs"
./SUNWstkcam/bin/sscs
# find . -name "service"
./SUNWsefms/System/Catalog/service
./SUNWsefms/bin/service


After I've validated that the above commands are available I added the pathes to my PATH variable:

# export PATH=$PATH:/opt/SUNWstkcam/bin:/opt/SUNWsefms/bin

A final check that sscs and service are available:

# which sscs
/opt/SUNWstkcam/bin/sscs
# which service
/opt/SUNWsefms/bin/service


The first thing I needed to do was to list the storages:

# sscs list array
Array: stor01
Array: stor02
...


All field replacable units (fru) for eg. stor01 can be listed as following:

# sscs list -d stor01 fru
Name               FRU         Alarm State   Status  Revision

------------------ ----------- ----- ------- ------- -----------
Tray.85.Battery.A  Battery     -     Enabled OK      N/A
Tray.85.Battery.B  Battery     -     Enabled OK      N/A
...

The above output indicates that storage has two batteries build in (one for each controller). Next I took a look at the state for each battery

# sscs list -d stor01 -t Battery fru Tray.85.Battery.A
...
Availability           : Running/Full Power
Battery Age            : 562 Days
...
Description            : Cache Battery
Element Name           : Tray.85.Battery.A
Element Status         : Optimal
...
Life Remaining         : 608 Days
...
Status                 : OK
Vendor                 : SUN

# sscs list -d stor01 -t Battery fru Tray.85.Battery.B
...
Availability           : Warning
Battery Age            : 1390 Days
...
Description            : Cache Battery
Element Name           : Tray.85.Battery.B
Element Status         : Expired
...
Life Remaining         : 0 Days
...
Status                 : Error
Vendor                 : SUN
...
Sample Description : Battery {0} has expired.
Probable Cause     : The battery has reached the end of it's rated life.
Recommended Action : Replace the battery.


Battery A is OK but battery B has a expired lifetime. The following commands will set the battery lifetime expiration to never for all batteries in the storage:

# service -d stor01 -c set -q nvsram region=0xEE offset=0x2D value=0xFF
Executing the set command on stor01
Completion Status: Success

# service -d stor01 -c set -q nvsram region=0xEE offset=0x2E value=0xFF
Executing the set command on stor01
Completion Status: Success


A final check:

# sscs list -d stor01 -t Battery fru Tray.85.Battery.A
...
Availability           : Running/Full Power
Battery Age            : 1390 Days
...
Description            : Cache Battery
Element Name           : Tray.85.Battery.B
Element Status         : Optimal
...
Life Remaining         : -1 Days
...
Status                 : OK
Vendor                 : SUN

# sscs list -d stor01 -t Battery fru Tray.85.Battery.B
...
Availability           : Running/Full Power
Battery Age            : 562 Days
...
Description            : Cache Battery
Element Name           : Tray.85.Battery.A
Element Status         : Optimal
...
Life Remaining         : -1 Days
...
Status                 : OK
Vendor                 : SUN


And the battery lifetime expiration is set to never (-1).

http://docs.oracle.com/cd/E19373-01/