GithubHelp home page GithubHelp logo

berkeleybop / lsi.sh Goto Github PK

View Code? Open in Web Editor NEW
13.0 8.0 6.0 14 KB

MegaCLI script to configure and monitor LSI raid cards.

License: Creative Commons Attribution Share Alike 4.0 International

Shell 100.00%
lsi raid megacli megaraid mega

lsi.sh's Introduction

lsi.sh

This is a public repository for the lovely wrapper script created by Calomel.org for the LSI hardware RAID command line tool MegaCLI, provided Creative Commons Attribution-ShareAlike 4.0 International license.

Their original description was simply:

Calomel.org 
    https://calomel.org/megacli_lsi_commands.html
    LSI MegaRaid CLI 
    lsi.sh @ Version 0.05

description: MegaCLI script to configure and monitor LSI raid cards.

Building on the shoulder of giants, I have added a little "autoconfiguration", pathing for the default Ubuntu package, and a couple small additions to their script to make dealing with an LSI RAID system a little easier.

I'm hoping by putting this out there to encourage further development and extensions to try and bring MegaCLI under control.

You can specify the MegaCLI path and enclosure by setting the following environment variables:

EnvVar Name Default Description
MEGACLI /opt/MegaRAID/MegaCli/MegaCli64 if detected, else /usr/sbin/megacli Full path to MegaCLI binary
ENCLOSURE Detected by lsi.sh Enclosure number to scan

Environment

I'm working under an Ubuntu/Debian environment, but I think the only real change that anybody on any *nix would need make is in the MegaCli variable at the top of the file.

To get a proper scriptable package for Ubuntu and deployments, I followed the instructions here, from another very useful LSI MegaRAID resource.

An additional shout out to the useful RAID wiki on kernel.org for their information on MegaCli.

lsi.sh's People

Contributors

incebellipipo avatar kltm avatar neomantra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.