背景

有些老服务器,SAS卡不是使用MegaCLI或StorCLI管理,只能使用LSIUti进行管理。

参考

  1. LSI阵列卡进行高效管理

下载

Broadcom下载网址

  • LSIUtil_1-62.zip

准备

  1. 我的系统是Centos6,需要安装glibc.i686
yum install -y glibc.i686

解压

unzip LSIUtil_1-62.zip

使用

显示所有端口上连接的设备

./lsiutil -s      
LSI Logic MPT Configuration Utility, Version 1.62, January 14, 2009

1 MPT Port found

./lsiutil: invalid argument -- –s
[root@redhat-201 Linux]# ls
lsiutil  lsiutil.ia64  lsiutil.x86_64
[root@redhat-201 Linux]# ./lsiutil -s

LSI Logic MPT Configuration Utility, Version 1.62, January 14, 2009

1 MPT Port found

==============================================================================

/proc/mpt/ioc0    LSI Logic SAS1064E B3    MPT 105   Firmware 011e0a00   IOC 0

SAS1064E's links are 3.0 G, 3.0 G, down, down

 B___T___L  Type       Vendor   Product          Rev      SASAddress     PhyNum
 0   7   0  Disk       LSILOGIC Logical Volume   3000  

Hidden RAID Devices:

 B___T    Device       Vendor   Product          Rev      SASAddress     PhyNum
 0   9  PhysDisk 0     SEAGATE  ST900MM0006      LS06  5000c5005f9f1a9d     1
 0   8  PhysDisk 1     SEAGATE  ST900MM0006      LS06  5000c5005f98e18d     0

查看逻辑卷状态

./lsiutil -p 1 -a 21,1,0,0,0
LSI Logic MPT Configuration Utility, Version 1.62, January 14, 2009

1 MPT Port found

     Port Name         Chip Vendor/Type/Rev    MPT Rev  Firmware Rev  IOC
 1.  /proc/mpt/ioc0    LSI Logic SAS1064E B3     105      011e0a00     0

Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 21

RAID actions menu, select an option:  [1-99 or e/p/w or 0 to quit] 1

1 volume is active, 2 physical disks are active

Volume 0 is Bus 0 Target 7, Type IM (Integrated Mirroring)
  Volume Name:                                  
  Volume WWID:  0ff785741726e2c0
  Volume State:  optimal, enabled
  Volume Settings:  write caching disabled, auto configure
  Volume draws from Hot Spare Pools:  0
  Volume Size 858306 MB, 2 Members
  Primary is PhysDisk 1 (Bus 0 Target 8)
  Secondary is PhysDisk 0 (Bus 0 Target 9)

RAID actions menu, select an option:  [1-99 or e/p/w or 0 to quit] 0

Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 0

查看物理硬盘状态

  • 重点关注是否有Error CountSMART Data Count
./lsiutil -p 1 -a 21,2,0,0,0
LSI Logic MPT Configuration Utility, Version 1.62, January 14, 2009

1 MPT Port found

     Port Name         Chip Vendor/Type/Rev    MPT Rev  Firmware Rev  IOC
 1.  /proc/mpt/ioc0    LSI Logic SAS1064E B3     105      011e0a00     0

Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 21

RAID actions menu, select an option:  [1-99 or e/p/w or 0 to quit] 2

1 volume is active, 2 physical disks are active

PhysDisk 0 is Bus 0 Target 9
  PhysDisk State:  online
  PhysDisk Size 858483 MB, Inquiry Data:  SEAGATE  ST900MM0006      LS06
Warning, page length in reply does not match page length in buffer
  (9 vs. 15)

PhysDisk 1 is Bus 0 Target 8
  PhysDisk State:  online
  PhysDisk Size 858483 MB, Inquiry Data:  SEAGATE  ST900MM0006      LS06
Warning, page length in reply does not match page length in buffer
  (9 vs. 15)

RAID actions menu, select an option:  [1-99 or e/p/w or 0 to quit] 0

Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 0

查看硬盘计数器

./lsiutil -p 1 -a 20,12,0,0
LSI Logic MPT Configuration Utility, Version 1.62, January 14, 2009

1 MPT Port found

     Port Name         Chip Vendor/Type/Rev    MPT Rev  Firmware Rev  IOC
 1.  /proc/mpt/ioc0    LSI Logic SAS1064E B3     105      011e0a00     0

Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 20

Diagnostics menu, select an option:  [1-99 or e/p/w or 0 to quit] 12

Adapter Phy 0:  Link Up, No Errors

Adapter Phy 1:  Link Up, No Errors

Adapter Phy 2:  Link Down, No Errors

Adapter Phy 3:  Link Down, No Errors

Diagnostics menu, select an option:  [1-99 or e/p/w or 0 to quit] 0

Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 0

交互模式

 [root@centos-5 Linux]# **./lsiutil**

LSI Logic MPT Configuration Utility, Version 1.62, January 14, 2009

1 MPT Port found

     Port Name         Chip Vendor/Type/Rev    MPT Rev  Firmware Rev  IOC
 1.  /proc/mpt/ioc0    LSI Logic SAS1064E B3     105      011e0a00     0

Select a device:  [1-1 or 0 to quit] **1**

 1.  Identify firmware, BIOS, and/or FCode
 2.  Download firmware (update the FLASH)
 4.  Download/erase BIOS and/or FCode (update the FLASH)
 8.  Scan for devices
10.  Change IOC settings (interrupt coalescing)
13.  Change SAS IO Unit settings
16.  Display attached devices
20.  Diagnostics
21.  RAID actions
22.  Reset bus
23.  Reset target
42.  Display operating system names for devices
45.  Concatenate SAS firmware and NVDATA files
59.  Dump PCI config space
60.  Show non-default settings
61.  Restore default settings
66.  Show SAS discovery errors
69.  Show board manufacturing information
97.  Reset SAS link, HARD RESET
98.  Reset SAS link
99.  Reset port
 e   Enable expert mode in menus
 p   Enable paged mode
 w   Enable logging

Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 
Logo

openEuler 是由开放原子开源基金会孵化的全场景开源操作系统项目,面向数字基础设施四大核心场景(服务器、云计算、边缘计算、嵌入式),全面支持 ARM、x86、RISC-V、loongArch、PowerPC、SW-64 等多样性计算架构

更多推荐