新接手了一台Linux服务器,准备检查是否有配置RAID。
先查看是否有RAID卡:
很明显是有的,只是无法确定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状态: