Home >Operation and Maintenance >Linux Operation and Maintenance >How to check the level of raid in Linux

How to check the level of raid in Linux

WBOY
WBOYOriginal
2022-03-21 11:29:007836browse

linux查看raid是几级别的方法:1、利用rpm下载“MegaCli64/MegaCli”辅助工具;2、利用“dmidecode -s system-product-name”命令查看服务器型号,查看raid的级别即可。

How to check the level of raid in Linux

本教程操作环境:linux7.3系统、Dell G3电脑。

linux怎么查看raid是几级别

可以通过在系统中执行命令查看,需要安装辅助工具:MegaCli64/MegaCli,具体用法如下:

1、下载最新的rpm包安装:

rpm -ivh Lib_Utils-1.00-09.noarch.rpm MegaCli-8.04.07-1.noarch.rpm

默认安装在/opt下

2、查询:

dmidecode -s system-product-name

查看服务器型号

查看服务器硬件RAID:

/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL|grep "RAID Level"|tail -1|awk -F: '{print $1" :"$2}'

RAID型号对应表信息如下:

RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0" #代表Raid 1
RAID Level : Primary-0, Secondary-0, RAID Level Qualifier-0" #代表Raid 0
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3" #代表Raid 5
RAID Level : Primary-1, Secondary-3, RAID Level Qualifier-0" #代表Raid10

相关推荐:《Linux视频教程

The above is the detailed content of How to check the level of raid in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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