Changes between Version 1 and Version 2 of LSIFusionMPTSAS2


Ignore:
Timestamp:
12/08/10 21:07:16 (13 years ago)
Author:
Adam Cécile
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LSIFusionMPTSAS2

    v1 v2  
    11[[TOC(depth=-1)]]
    2 = LSI Fusion MPT SAS =
     2= LSI Fusion MPT SAS2 =
    33
    44[[Image(wiki:LSI:logo_lsi.gif)]]
     
    2626Some ''lspci -nn'' output examples:
    2727
    28   * 01:00.0 Serial Attached SCSI controller [0107]: LSI Logic / Symbios Logic SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon] [1000:0072] (rev 02) ''Dell PERC H200''
     28  * 01:00.0 Serial Attached SCSI controller ![0107]: LSI Logic / Symbios Logic SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon] ![1000:0072] (rev 02) ''Dell PERC H200''
    2929[[BR]]
    3030= 3. Management and reporting tools =
    3131
    32 There are '''no management tool'''. LSI doesn't provide any proprietary utility for FusionMPT's cards.
    33 [[BR]]However an '''opensource reporting tool''' named ''mpt-status'' has been developped.
     32There's no opensource tool for theses new cards.
     33[[BR]]However, LSI provide a '''command line management tool''' named sas2ircu. Management features are really '''basic''', so it's better to use is as a '''reporting tool''' only.
    3434
    35 == 3.1. mpt-status ==
     35== 3.1. sas2ircu ==
    3636
    3737=== 3.1.1. Quickstart and output example ===
     
    3939Probe controllers IDs:[[BR]]
    4040{{{
    41 server:~# mpt-status -p
    42 Checking for SCSI ID:0
    43 Found SCSI id=0, use ''mpt-status -i 0`` to get more information.
     41server:~# sas2ircu LIST
     42LSI Corporation SAS2 IR Configuration Utility.
     43Version 5.00.00.00 (2010.02.09)
     44Copyright (c) 2009 LSI Corporation. All rights reserved.
     45
     46
     47         Adapter      Vendor  Device                       SubSys  SubSys
     48 Index    Type          ID      ID    Pci Address          Ven ID  Dev ID
     49 -----  ------------  ------  ------  -----------------    ------  ------
     50   0     SAS2008     1000h    72h   00h:01h:00h:00h      1028h   1f1dh
     51SAS2IRCU: Utility Completed Successfully.
    4452}}}
    4553
    4654Get status of controller "0":[[BR]]
    4755{{{
    48 server:~# mpt-status -i 0
    49 ioc0 vol_id 0 type IM, 2 phy, 73 GB, state OPTIMAL, flags ENABLED
    50 ioc0 phy 1 scsi_id 32 ATA      ST3808110AS      J   , 74 GB, state ONLINE, flags NONE
    51 ioc0 phy 0 scsi_id 1 ATA      ST3808110AS      J   , 74 GB, state ONLINE, flags NONE
     56server:~# sas2ircu 0 DISPLAY
     57LSI Corporation SAS2 IR Configuration Utility.
     58Version 5.00.00.00 (2010.02.09)
     59Copyright (c) 2009 LSI Corporation. All rights reserved.
     60
     61Read configuration has been initiated for controller 0
     62------------------------------------------------------------------------
     63Controller information
     64------------------------------------------------------------------------
     65  Controller type                         : SAS2008
     66  BIOS version                            : 7.01.04.00
     67  Firmware version                        : 2.15.57.00
     68  Channel description                     : 1 Serial Attached SCSI
     69  Initiator ID                            : 0
     70  [...]
     71------------------------------------------------------------------------
     72IR Volume information
     73------------------------------------------------------------------------
     74IR volume 1
     75  Volume ID                               : 79
     76  Status of volume                        : Okay (OKY)
     77  RAID level                              : RAID1
     78  Size (in MB)                            : 1800000
     79  Boot                                    : Primary
     80  Physical hard disks                     :
     81  PHY[0] Enclosure#/Slot#                 : 1:0
     82  PHY[1] Enclosure#/Slot#                 : 1:1
     83------------------------------------------------------------------------
     84Physical device information
     85------------------------------------------------------------------------
     86Initiator at ID #0
     87
     88Device is a Hard disk
     89  Enclosure #                             : 1
     90  Slot #                                  : 0
     91  State                                   : Optimal (OPT)
     92  Size (in MB)/(in sectors)               : 1907729/3907029167
     93  Manufacturer                            : ATA     
     94  Model Number                            : Hitachi HUA72202
     95
     96[...]
     97SAS2IRCU: Command DISPLAY Completed Successfully.
     98SAS2IRCU: Utility Completed Successfully.
    5299}}}
    53100
    54 In most case, your controller ID will be 0. Running ''mpt-status'' '''without any parameters''' will give you the same output example as above.
     101In most case, your controller ID will be 0.
    55102
    56 You '''MUST''' have '''mptctl''' kernel module '''loaded''' to monitor your RAID HBAs.[[BR]]
    57 Load it by hand for the first time and add it to '''/etc/modules''' for next reboots:[[BR]]
     103
     104== 3.2. sas2ircu-status ==
     105
     106sas2ircu-status is a package I wrote by myself. It includes a python wrapper around tw_cli command and an initscript which daemonize the launch of the wrapper.[[BR]]
     107It also handles failure detection and report it by mail and syslog. It also handle unexpected output changes and reminders until the status is fine again.
     108
     109''GRAB-IT NOW FROM OUR REPOSITORY''
     110
     111Output example:
    58112{{{
    59 modprobe mptctl
    60 echo mptctl >> /etc/modules
     113server:~# sas2ircu-status
     114-- Controller informations --
     115-- ID | Model
     116c0 | SAS2008
     117
     118-- Arrays informations --
     119-- ID | Type | Size | Status
     120c0u0 | RAID1 | 1800G | Okay (OKY)
     121
     122-- Disks informations
     123-- ID | Model | Status
     124c0u0p0 | Hitachi HUA72202 (JK1151YAHUYAZZ) | Optimal (OPT)
     125c0u0p1 | Hitachi HUA72202 (JK1151YAHUW1DZ) | Optimal (OPT)
    61126}}}
    62127
    63 === 3.1.2. My opinion about mpt-status ===
    64 
    65 Despite it seems that '''no real upstream development''' exists for this tool, it works '''fine''' and is '''reliable'''.
    66 [[BR]]We experienced several disks failure on MPT SAS controllers and mpt-status always reported the failure and status changes. [[BR]]However don't expected verbose output.
    67 
    68 Homepage: http://www.drugphish.ch/~ratz/mpt-status/
    69 
    70 === 3.1.3. Reporting with mpt-status ===
     128'''I haven't been able to really test it yet, so please use it carefully and contact me if you have a server on which one you are able to do some testing (plug disks, unplug, create hotspare...)'''
     129Use the [http://hwraid.le-vert.net/newticket ticket system] to contact me.
    71130
    72131''mpt-status'' has been greatly integrated to Debian by '''Petter Reinholdtsen and Steffen Joeris'''.
    73132[[BR]]Many thanks to them for good work !
    74133
    75 The packages comes with an initscript that '''periodic''' run mpt-status to '''check status'''.
    76 [[BR]]It keeps a file with latest status and thus is able to detect RAID '''status changes and/or brokeness'''.
    77 [[BR]]It will log a ligne to '''syslog''' when something failed and will send you a '''mail'''.
    78 [[BR]]Until arrays are healthy again a '''reminder''' will be sent each 2 hours.
    79134
    80 In fact, I must admit all my ''"something-status"'' packages for others kind of cards are based on this work.
    81 
    82 == 3.2. lsiutil ==
    83 
    84 This tool comes from LSI. Its sources (for Linux systems) are available but the license is not specified.
    85 [[BR]]I haven't use it much, so here is a quick example of what it can do:
    86 
    87 {{{
    88 server:~# lsiutil
    89 
    90 LSI Logic MPT Configuration Utility, Version 1.56, March 19, 2008
    91 
    92 1 MPT Port found
    93 
    94      Port Name         Chip Vendor/Type/Rev    MPT Rev  Firmware Rev  IOC
    95  1.  /proc/mpt/ioc0    LSI Logic SAS1068E B3     105      00143000     0
    96 
    97 Select a device:  [1-1 or 0 to quit] 1
    98 
    99  1.  Identify firmware, BIOS, and/or FCode
    100  2.  Download firmware (update the FLASH)
    101  4.  Download/erase BIOS and/or FCode (update the FLASH)
    102  8.  Scan for devices
    103 10.  Change IOC settings (interrupt coalescing)
    104 13.  Change SAS IO Unit settings
    105 16.  Display attached devices
    106 20.  Diagnostics
    107 21.  RAID actions
    108 22.  Reset bus
    109 23.  Reset target
    110 42.  Display operating system names for devices
    111 45.  Concatenate SAS firmware and NVDATA files
    112 60.  Show non-default settings
    113 61.  Restore default settings
    114 69.  Show board manufacturing information
    115 97.  Reset SAS link, HARD RESET
    116 98.  Reset SAS link
    117 99.  Reset port
    118  e   Enable expert mode in menus
    119  p   Enable paged mode
    120  w   Enable logging
    121 
    122 Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 1
    123 
    124 Current active firmware version is 00143000 (0.20.48)
    125 Firmware image's version is MPTFW-00.20.48.00-IE
    126   LSI Logic
    127 x86 BIOS image's version is MPTBIOS-6.14.10.00 (2007.09.29)
    128 
    129 Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 21
    130 
    131  1.  Show volumes
    132  2.  Show physical disks
    133  3.  Get volume state
    134  4.  Wait for volume resync to complete
    135 23.  Replace physical disk
    136 26.  Disable drive firmware update mode
    137 27.  Enable drive firmware update mode
    138 30.  Create volume
    139 31.  Delete volume
    140 32.  Change volume settings
    141 33.  Change volume name
    142 50.  Create hot spare
    143 99.  Reset port
    144  e   Enable expert mode in menus
    145  p   Enable paged mode
    146  w   Enable logging
    147 
    148 RAID actions menu, select an option:  [1-99 or e/p/w or 0 to quit] 2
    149 
    150 1 volume is active, 2 physical disks are active
    151 
    152 PhysDisk 0 is Bus 0 Target 1
    153   PhysDisk State:  online
    154   PhysDisk Size 238418 MB, Inquiry Data:  ATA      ST3250620NS      3BKS
    155 
    156 PhysDisk 1 is Bus 0 Target 8
    157   PhysDisk State:  online
    158   PhysDisk Size 238418 MB, Inquiry Data:  ATA      ST3250620NS      3BKS
    159 
    160 RAID actions menu, select an option:  [1-99 or e/p/w or 0 to quit] 1
    161 
    162 1 volume is active, 2 physical disks are active
    163 
    164 Volume 0 is Bus 0 Target 0, Type IM (Integrated Mirroring)
    165   Volume Name:
    166   Volume WWID:  01e2adb8d959aedc
    167   Volume State:  optimal, enabled
    168   Volume Settings:  write caching enabled, auto configure, priority resync
    169   Volume draws from Hot Spare Pools:  0
    170   Volume Size 237464 MB, 2 Members
    171   Primary is PhysDisk 1 (Bus 0 Target 8)
    172   Secondary is PhysDisk 0 (Bus 0 Target 1)
    173 
    174 RAID actions menu, select an option:  [1-99 or e/p/w or 0 to quit] 3
    175 
    176 Volume 0 State:  optimal, enabled
    177 
    178 RAID actions menu, select an option:  [1-99 or e/p/w or 0 to quit]
    179 }}}
    180 
    181 [[BR]]
    182135= 4. BIOS upgrade from a Linux system =
    183136