Re: LSI MegaRAID management

2018-10-19 Thread Adam Jensen
On 10/18/2018 04:28 PM, Alec Habig wrote:
> LSI puts out an rpm, the one I've got laying around from an old install
> is MegaCli-8.01.06-1.i386.rpm
> 
> Current version is either at your vendor's drivers page, or presumably
> from LSI's own website.
> 
> I run the attached cronjob nightly to get an email report of the array's
> health:
> 
>   Checking RAID status on lepton.d.umn.edu
>   Controller a0:  LSI MegaRAID SAS 9280-16i4e
>   No of Physical disks online : 6
>   Degraded : 0
>   Failed Disks : 0
> 

Many thanks for pointing me in the right direction, fellas! I found
MegaCli-8.07.14-1.noarch.rpm at the Broadcom site (as well as
storcli-1.23.02-1.noarch.rpm and the more elaborate
MegaRAID_Storage_Manager). MegaCli is now installed and seems to be
working. I found an interesting script here:

https://urldefense.proofpoint.com/v2/url?u=https-3A__calomel.org_megacli-5Flsi-5Fcommands.html=DwID-g=gRgGjJ3BkIsb5y6s49QqsA=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A=TdZEcKc4bjRiGil-AXKWkLp2VtZJ4aSrib-AVBDGqOI=YLCgYLIUG-BNXw4jaKOeWmb2HZuLi-z-VxGLUDM3DeA=

It looks like it will make life fairly convenient except my Supermicro
case doesn't have an LED for each disk so I need to sort out somehow the
correlation between a physical drive and the reported "Slot Number". I
don't suppose there is any kind of standard or convention in how an
SFF-8087 cable is labeled or oriented?


Re: LSI MegaRAID management

2018-10-18 Thread Paul Robert Marino
LSI got split up a few years back the SANS went to Netapp and the raids
went to Broadcom you should be able to find the linux tools here
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.broadcom.com_support_download-2Dsearch_-3Fpg-3D-26pf-3D-26pn-3D-26pa-3D-26po-3D-26dk-3DMegaRAID-2B9266-2D4i=DwIFaQ=gRgGjJ3BkIsb5y6s49QqsA=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A=uDeYY5jilEWNuLdEGycqx1u_71fgZyvcULsTNOTcKAM=Bsg1dGwheOxTr3yXGayYaQxGXJKE71J-UO1bF2iGUoI=

As for monitoring you have a few options, the megaraid cli is a nice tool,
storage manager has a nice GUI if i remember correctly, and for remote
monitoring look at the SMIS provider.
SMIS is an industry standard for storage monitoring that works very well,
there are a number of tools and API's that support it too. the down side is
the API isn't documented well for consumption by the general public I wrote
some documentation about it for a perl implementation of a client some
years back here
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_prmarino1_Lib-2DCIM-2DPerl_blob_master_LCP-3A-3AQuery.md=DwIFaQ=gRgGjJ3BkIsb5y6s49QqsA=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A=uDeYY5jilEWNuLdEGycqx1u_71fgZyvcULsTNOTcKAM=i_aZX7GqrXEWbXaESR5LtyXPYd9Q0TO8Sh91mxMYFD4=
 the
documentation on how the queries  work  should work for any WBEM/CIM client
and for any subset including SMIS and WMI.
when you get down to it CIM (the transport protocol for SMIS) is kind of
like a sane version of SNMP where you can get just the raw data but you can
also get the mib from the device you are querying.



On Thu, Oct 18, 2018 at 4:28 PM Alec Habig  wrote:

> LSI puts out an rpm, the one I've got laying around from an old install
> is MegaCli-8.01.06-1.i386.rpm
>
> Current version is either at your vendor's drivers page, or presumably
> from LSI's own website.
>
> I run the attached cronjob nightly to get an email report of the array's
> health:
>
>   Checking RAID status on lepton.d.umn.edu
>   Controller a0:  LSI MegaRAID SAS 9280-16i4e
>   No of Physical disks online : 6
>   Degraded : 0
>   Failed Disks : 0
>
> --
>Alec Habig
>  University of Minnesota Duluth
>  Dept. of Physics and Astronomy
> ha...@neutrino.d.umn.edu
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__neutrino.d.umn.edu_-7Ehabig_=DwIFAw=gRgGjJ3BkIsb5y6s49QqsA=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A=HyUzo1cZ5rJfgEG6gRB-VkwQyw2SU4ItLpmGKJt0coU=y03GGtHkL3OIhqqltEKkMq9SXQz_hTXMYjC7F4USR90=
>


Re: LSI MegaRAID management

2018-10-18 Thread Alec Habig
LSI puts out an rpm, the one I've got laying around from an old install
is MegaCli-8.01.06-1.i386.rpm

Current version is either at your vendor's drivers page, or presumably
from LSI's own website.

I run the attached cronjob nightly to get an email report of the array's
health:

  Checking RAID status on lepton.d.umn.edu
  Controller a0:  LSI MegaRAID SAS 9280-16i4e
  No of Physical disks online : 6
  Degraded : 0
  Failed Disks : 0

-- 
   Alec Habig
 University of Minnesota Duluth
 Dept. of Physics and Astronomy
ha...@neutrino.d.umn.edu
   
https://urldefense.proofpoint.com/v2/url?u=http-3A__neutrino.d.umn.edu_-7Ehabig_=DwIFAw=gRgGjJ3BkIsb5y6s49QqsA=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A=HyUzo1cZ5rJfgEG6gRB-VkwQyw2SU4ItLpmGKJt0coU=y03GGtHkL3OIhqqltEKkMq9SXQz_hTXMYjC7F4USR90=


megamon.sh
Description: Bourne shell script


LSI MegaRAID management

2018-10-18 Thread Adam Jensen
I have a MegaRAID 9266-4i card with four 2TB drives configured as a RAID-5.

$ lspci -vvv | grep -i raid
02:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2208
[Thunderbolt] (rev 05)
Subsystem: LSI Logic / Symbios Logic MegaRAID SAS 9266-4i
Kernel driver in use: megaraid_sas
Kernel modules: megaraid_sas

$ yum list libstoragemgmt\*
Installed Packages
libstoragemgmt.x86_64
libstoragemgmt-megaraid-plugin.noarch
libstoragemgmt-python.noarch
libstoragemgmt-python-clibs.x86_64

Is there a way to monitor the health of the array from a running system?