STEVE HARVEY ON HAVING BIG IDEAS
The Dell Community has contributed: 9380 ideas | promoted 642163 times | 71613 comments

How IdeaStorm Works:

Post Promote Discuss See
400

Leverage LSI to Open Source MegaCli

400 points posted to Servers and Storage by jeremycole 06/06/07

We are professionals. We love Linux. We love Dell.

Dell makes some awesome and affordable hardware. Many new Dell machines have the PERC 5/i SAS RAID controller, which is a rebranded LSI MegaRAID SAS.

LSI makes some nice RAID cards. Dell likes LSI. Dell made a deal with LSI to provide the chips for their fancy new PERC 5/i cards.

We buy machines with these cards in them. We need to monitor our RAIDs, rebuild them, and do all manner of other maintenance tasks. We do not expect LSI to provide perfect tools. LSI is a hardware vendor, and it's understandable that they provide terrible *software*. What is NOT understandable, though, is why LSI's terrible tools are closed source.

What is further incomprehensible is why Dell is willing to accept this situation on behalf of their enterprise customers. Has anyone from Dell even tried to use the tools LSI provides, and Dell recommends, to manage a RAID array on Linux?

MegaCli is the worst command-line utility I have ever seen, bar none. But, we don't expect LSI to make it better, we expect LSI to OPEN SOURCE it. That way we software professionals can spend our own time to make them better. We need better tools. We are willing to work for free. Give us the source, or give us good documentation, but give us something.

We're willing to provide infinite amounts of value to both Dell and LSI. Dell has enough clout with LSI to make this happen. Please make it happen.

Signed,

Jeremy Cole
Open Source Database Guy

mistern
06/06/07
  1. Is their closed-source tool for Linux?
  2. Is this hardware or software RAID? (Sorry for the dumb question.)
jeremycole
06/06/07
Hi mistern,

1. It's actually for Windows and Linux, but we primarily care about Linux.
2. Hardware RAID. The PERC 5/i controller in the PowerEdge servers (such as the 2950).
mistern
06/06/07
Yeah, I guess saying "Some customers requested that you open source your tools, just wanted to inform you" would be acceptable to Dell.
brianlmoon
06/06/07
It is hardware raid. It is really good hardware raid. We have been using LSI RAID in Dell and non-dell machines for years. They are top notch. We have tried other stuff and it is not as nice.
antibozo
08/21/07
I've just created a new project on sourceforge for code I wrote for Linux to directly query PERCs. This allows dumping the configuration, inspecting error counts, initiating device self-tests (very useful), inspecting SCSI log sense pages (media error counts, disk temperature sensors, self-test logs), and performing general health checks on PERCs from the PERC2 through PERC5 models. It may work for other LSI megaraid adapters as well, but this is untested. This code should be able to serve as a basis for replacing dellmgr and MegaCli if you wish to contribute. Currently it only queries adapters; it does not have reconfiguration features.

I use this code to perform nightly health checks on my PERCs so I can get advance notice of any media errors or battery problems, and I receive a nightly email containing the current RAID config for documentation purposes.

The code should be considered beta code, especially the SAS support, but please try it out and let me know how it works for you. It builds on RHEL 3, 4, 5, and Debian Etch, possibly on other targets without too much trouble.

The sourceforge project is new and I haven't uploaded any documentation yet, but there is a detailed README and fairly explicit help in the program. The URL for the sourceforge project

http://sourceforge.net/projects/megactl
joshuadfranklin
12/05/07
Another possibility would be ioctl passthroughs like 3ware does for smartctl and smartd.
romulus
Feb 22
hi, I've downloaded megactl on sourceforge (binary & package) but I don't know wchich one I can install and how to install it. Does anyone have any recommendations or notes on this topic?

Anything is appreciated
Please log in to post a comment