How to check whether raid is used in linux

WBOY
Release: 2022-04-12 10:32:16
Original
14739 people have browsed it

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.

How to check whether raid is used in linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to check whether raid is used in Linux

Software raid: It can only be checked through the Linux system itself

cat /proc/mdstat
Copy after login

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
Copy after login

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
Copy after login

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
Copy after login

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
Copy after login

Command usage:

MegaCli -LDInfo -Lall -aALL 查raid级别
MegaCli -AdpAllInfo -aALL 查raid卡信息
MegaCli -PDList -aALL 查看硬盘信息
MegaCli -AdpBbuCmd -aAll 查看电池信息
MegaCli -FwTermLog -Dsply -aALL 查看raid卡日志
Copy after login

How to check whether raid is used in linux

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template