Home >Operation and Maintenance >Linux Operation and Maintenance >How to check whether raid is used in linux
Method: 1. Use the "cat /proc/mdstat" command to view software raid level, status and other information; 2. Use the "dmesg |grep -i raid" command to view hardware raid information; 3. Use "cat /proc/scsi/scsi" command to view hardware raid information.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
Software raid: It can only be checked through the Linux system itself
cat /proc/mdstat
You can see the raid level, status, etc. information.
Hardware raid: The best way is to check it through the management tool of the installed raid manufacturer, including cmdline and graphical interface. For example, Adaptec's hardware card can be viewed through the following command:
# /usr/dpt/raidutil -L all
You can see very detailed information.
Of course, more often than not, the corresponding management tools are not installed, and you can only rely on Linux itself. Generally, I know two methods:
# dmesg |grep -i raid # cat /proc/scsi/scsi
The information displayed is similar, the manufacturer and model of the raid , level, but the information of each hard disk cannot be viewed.
In addition, after actual testing, Dell's servers can be displayed through commands, while servers from HP, IBM, etc. cannot be displayed through the above commands. You can only view DELL's BMC by installing the hardware manufacturer's management tool.
cat /proc/scsi/scsi
You can see that it is a device on SCSI. Generally you can see the RAID level. lspci can see the RAID card model.
rpm -ivh MegaCli-1.01.09-0.i386.rpm
Command usage:
MegaCli -LDInfo -Lall -aALL 查raid级别 MegaCli -AdpAllInfo -aALL 查raid卡信息 MegaCli -PDList -aALL 查看硬盘信息 MegaCli -AdpBbuCmd -aAll 查看电池信息 MegaCli -FwTermLog -Dsply -aALL 查看raid卡日志
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of How to check whether raid is used in linux. For more information, please follow other related articles on the PHP Chinese website!