Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


megacli for centos 6 ?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

megacli for centos 6 ?

jmginerjmginer Member, Patron Provider

Anybody know how to download/install "megacli" to manage LSI RAID?

Comments

  • jmginerjmginer Member, Patron Provider

    @rmlhhd

    not run

    [root@ali1-ovz1 ~]# rpm -Uhv http://dl.marmotte.net/rpms/redhat/el6/x86_64/megacli-8.00.46-2/megacli-8.00.46-2.x86_64.rpm
    Retrieving http://dl.marmotte.net/rpms/redhat/el6/x86_64/megacli-8.00.46-2/megacli-8.00.46-2.x86_64.rpm
    warning: /var/tmp/rpm-tmp.q6EaaF: Header V4 RSA/SHA1 Signature, key ID e755cc63: NOKEY
    Preparing...                ########################################### [100%]
       1:megacli                ########################################### [100%]
    [root@ali1-ovz1 ~]#
    [root@ali1-ovz1 ~]# megacli
    -bash: megacli: command not found
    [root@ali1-ovz1 ~]#
    [root@ali1-ovz1 ~]# locate megacli
    /usr/share/doc/megacli-8.00.46
    /usr/share/doc/megacli-8.00.46/MegaCli.txt
    [root@ali1-ovz1 ~]#
    
  • try MegaCli64

  • jarjar Patron Provider, Top Host, Veteran

    Look in /opt

  • ndelaespadandelaespada Member, Host Rep

    should be here:

    /opt/MegaRAID/MegaCli/MegaCli64

    Thanked by 1jmginer
  • jmginerjmginer Member, Patron Provider
    edited October 2014
    [root@ali1-ovz1 ~]# cd /opt/
    [root@ali1-ovz1 opt]#
    [root@ali1-ovz1 opt]# ls
    lsi
    [root@ali1-ovz1 opt]#
    [root@ali1-ovz1 opt]# cd lsi
    [root@ali1-ovz1 lsi]#
    [root@ali1-ovz1 lsi]# ls
    3rdpartylibs
    [root@ali1-ovz1 lsi]# cd 3rdpartylibs/
    [root@ali1-ovz1 3rdpartylibs]#
    [root@ali1-ovz1 3rdpartylibs]# ls
    x86_64
    [root@ali1-ovz1 3rdpartylibs]#
    [root@ali1-ovz1 3rdpartylibs]# cd x86_64/
    [root@ali1-ovz1 x86_64]#
    [root@ali1-ovz1 x86_64]# ls
    libsysfs.so.2.0.2
    [root@ali1-ovz1 x86_64]#
    [root@ali1-ovz1 x86_64]#
    
  • jarjar Patron Provider, Top Host, Veteran

    Hmm. New install location?

    find / - name "Mega*"

  • ndelaespadandelaespada Member, Host Rep

    Install this one:

    rpm -ivh http://mirror.cogentco.com/pub/misc/MegaCli-8.07.14-1.noarch.rpm

    then locate it here:

    /opt/MegaRAID/MegaCli/MegaCli64

    Thanked by 1jmginer
  • jmginerjmginer Member, Patron Provider

    Found on LSI website!! Thanks!

    [root@ali1-ovz1 ~]# wget https://ginernet.com/downloads/MegaCli-8.07.14-1.noarch.rpm
    --2014-10-31 20:43:16--  https://ginernet.com/downloads/MegaCli-8.07.14-1.noarch.rpm
    Resolving ginernet.com... 2a03:c7c1:1:1::, 185.47.128.128
    Connecting to ginernet.com|2a03:c7c1:1:1::|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1549650 (1.5M)
    Saving to: “MegaCli-8.07.14-1.noarch.rpm”
    
    100%[==========================================================================================================================>] 1,549,650   --.-K/s   in 0.02s
    
    2014-10-31 20:43:16 (84.6 MB/s) - “MegaCli-8.07.14-1.noarch.rpm” saved [1549650/1549650]
    
    [root@ali1-ovz1 ~]#
    [root@ali1-ovz1 ~]# rpm -Uhv MegaCli-8.07.14-1.noarch.rpm
    Preparing...                ########################################### [100%]
       1:MegaCli                ########################################### [100%]
    [root@ali1-ovz1 ~]#
    [root@ali1-ovz1 ~]#
    [root@ali1-ovz1 ~]#
    [root@ali1-ovz1 ~]# /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -Aall
    
    
    Adapter 0 -- Virtual Drive Information:
    Virtual Drive: 0 (Target Id: 0)
    Name                :
    RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0
    Size                : 1.860 TB
    Sector Size         : 512
    Is VD emulated      : Yes
    Mirror Data         : 1.860 TB
    State               : Optimal
    Strip Size          : 256 KB
    Number Of Drives per span:2
    Span Depth          : 4
    Default Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
    Current Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
    Default Access Policy: Read/Write
    Current Access Policy: Read/Write
    Disk Cache Policy   : Enabled
    Encryption Type     : None
    PI type: No PI
    
    Is VD Cached: No
    
    
    
    Exit Code: 0x00
    [root@ali1-ovz1 ~]#
    
    
  • Download it from wherever you wish but here is how it is installed & maintained:

    # rpm -ivh MegaCli-8.07.14-1.noarch.rpm

    # alias MegaCli="/opt/MegaRAID/MegaCli/MegaCli64" (use either MegaCli64 or MegaCli depending on your OS architecture)

    Don't forget to add the same line to /root/.bashrc so that it stays there after reboot.

    Some useful commands:

    For checking the firmware version, battery back-up unit presence, installed cache memory and the capabilities of the adapter:

    MegaCli -AdpAllInfo -aAll

    View information about the battery backup-up unit state

    MegaCli -AdpBbuCmd -aAll

    View information about virtual disks
    Useful for checking RAID level, stripe size, cache policy and RAID state:

    MegaCli -LDInfo -Lall -aALL

    View information about physical drives

    MegaCli -PDList -aALL

    To see information about the patrol read state and the delay between patrol read runs:

    MegaCli -AdpPR -Info -aALL

    To find out the current patrol read rate, execute

    MegaCli -AdpGetProp PatrolReadRate -aALL

    To reduce patrol read resource usage to 2% in order to minimize the performance impact:

    MegaCli -AdpSetProp PatrolReadRate 2 -aALL

    To disable automatic patrol read:

    MegaCli -AdpPR -Dsbl -aALL

    To start a manual patrol read scan:

    MegaCli -AdpPR -Start -aALL

    To stop a patrol read scan:

    MegaCli -AdpPR -Stop -aALL

    If your system is not connected to a UPS, you should disable the physical disk cache in order to prevent data loss.

    MegaCli -LDGetProp EnDskCache -LAll -aALL

    To enable it (only do this if you have a UPS and redundant power supplies):

    MegaCli -LDGetProp DisDskCache -LAll -aALL

    Detail about disks:

    MegaCli -ShowSummary -aALL

    Check patrol read warnings:

    MegaCli -AdpEventLog -GetSinceReboot -warning -fatal -a0


    Some useful links other than LSI website

    https://calomel.org/megacli_lsi_commands.html

    http://wiki.hetzner.de/index.php/LSI_RAID_Controller/en

    http://forums.ayksolutions.com/showthread.php?t=661

    http://artipc10.vub.ac.be/wordpress/2011/09/12/megacli-useful-commands/

    http://hwraid.le-vert.net/wiki/LSIMegaRAIDSAS

    http://blog.nold.ca/2013/04/megacli-lsi-common-commands.html

    http://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=migr-5078572

    http://www.panticz.de/megaraid

    http://mycusthelp.info/LSI/_cs/AnswerDetail.aspx?inc=8275

    https://wiki.cse.ucdavis.edu/support:general:megacli

    http://docs.ovh.ca/en/guides-raid-hard.html

    http://www.webhostrepo.com/blog/how-to-replace-a-failed-disk-in-megaraid-array/

    If you need any further help, do not hesitate to ask me :)

    Thanked by 3jmginer edan leapswitch
  • jmginerjmginer Member, Patron Provider

    Thanks all!

  • jmginerjmginer Member, Patron Provider
    edited October 2014

    Now, with MegaCli and storcli I can check the SMART of my LSI disks.
    But (just to not open a new thread) how can I check the SSD's health ? with SMART?
    I know there are not errors, but can I know the remaining lifetime?

    [root@ali1-ovz1 ~]# /opt/MegaRAID/MegaCli/MegaCli64 -CfgDsply -a0 | grep "Device Id"
    Device Id: 11
    Device Id: 13
    Device Id: 10
    Device Id: 14
    Device Id: 15
    Device Id: 12
    Device Id: 16
    Device Id: 17
    [root@ali1-ovz1 ~]#
    [root@ali1-ovz1 ~]#
    [root@ali1-ovz1 ~]# smartctl -a -d sat+megaraid,11  /dev/sdb
    smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-042stab092.3] (local build)
    Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
    
    === START OF INFORMATION SECTION ===
    Device Model:     Crucial_CT512M550SSD1
    Serial Number:    13440C1623DE
    LU WWN Device Id: 5 00a075 10c1623de
    Firmware Version: MU01
    User Capacity:    512,110,190,592 bytes [512 GB]
    Sector Sizes:     512 bytes logical, 4096 bytes physical
    Device is:        Not in smartctl database [for details use: -P showall]
    ATA Version is:   8
    ATA Standard is:  ATA-8-ACS revision 6
    Local Time is:    Fri Oct 31 21:07:55 2014 CET
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    Warning: This result is based on an Attribute check.
    
    General SMART Values:
    Offline data collection status:  (0x80) Offline data collection activity
                                            was never started.
                                            Auto Offline Data Collection: Enabled.
    Self-test execution status:      (   0) The previous self-test routine completed
                                            without error or no self-test has ever
                                            been run.
    Total time to complete Offline
    data collection:                ( 2380) seconds.
    Offline data collection
    capabilities:                    (0x7b) SMART execute Offline immediate.
                                            Auto Offline data collection on/off support.
                                            Suspend Offline collection upon new
                                            command.
                                            Offline surface scan supported.
                                            Self-test supported.
                                            Conveyance Self-test supported.
                                            Selective Self-test supported.
    SMART capabilities:            (0x0003) Saves SMART data before entering
                                            power-saving mode.
                                            Supports SMART auto save timer.
    Error logging capability:        (0x01) Error logging supported.
                                            General Purpose Logging supported.
    Short self-test routine
    recommended polling time:        (   2) minutes.
    Extended self-test routine
    recommended polling time:        (   6) minutes.
    Conveyance self-test routine
    recommended polling time:        (   3) minutes.
    SCT capabilities:              (0x0035) SCT Status supported.
                                            SCT Feature Control supported.
                                            SCT Data Table supported.
    
    SMART Attributes Data Structure revision number: 16
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
      1 Raw_Read_Error_Rate     0x002f   100   100   000    Pre-fail  Always       -       0
      5 Reallocated_Sector_Ct   0x0033   100   100   000    Pre-fail  Always       -       0
      9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       2782
     12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       39
    171 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
    172 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
    173 Unknown_Attribute       0x0032   095   095   000    Old_age   Always       -       163
    174 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       23
    180 Unused_Rsvd_Blk_Cnt_Tot 0x0033   000   000   000    Pre-fail  Always       -       4403
    183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
    184 End-to-End_Error        0x0032   100   100   000    Old_age   Always       -       0
    187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
    194 Temperature_Celsius     0x0022   077   057   000    Old_age   Always       -       23 (Min/Max 22/43)
    196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       16
    197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
    198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0
    199 UDMA_CRC_Error_Count    0x0032   100   100   000    Old_age   Always       -       0
    202 Data_Address_Mark_Errs  0x0031   095   095   000    Pre-fail  Offline      -       5
    206 Flying_Height           0x000e   100   100   000    Old_age   Always       -       0
    210 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
    246 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       91556394061
    247 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       2861140008
    248 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       2589907361
    
    SMART Error Log Version: 1
    No Errors Logged
    
    SMART Self-test log structure revision number 1
    Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
    # 1  Vendor (0xff)       Completed without error       00%        57         -
    
    SMART Selective self-test log data structure revision number 1
     SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
        1        0        0  Not_testing
        2        0        0  Not_testing
        3        0        0  Not_testing
        4        0        0  Not_testing
        5        0        0  Not_testing
    Selective self-test flags (0x0):
      After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.
    
    [root@ali1-ovz1 ~]#
    
    
  • Nick_ANick_A Member, Top Host, Host Rep

    Crucials don't have Wear_Leveling_Count as far as I know.

    Thanked by 1jmginer
  • jmginerjmginer Member, Patron Provider

    @Nick_A said:
    Crucials don't have Wear_Leveling_Count as far as I know.

    Thanks for your responde. You know if Samsung has it?

    We are going to install a new node and looking on the Samsung 850 Pro series.

  • Nick_ANick_A Member, Top Host, Host Rep

    @jmginer said:
    We are going to install a new node and looking on the Samsung 850 Pro series.

    Every Samsung I've used does have it, but you would want to confirm that the 850Ps are compatible with LSI. There are well documented issues that used to occur when people used 840Ps with LSI. They might have been fixed, but it was a significant problem in the past.

    Thanked by 1jmginer
  • @Nick_A said:
    Every Samsung I've used does have it, but you would want to confirm that the 850Ps are compatible with LSI. There are well documented issues that used to occur when people used 840Ps with LSI. They might have been fixed, but it was a significant problem in the past.

    Does Intel's have it?

Sign In or Register to comment.