linux系统下一个冷门的RAID卡ioc0及其监控mpt-status
這篇文章主要介紹了linux系統下一個冷門的RAID卡ioc0及其監控mpt-status,需要的朋友可以參考下
新接手了一臺Linux服務器,準備檢查是否有配置RAID。
先查看是否有RAID卡:
復制代碼 代碼如下:
dmesg|grep -i raid
mptsas: ioc0: attaching raid volume, channel 1, id 0
device-mapper: dm-raid45: initialized v0.2594l
md: Autodetecting RAID arrays.寶寶起名寶典
很明顯是有的,只是無法確定RAID卡的類型是ioc0還是dm-raid45,于是開始百度。后來找到了這樣一個工具:mpt-status,而且在下載界面里,有這樣幾句話:
mpt-status: get status of LSI 1030 RAID (mptlinux, fusion, mpt, ioc) controller
This driver has many names. As best I understand their use:
LSI 1030
The make and model of the controller
mptlinux
The name of the driver distribution. /proc/mpt/version might say, for example, mptlinux-2.05.11.03.
Fusion
The trade name for the chipset (?). The driver distribution, though called mptlinux, actually lives in drivers/message/fusion.
mpt
Message Passing Technology; the prefix used for all things that related to the driver. The /proc device is /proc/mptctl, for example.
ioc
The name of the controller within Linux. For example the first controller is ioc0.
大意是說LSI 1030 RAID卡有很多個名字,ioc是其中之一。這剛好與之前dmesg的結果吻合。因此基本上可以確定RAID卡的類型是ioc0,屬于LSI的產品,可以用mpt-status來對其進行監控。
mpt-status下載地址:http://sven.stormbind.net/mpt-status-rhel/
接著下載安裝:rpm -ihv mpt-status-1.2.0_RC7-3.i386.rpm
建立字符設備:mknod /dev/mptctl c 10 220
加載內核模塊mptctl:modprobe mptctl
查看RAID狀態:
復制代碼 代碼如下:
mpt-status
ioc0 vol_id 0 type IM, 2 phy, 465 GB, state OPTIMAL, flags ENABLED
ioc0 phy 1 scsi_id 8 ATA WDC WD5002ABYS-1 3B04, 465 GB, state ONLINE, flags NONE
ioc0 phy 0 scsi_id 1 ATA WDC WD5002ABYS-1 3B04, 465 GB, state ONLINE, flags NONE
可以看出,該RAID由兩塊465G的物理硬盤組成,狀態良好??蓡栴}是,RAID級別是多少(0,1,5…)呢?
于是接著百度。
但這次沒有結果。
后來在mpt-status的文檔(/usr/share/doc/mpt-status-1.2.0_RC7/FAQ )里看到這樣一句話:
好激動,這不就是我要問的問題嗎?再看看答案:
The raid level is not visible, would you like to get this information as well? Or do you want to extract the health state of each disk?
總結
以上是生活随笔為你收集整理的linux系统下一个冷门的RAID卡ioc0及其监控mpt-status的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux远程登录ssh免密码配置方法
- 下一篇: 三种方法实现Linux系统调用方法分享