061.Linux查看SAS 6/iR卡的信息工具-lsiutil


因爲megacli不支持SAS 6/iR卡,使用一款叫做lsiutil的綠色免安裝工具來查看SAS 6/iR卡的信息。

1、下載lsiutil

內部下載地址http://1xxx:8080/zabbix/lsiutil.tar.gz

2、解壓運行lsiutil

直接解壓,運行目錄裏面的lsiutil 即可.

[root@k]# tar -zxvf lsiutil.tar.gz

[root@k]# cd lsiutil

[root@k]# ./lsiutil  【交互式運行】

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

1 MPT Port found

Port Name         Chip Vendor/Type/Rev    MPT Rev  Firmware Rev  IOC

1.  /proc/mpt/ioc0    LSI Logic SAS1068E B3     105      00192f00     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

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] 69 --- 查看Raid 卡的信息板子名稱【SAS6IR】

Seg/Bus/Dev/Fun    Board Name       Board Assembly   Board Tracer

0   2   0   0     SAS6IR

Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 8 ---掃描硬盤設備並打印設備狀態

SAS1068E's links are 3.0 G, 3.0 G, down, down, off, off, off, off

B___T___L  Type       Vendor   Product          Rev      SASAddress     PhyNum

0   0   0  Disk       Dell     VIRTUAL DISK     1028

0   8   0  EnclServ   DP       BACKPLANE        1.07  5942b0b02dcf1a00     8

Hidden RAID Devices:

B___T    Device       Vendor   Product          Rev      SASAddress     PhyNum

0   1  PhysDisk 0     SEAGATE  ST3600057SS      ES62  5000c50023c4b95d     1

0   9  PhysDisk 1     SEAGATE  ST3600057SS      ES62  5000c50023c4bd95     0

【查看Raid 狀態】: 進入21 選項:

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] 2 ---查看設備在線狀態

1 volume is active, 2 physical disks are active

PhysDisk 0 is Bus 0 Target 1

 PhysDisk State:  online

 PhysDisk Size 572325 MB, Inquiry Data:  SEAGATE  ST3600057SS      ES62

Warning, page length in reply does not match page length in buffer

 (9 vs. 15)

PhysDisk 1 is Bus 0 Target 9

 PhysDisk State:  online

 PhysDisk Size 572325 MB, Inquiry Data:  SEAGATE  ST3600057SS      ES62

Warning, page length in reply does not match page length in buffer

 (9 vs. 15)

注意,因爲我的兩塊硬盤做得是Raid 0 ,如果你的磁盤做得是Raid 1 可以通過 【4.  Wait for volume resync to complete】兩塊硬盤的同步狀態

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

Volume 0 State:  optimal, enabled

以下幾個菜單可以在線創建陣列!

30.  Create volume

31.  Delete volume

32.  Change volume settings

33.  Change volume name

50.  Create hot spare

#注意以上所有的退出使用阿拉數字零

3、非交互方式查看SAS 6/iR卡信息

如果你覺得上面的菜單選項比較麻煩,你也可以使用命令行模式完成!如下:

lsiutil –p1 –a 8,21,4,0,0

-p1 指1 MPT Port found

-a 指你選擇的菜單號,並使用逗號分開.

0表示退出參數------即進入幾個菜單,就是用幾個0 做退出!

[root@k]# ./lsiutil -p1 -a 8,21,4,0,0

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

1 MPT Port found

    Port Name         Chip Vendor/Type/Rev    MPT Rev  Firmware Rev  IOC

1.  /proc/mpt/ioc0    LSI Logic SAS1068E B3     105      00192f00     0

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

SAS1068E's links are 3.0 G, 3.0 G, down, down, off, off, off, off

B___T___L  Type       Vendor   Product          Rev      SASAddress     PhyNum

0   0   0  Disk       Dell     VIRTUAL DISK     1028

0   8   0  EnclServ   DP       BACKPLANE        1.07  5942b0b02dcf1a00     8

Hidden RAID Devices:

B___T    Device       Vendor   Product          Rev      SASAddress     PhyNum

0   1  PhysDisk 0     SEAGATE  ST3600057SS      ES62  5000c50023c4b95d     1

0   9  PhysDisk 1     SEAGATE  ST3600057SS      ES62  5000c50023c4bd95     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] 4

Volume 0 State:  optimal, enabled

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

[root@k]#



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章