msgbartop
MAC OS X, Linux, Windows and other IT Tips and Tricks
msgbarbottom

11 Feb 16 Checking the Health of LSI Logic / Symbios Logic MegaRAID SAS 2108 RAID Controller

Introduction: This HowTo show how to check the health of Hard Disks connected to a ‘LSI Logic/Symbios Logic MegaRAID SAS 2108’ RAID controller.

We look for its presence in the system:
lspci | grep RAID
Example Result:
01:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] (rev 05)
Bingo!, we can work with this one.

Version 1

Sources:
https://wiki.debian.org/LinuxRaidForAdmins
http://hwraid.le-vert.net/wiki/DebianPackages
We add the repository:
echo "deb http://hwraid.le-vert.net/debian wheezy main" >> /etc/apt/sources.list
… get its gpg key and install the tool.
wget -O - http://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key | apt-key add -
apt-get install megactl

Maybe we want to learn a bit how to use it?
man megasasctl
Well..we are in a hurry, so we ask the program for the current status.
megasasctl
Result Example:
a0 LSI MegaRAID SAS 9260-4i encl:1 ldrv:1 batt:FAULT, module missing, pack missing, charge failed
a0d0 3725GiB RAID 1 1x2 optimal
a0e252s0 3726GiB a0d0 online
a0e252s1 3726GiB a0d0 online

Now we do a health check without battery check this time.
megasasctl -HB
The result should be empty!

Version 2

Source:
wget http://www.ipfusions.com/setup/MegaCli-8.07.07-1.noarch.rpm
aptitude install alien
alien MegaCli-8.07.07-1.noarch.rpm
dpkg -i megacli_8.07.07-2_all.deb
dpkg -L megacli

Now we ask for the status:
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aALL
Result example:
Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name :
RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0
Size : 3.637 TB
Sector Size : 512
Is VD emulated : Yes
Mirror Data : 3.637 TB
State : Optimal
Strip Size : 256 KB
Number Of Drives : 2
Span Depth : 1
Default Cache Policy: WriteBack, ReadAhead, Direct, Write Cache OK if Bad BBU
Current Cache Policy: WriteBack, ReadAhead, Direct, Write Cache OK if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disk's Default
Encryption Type : None
Bad Blocks Exist: No
Is VD Cached: No
.
Exit Code: 0x00

State: should be Optimal !

Leave a Reply

%d bloggers like this: