设为首页 | 加入收藏
您的位置主页 > 系统管理

MegaCli命令只返回Exit Code: 0x00 - LSISAS1068E

2014-03-22 13:08:53

 

使用了dell的 SAS 6i/R LSISAS1068E 此种原带的命令基本无法工作,换个 Lsiutil 即可

下载地址: http://www.kuaipan.cn/file/id_68187849979068418.htm

 

不带任何参数执行lsiutil,就会进入lsiutil的交互模式。在这个模式下,所有的操作都是通过文本菜单来进行的,举例如下

[root@umail71 lsiutil]#lsiutil

LSI Logic MPT Configuration Utility, Version 1.56, March 19, 2008

2 MPT Ports found

     Port Name         Chip Vendor/Type/Rev    MPT Rev  Firmware Rev  IOC
 1.  /proc/mpt/ioc0    LSI Logic SAS1068 B0      105      000a3300     0
 2.  /proc/mpt/ioc1    LSI Logic SAS1068E B3     105      00192f00     0

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

 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
60.  Show non-default settings
61.  Restore default settings
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] 21

 1.  Show volumes
 2.  Show physical disks
 3.  Get volume state
 4.  Wait for volume resync to complete
23.  Replace physical disk
26.  Disable drive firmware update mode
27.  Enable drive firmware update mode
30.  Create volume
31.  Delete volume
32.  Change volume settings
33.  Change volume name
50.  Create hot spare
99.  Reset port
 e   Enable expert mode in menus
 p   Enable paged mode
 w   Enable logging

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 0, Type IM (Integrated Mirroring)
  Volume Name:                                 
  Volume WWID:  01e4c8dbc95a53e3
  Volume State:  optimal, enabled
  Volume Settings:  write caching disabled, auto configure, priority resync
  Volume draws from Hot Spare Pools:  0
  Volume Size 139392 MB, 2 Members
  Primary is PhysDisk 1 (Bus 0 Target 9)
  Secondary is PhysDisk 0 (Bus 0 Target 1)

RAID actions menu, select an option:  [1-99 or e/p/w or 0 to quit]
命令行模式举例如下:

lsiutil  -p1  -a 21,1,0,0,0       和上边菜单操作一样,只不过不用手动去选择菜单项了

lsiutil -p 1 -i –s 显示端口1的设置和连接的设备

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

lsiutil -p 2 -l 1 强制HBA卡端口2连接速度为1Gb 
 

[root@umail71 lsiutil]#./lsiutil -p2 -a 21,1,0,0,0

LSI Logic MPT Configuration Utility, Version 1.56, March 19, 2008

2 MPT Ports found

     Port Name         Chip Vendor/Type/Rev    MPT Rev  Firmware Rev  IOC
 2.  /proc/mpt/ioc1    LSI Logic SAS1068E B3     105      00192f00     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 0, Type IM (Integrated Mirroring)
  Volume Name:                                 
  Volume WWID:  01e4c8dbc95a53e3
  Volume State:  optimal, enabled
  Volume Settings:  write caching disabled, auto configure, priority resync
  Volume draws from Hot Spare Pools:  0
  Volume Size 139392 MB, 2 Members
  Primary is PhysDisk 1 (Bus 0 Target 9)
  Secondary is PhysDisk 0 (Bus 0 Target 1)

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