linux系統(tǒng)下一個冷門的RAID卡ioc0及其監(jiān)控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的結(jié)果吻合。因此基本上可以確定RAID卡的類型是ioc0,屬于LSI的產(chǎn)品,可以用mpt-status來對其進行監(jiān)控。
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
加載內(nèi)核模塊mptctl:modprobe mptctl
查看RAID狀態(tài):
# 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的物理硬盤組成,狀態(tài)良好。可問題是,RAID級別是多少(0,1,5...)呢?
于是接著百度。
但這次沒有結(jié)果。
后來在mpt-status的文檔(/usr/share/doc/mpt-status-1.2.0_RC7/FAQ )里看到這樣一句話:
> 1) Could you tell me from example #1, #2 and #3 where can you see the Raid Level of each hard disk ?
好激動,這不就是我要問的問題嗎?再看看答案:
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?
尼瑪,回答跟沒回答一樣...
接著往下看。終于,在文檔的最后,給出來了答案:
> IS=?
Integrated Striping (RAID 0)
> IM=?
Integrated Mirroring (RAID 1)
即mpt-status輸出的type表示RAID級別。如上例中的:
ioc0 vol_id 0 type IM, 2 phy, 465 GB, state OPTIMAL, flags ENABLED
表示RAID1。
最后附上mpt-status的rpm包。
mpt-status 下載地址:http://sven.stormbind.net/mpt-status-rhel/
相關文章
Debian 9系統(tǒng)下修改默認網(wǎng)卡為eth0的方法
這篇文章主要給大家介紹了在Debian 9系統(tǒng)下修改默認網(wǎng)卡為eth0的方法,文中介紹的非常詳細,對大家具有一定的參考學習價值,需要的朋友們下面來一起看看吧。2017-06-06