Changes between Version 7 and Version 8 of MegaRaid


Ignore:
Timestamp:
06/15/11 16:23:34 (7 years ago)
Author:
joshuadf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MegaRaid

    v7 v8  
    11= LSI MegaRaid controllers = 
    22 
    3 The [http://linux.dell.com/storage.shtml Dell Linux] website has information about 
    4 the actual manufacturer of each Power``Edge RAID Controllers (PERC)  
    5 HardwareRaid cards. The Dell PERC 5i in `thorax` is a LSI MegaRAID SAS 8480e. Dell also 
    6 provides the Open Manage Server Administrator (OMSA), a collection of daemons for 
    7 PERC, DRAC, and other Dell server components. An important feature of the OMSA storage 
    8 daemon is [http://www.dell.com/downloads/global/power/ps1q06-20050212-Habas.pdf Patrol Read],  
    9 which regularly reads every block of each disk during idle times to catch 
    10 errors that a RAID5 consistency check would miss. OMSA logs to `/var/log/TTY_00000000.log` 
     3The [http://linux.dell.com/ Dell Linux website] has information about the actual manufacturer of each Power``Edge RAID Controllers (PERC) HardwareRaid cards. The Dell PERC 5i in `thorax` is a LSI MegaRAID SAS 8480e and other servers have PERC 6i (LSI MegaRaid 1078) which support SAS or SATA drives up to 2TiB. Newer PERCs models such as the H800 support 3+ TiB drives. 
    114 
    12 Install the [http://linux.dell.com/wiki/index.php/Repository/OMSA Dell OMSA repository] and the 
    13 [http://linux.dell.com/wiki/index.php/Repository/OMSA#Meta_Packages appropriate meta packages]  
    14 with commands such as: 
     5The MegaRaid PERC cards have many features including [http://www.dell.com/downloads/global/power/ps1q06-20050212-Habas.pdf (PDF) Patrol Read], which regularly reads every block of each disk to catch errors that a RAID5 consistency check would miss.  
     6 
     7== Mega``Cli tool == 
     8 
     9The [http://tools.rapidsoft.de/perc/perc-cheat-sheet.pdf PERC 5i PDF Cheat Sheet] is extremely helpful. The `MegaCli` tool's documentation is poor and user interface is even worse, especially for simple tasks. Arguments are not case sensitive so you may mix case to make commands slightly readable. You also must specify which Adapter for every command with `-a0` or `-aALL`.  
     10 
     11The [http://www.lsi.com LSI website] seems to change every time I look, but currently you can get the tool by [http://lsi.com/Search/Pages/downloads.aspx?k=MegaCLI%20-%20Linux searching for "MegaCli Linux"]. The latest version right now is '''MegaRAID SAS MegaCLI - Linux, Version 8.01.06''' and comes as RPMs inside a zip inside another zip: 
    1512{{{ 
    16 wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash 
    17 yum install srvadmin-storageservices 
     13# worked as of June 2011 
     14wget 'http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/8.01.06_Linux_MegaCLI.zip' 
     15unzip 8.01.06_Linux_MegaCLI.zip  
     16rm -f readme.txt  
     17unzip MegaCliLin.zip 
     18ls *rpm  
     19# rpm -i or extract files with rpmdev-extract  
     20}}} 
     21 
     22Mega``Cli installs to `/opt/MegaRAID/MegaCli/MegaCli64` so I link to /sbin/ 
     23{{{ 
     24ln -s /opt/MegaRAID/MegaCli/MegaCli64 /sbin/MegaCli 
     25ln -s /opt/MegaRAID/MegaCli/MegaCli64 /sbin/MegaCli64 
    1826}}} 
    1927 
    2028 
    21 == Mega``Cli tool == 
     29Other sources of Mega``Cli tips: 
     30 * CERN - https://twiki.cern.ch/twiki/bin/view/FIOgroup/DiskRefPerc  
     31 * Replacing a disk - http://www.simpit.com/wordpress/?p=595 
     32 * http://linux.us.dell.com/files/whitepapers/solaris/Monitoring_PE_in_Solaris10_0818.pdf 
    2233 
    23 The [http://tools.rapidsoft.de/perc/perc-cheat-sheet.pdf PERC 5i PDF Cheat Sheet] is 
    24 extremely helpful. The `MegaCli` tool's documentation is poor and user interface 
    25 is even worse, especially for simple tasks. Arguments are not case sensitive so you may 
    26 mix case to make commands slightly readable. You also must specify which Adapter  
    27 for every command with `-a0` or `-aALL`. You can get the tool from the LSI website: 
     34=== Tasks === 
     35 
     36Verify aka Logical Disk Consistency Check (LDCC): 
    2837{{{ 
    29 # Broken currently!  
    30 # wget http://www.lsi.com/support/downloads/megaraid/miscellaneous/linux/Linux_MegaCLI_1.01.24.zip 
    31 # Search for "MegaCLI - Linux" at http://www.lsi.com/channel/products/raid_controllers/megaraid_8708elp/index.html 
    32 }}} 
    33  
    34  
    35 Verify aka Consistency Check: 
    36 {{{ 
    37 # find Virtual Disk number 
     38# find Virtual Disk and Adapter number 
    3839MegaCli -LDInfo -Lall -aALL 
    3940# start on Virtual Disk L1 on Adapter 0 
     
    4142# show progress 
    4243MegaCli -LDCC -ShowProg -L1 -a0 
     44}}} 
     45 
     46 
     47Add dedicated Hot Spare to RAID array 1 (using disk in slot 2 of Enclosure device 8 but some systems do not have an `Enclosure` so commands look like `-PhysDrv [:2]` instead of `-PhysDrv [8:2]`.): 
     48{{{ 
     49MegaCli -PDHSP -Set -Dedicated -Array1 -PhysDrv '[8:2]' -a0 
     50}}} 
     51 
     52 
     53Listing Adapter, Enclosure, and Slot information: 
     54{{{ 
     55# MegaCli -PDList -aALL | egrep 'Adapter|Enclosure|Slot|Inquiry'  
     56Adapter #0 
     57Enclosure Device ID: 8 
     58Slot Number: 0 
     59Enclosure position: 0 
     60Inquiry Data: SEAGATE ST373455SS      S5273LQ2164C             
     61Enclosure Device ID: 8 
     62Slot Number: 2 
     63Enclosure position: 0 
     64Inquiry Data:             9QJ03V5EST31000340AS                            SD15     
     65Enclosure Device ID: 8 
     66Slot Number: 3 
     67Enclosure position: 0 
     68Inquiry Data:             9QJ00DMGST31000340AS                            SD01     
     69Enclosure Device ID: 8 
     70Slot Number: 4 
     71Enclosure position: 0 
     72Inquiry Data:             9QJ01AP9ST31000340AS                            SD01     
     73Enclosure Device ID: 8 
     74Slot Number: 5 
     75Enclosure position: 0 
     76Inquiry Data:             9QJ01E9LST31000340AS                            SD01     
    4377}}} 
    4478 
     
    4983}}} 
    5084 
    51 Finding out the Adapter, Enclosure, and Slot information: 
     85Check on Patrol Read 
    5286{{{ 
    53 # MegaCli -PDList -aALL | egrep 'Adapter|Enclosure|Slot|Inquiry'  
    54 Adapter #0 
    55 Enclosure Device ID: 8 
    56 Slot Number: 0 
    57 Inquiry Data: SEAGATE ST373455SS      S5273LQ2164C 
    58 Enclosure Device ID: 8 
    59 Slot Number: 2 
    60 Inquiry Data: ATA     ST31000340AS    SD01            9QJ01NZ6 
    61 Enclosure Device ID: 8 
    62 Slot Number: 3 
    63 Inquiry Data: ATA     ST31000340AS    SD01            9QJ00DMG 
    64 Enclosure Device ID: 8 
    65 Slot Number: 4 
    66 Inquiry Data: ATA     ST31000340AS    SD01            9QJ01AP9 
    67 Enclosure Device ID: 8 
    68 Slot Number: 5 
    69 Inquiry Data: ATA     ST31000340AS    SD01            9QJ01E9L 
     87MegaCli -AdpPR Info -a0 
     88#                                      
     89# Adapter 0: Patrol Read Information: 
     90#  
     91# Patrol Read Mode: Auto 
     92# Patrol Read Execution Delay: 168 hours 
     93# Number of iterations completed: 116  
     94# Current State: Stopped 
     95#  
     96# Exit Code: 0x00 
    7097}}} 
    7198 
    72 Add dedicated Hot Spare to RAID array 1 (using disk in slot 2 of Enclosure device 8): 
     99Adapter info 
    73100{{{ 
    74 MegaCli -PDHSP -Set -Dedicated -Array1 -PhysDrv '[8:2]' -a0 
     101MegaCli -AdpAllInfo -aALL |head 
     102                                      
     103Adapter #0 
     104 
     105============================================================================== 
     106                    Versions 
     107                ================ 
     108Product Name    : PERC 6/i Adapter 
     109Serial No       : 1122334455667788 
     110FW Package Build: 6.3.0-0001 
    75111}}} 
    76  
    77112Finding out the RAID config (Reference == Array): 
    78113{{{ 
     
    97132}}} 
    98133 
     134Detailed internal logs 
     135{{{ 
     136MegaCli -AdpEventLog -IncludeDeleted -f myAdpEventLog.txt -aALL 
     137MegaCli -FwTermLog -Dsply -aALL     > myFirmwareLog.txt 
     138}}} 
     139 
    99140== Bootable Virtual Disk == 
    100141 
     
    109150 
    110151http://public.support.unisys.com/pcproducts/esx/docs/DellDocs5.4/en/Perc6i_6e/chapterg.htm 
     152 
     153== Open Manage Server Administrator (OMSA) == 
     154 
     155Dell also provides the Open Manage Server Administrator (OMSA), a collection of daemons for 
     156PERC, DRAC, and other Dell server components.  
     157 
     158You can also update firmware (BIOS, RAID, etc) on many Dell systems via OMSA. Install the [http://linux.dell.com/wiki/index.php/Repository Dell yum repositories] with commands such as: 
     159{{{ 
     160wget -q -O - http://linux.dell.com/repo/community/bootstrap.cgi | bash 
     161wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash 
     162wget -q -O - http://linux.dell.com/repo/software/bootstrap.cgi | bash  
     163# OMSA storage daemon 
     164yum -y install rpmdevtools ipmitool OpenIPMI srvadmin-base  
     165yum -y install srvadmin-storageservices 
     166# firmware BIOS etc updates 
     167# http://linux.dell.com/wiki/index.php/Repository/firmware#Putting_it_all_together 
     168wget -q -O - http://linux.dell.com/repo/firmware/bootstrap.cgi | bash 
     169# install firmware tools 
     170yum -y install firmware-addon-dell 
     171# install BIOS update 
     172yum -y install $(bootstrap_firmware) 
     173# this gives interactive warnings/confirmation 
     174update_firmware 
     175}}} 
     176