Hi,
Has anyone noticed that storcli (version 1.23.02 tested) appears to
support MegaCli's syntax? Does anyone know if this is here to stay?
E.g:
Instead of:
/opt/MegaRAID/MegaCli/MegaCli64 -PDGetNum -a0 -NoLog
You could just use:
/opt/MegaRAID/storcli/storcli64 -PDGetNum -a0 -NoLog
In fact, the syntax compatibility between the two programs seems quite
extensive and I was able to adapt my megaclisas-status utility to drive storcli
just by changing the path.
Details at:
https://github.com/ElCoyote27/hwraid/commit/b57a3d41d780336ad3fc0fa356fb789049b46bf4#diff-9ad7624e74695a8211213f4e55109526
There are a few caveats:
storcli appears to be much more strict about which controllers it will
accept. In my (limited) testing, I wasn't able to make storcli work with
H710's and H730's on RHEL7. The user from Russia who tipped me off to this
compability was using an LSI/Avago 9361-8i HBA, perhaps that's why it
worked for him.
(See: https://github.com/eLvErDe/hwraid/issues/85)
Also, it seems that LSI added (at least) one typo when they backported into
storcli:
# /opt/MegaRAID/MegaCli/MegaCli64 -PDList -a0 -NoLog|egrep -i
Drive.*pos.*tion|head -2
Drive's position: DiskGroup: 0, Span: 0, Arm: 0
Drive's position: DiskGroup: 0, Span: 0, Arm: 1
While on storcli it says the following:
# /opt/MegaRAID/storcli/storcli64 -PDList -a0 -NoLog|egrep -i
Drive.*pos.*tion|head -2
Drive's postion: DiskGroup: 0, Span: 0, Arm: 0
Drive's postion: DiskGroup: 0, Span: 0, Arm: 1
^^^^^^^
So much for grep'ing for output. I've now changed the regexp to:
re.match(r'^Drive.s pos[a-z]*tion: DiskGroup: [0-9]+,.*$'
Refs:
# rpm -qa |egrep -i '(mega|storcl)'
MegaCli-8.07.14-1.noarch
storcli-1.23.02-1.noarch
,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,
Vincent S. Cojot, Computer Engineering. STEP project. _.,-*~'`^`'~*-,._.,-*~
Ecole Polytechnique de Montreal, Comite Micro-Informatique. _.,-*~'`^`'~*-,.
Linux Xview/OpenLook resources page _.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'
http://step.polymtl.ca/~coyote _.,-*~'`^`'~*-,._ [email protected]
They cannot scare me with their empty spaces
Between stars - on stars where no human race is
I have it in me so much nearer home
To scare myself with my own desert places. - Robert Frost
_______________________________________________
Linux-PowerEdge mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/linux-poweredge