UNSOLVED

Mysticeti

updated

20 years ago

M

Mysticeti

9 Posts

0

18095

January 4th, 2007 19:00

SAS 5/iR RAID w/ Linux; need status monitoring utility

Hi,

I have a PE 860 with the SAS5/iR hardware raid adapater.

lspci reports the device as such:

02:08.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068 PCI-X Fusion-MPT SAS (rev 01)

CentOS is installed and running fine but I can't seem to find any utilities that will let me monitor the status of the RAID array.

Are there any available? I'm not sure how else to monitor the array which almost makes having the SAS5iR useless since I currently have no way of knowing if/when one of drives has failed.

Thanks!
  • Mysticeti

    9 Posts

    483

    0

    Posted January 5th, 2007 12:00

    Found this:
    http://lists.us.dell.com/pipermail/linux-poweredge/2006-October/028019.html

    Which says
    > SAS5/iR: download driver (dkms rpm) from Dell site, dig in it, you'll
    > find lsiutil.c,you have to use it like "echo -ne
    > '1\n21\n1\n0\n0\n01n' | lsiutil" to make it non-interactive

    So then I found the RPM (mptlinux-3.02.63-5dkms.noarch.rpm) and unpacked it:

    rpm2cpio mptlinux-3.02.63-5dkms.noarch.rpm | cpio -idmv --no-absolute-filenames

    Built lsiutil (a stand alone C program).

    And all is well.

    This hack lets me check the status via a cron job...
    #! /bin/sh

    RAID_STATE="`/bin/echo -ne '1\n21\n1\n0\n0\n01n' | /usr/local/bin/lsiutil | grep 'Volume State'`"

    /bin/echo $RAID_STATE

    if [ "$RAID_STATE" != " Volume State: optimal, enabled" ]; then
    exit 1;
    else
    exit 0;
    fi