日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > linux >内容正文

linux

linux系统下一个冷门的RAID卡ioc0及其监控mpt-status

發(fā)布時(shí)間:2025/4/16 linux 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux系统下一个冷门的RAID卡ioc0及其监控mpt-status 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

這篇文章主要介紹了linux系統(tǒng)下一個(gè)冷門的RAID卡ioc0及其監(jiān)控mpt-status,需要的朋友可以參考下
新接手了一臺(tái)Linux服務(wù)器,準(zhǔn)備檢查是否有配置RAID。

先查看是否有RAID卡:

復(fù)制代碼 代碼如下:

dmesg|grep -i raid

mptsas: ioc0: attaching raid volume, channel 1, id 0
device-mapper: dm-raid45: initialized v0.2594l
md: Autodetecting RAID arrays.寶寶起名寶典

很明顯是有的,只是無(wú)法確定RAID卡的類型是ioc0還是dm-raid45,于是開始百度。后來(lái)找到了這樣一個(gè)工具: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.

大意是說(shuō)LSI 1030 RAID卡有很多個(gè)名字,ioc是其中之一。這剛好與之前dmesg的結(jié)果吻合。因此基本上可以確定RAID卡的類型是ioc0,屬于LSI的產(chǎn)品,可以用mpt-status來(lái)對(duì)其進(jìn)行監(jiān)控。

mpt-status下載地址:http://sven.stormbind.net/mpt-status-rhel/

接著下載安裝:rpm -ihv mpt-status-1.2.0_RC7-3.i386.rpm

建立字符設(shè)備:mknod /dev/mptctl c 10 220
加載內(nèi)核模塊mptctl:modprobe mptctl

查看RAID狀態(tài):

復(fù)制代碼 代碼如下:

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)良好。可問(wèn)題是,RAID級(jí)別是多少(0,1,5…)呢?

于是接著百度。

但這次沒(méi)有結(jié)果。

后來(lái)在mpt-status的文檔(/usr/share/doc/mpt-status-1.2.0_RC7/FAQ )里看到這樣一句話:

  • Could you tell me from example #1, #2 and #3 where can you see the Raid Level of each hard disk ?
  • 好激動(dòng),這不就是我要問(wèn)的問(wèn)題嗎?再看看答案:

    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?

    總結(jié)

    以上是生活随笔為你收集整理的linux系统下一个冷门的RAID卡ioc0及其监控mpt-status的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。