国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 服務器 > Linux服務器 > 正文

linux系統下一個冷門的RAID卡ioc0及其監控mpt-status

2024-09-05 23:02:35
字體:
來源:轉載
供稿:網友
這篇文章主要介紹了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 )里看到這樣一句話:
 
> 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/

 



發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 沅江市| 巧家县| 永城市| 甘谷县| 公安县| 河津市| 疏附县| 股票| 海晏县| 元江| 始兴县| 英超| 江山市| 南和县| 沅江市| 永胜县| 沙雅县| 侯马市| 凤城市| 乾安县| 呈贡县| 久治县| 专栏| 东阳市| 海南省| 张家界市| 云梦县| 乌拉特中旗| 修水县| 衡水市| 临沂市| 饶平县| 博客| 剑川县| 武邑县| 邻水| 虎林市| 清苑县| 九江市| 略阳县| 金湖县|