[CentOS] [OT/HW] hardware raid -- comment/experience with 3Ware

Wed Mar 6 21:40:12 UTC 2013
John R Pierce <pierce at hogranch.com>

On 3/6/2013 1:05 PM, Gordon Messmer wrote:
> I don't know whether or not there's any noteworthy performance
> difference.  MegaRAID cards have not been as prone to failure in my
> experience.  The management software is definitely inferior.

megacli doth sucketh mightily, but its a little less annoying when you 
realize that A) the -'s are all optional (so don't use them) and B) the 
commands are case independent and I find them considerably less annoying 
to type as all lower case.

so..  this

|megacli cfgldadd 
r6||||[||20||:||0||,||20||:||1||,||20||:||2||,||20||:||3||,||20||:||4||,||20||:||5||,||20||:||6||,||20||:||7||,||20||:||8||,||20||:||9||,||20||:||10||] 
a0|
|m||egacli pdhsp set physdrv[||20||:||11||,20:12||] a0

instead of...

|
|MegaCli64 -CfgLdAdd 
-r6||[||20||:||0||,||20||:||1||,||20||:||2||,||20||:||3||,||20||:||4||,||20||:||5||,||20||:||6||,||20||:||7||,||20||:||8||,||20||:||9||,||20||:||10||] 
-a0|
||MegaCli64 -P|dHsp -Set -PhysDrv[||20||:||11||,||20:12||||] -a0|

(where megacli is a symlink to /path/to/MegaCli64 ...)

also I found a python script online called megaclisas-status and 
modified it to better suit my needs, this gives a MUCH nicer output for 
drive status than the native commands...

# lsi-raidinfo
-- Controllers --
-- ID | Model
c0 | LSI MegaRAID SAS 9261-8i

-- Volumes --
-- ID | Type | Size | Status | InProgress
volume c0u0 | RAID1 1x2 | 2727G | Optimal | None
volume c0u1 | RAID6 1x8 | 16370G | Optimal | None
volume c0u2 | RAID6 1x8 | 16370G | Optimal | None

-- Disks --
-- Encl:Slot | vol-span-unit | Model | Status
disk 8:0 | 0-0-0 | Z291VTS5ST33000650NS 0003 | Online, Spun Up
disk 8:1 | 0-0-1 | Z291VTRPST33000650NS 0003 | Online, Spun Up
disk 8:2 | 1-0-0 | Z291VTKWST33000650NS 0003 | Online, Spun Up
disk 8:3 | 1-0-1 | Z291VT9YST33000650NS 0003 | Online, Spun Up
disk 8:4 | 1-0-2 | Z291VTT6ST33000650NS 0003 | Online, Spun Up
disk 8:5 | 1-0-3 | Z291VT6CST33000650NS 0003 | Online, Spun Up
disk 8:6 | 1-0-4 | Z291VTLAST33000650NS 0003 | Online, Spun Up
disk 8:7 | 1-0-5 | Z291VTK1ST33000650NS 0003 | Online, Spun Up
disk 8:8 | 1-0-6 | Z291VTNGST33000650NS 0003 | Online, Spun Up
disk 8:9 | 1-0-7 | Z291VTRAST33000650NS 0003 | Online, Spun Up
disk 8:10 | 2-0-0 | Z291VV05ST33000650NS 0003 | Online, Spun Up
disk 8:11 | 2-0-1 | Z291VTW1ST33000650NS 0003 | Online, Spun Up
disk 8:12 | 2-0-2 | Z291VTRLST33000650NS 0003 | Online, Spun Up
disk 8:13 | 2-0-3 | Z291VTRXST33000650NS 0003 | Online, Spun Up
disk 8:14 | 2-0-4 | Z291VSZGST33000650NS 0003 | Online, Spun Up
disk 8:15 | 2-0-5 | Z291VSW1ST33000650NS 0003 | Online, Spun Up
disk 8:16 | 2-0-6 | Z291VTB5ST33000650NS 0003 | Online, Spun Up
disk 8:17 | 2-0-7 | Z291VSX8ST33000650NS 0003 | Online, Spun Up
disk 8:18 | x-x-x | Z291VTS7ST33000650NS 0003 | Hotspare, Spun down
disk 8:19 | x-x-x | Z291VT3HST33000650NS 0003 | Hotspare, Spun down


along with another script that runs this and emails alerts if there's 
any bad drive or volume status.




-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast