原文地址:http://blog.sina.com.cn/s/blog_57c70e19010180pe.html
[size=14.399999618530273px]因为工作需要,我需要了解服务器Raid 卡的工作状态,硬盘同步状态, 而本人现在和将要维护的大部分是Dell R410 的服务器,这类服务器的Raid 卡默认都是SAS 6i/R,上网一查,很多人都使用MegaCli来看,可偏偏MegaCli 不支持SAS 6i/R,【http://lists.us.dell.com/pipermail/linux-poweredge/2009-March /038758.html】,我自己也没有试成功[size=14.399999618530273px],幸好有Lsiutil 这款绿色工作可以查看SAS 6i/R 卡 Raid 状态,
[size=14.399999618530273px]软件下载:
[size=14.399999618530273px]下载地址 http://www.kuaipan.cn/file/id_68187849979068418.htm
[size=14.399999618530273px]软件安装:
[size=14.399999618530273px]直接解压,运行目录里面的lsiutil 即可.
[size=14.399999618530273px]引用
[root@zhangmh src]# tar -zxvf lsiutil.tar.gz
[root@zhangmh src]# cd lsiutil
[root@zhangmh lsiutil]# ./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
#注意以上所有的退出使用阿拉数字零
|