加入收藏 | 设为首页 | 会员中心 | 我要投稿 佛山站长网 (https://www.0757zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

如何使用Linux在命令行查看服务器硬件RAID

发布时间:2016-11-01 02:35:19 所属栏目:Linux 来源:网络整理
导读:[root@jxq-01 ~]# cd /opt/ [root@jxq-01 opt]# mkdir -p raid [root@jxq-01 opt]# dmidecode -s system-product-name PowerEdge R710 #服务器是DELL R710 [roo

[root@jxq-01 ~]# cd /opt/

[root@jxq-01 opt]# mkdir -p raid

[root@jxq-01 opt]# dmidecode -s system-product-name

PowerEdge R710                                                 #服务器是DELL R710

[root@jxq-01 opt]# cd raid/

[root@jxq-01 raid]# rz -y

rz waiting to receive.

开始 zmodem 传输。  按 Ctrl+C 取消。

100%    1551 KB 1551 KB/s 00:00:01       0 Errors

100%    1478 KB 1478 KB/s 00:00:01       0 Errors

[root@jxq-01 raid]# ll

total 3032

-rw-r--r-- 1 root root 1588725 Jul 24  2012 Lib_Utils-1.00-09.noarch.rpm

-rw-r--r-- 1 root root 1514197 Jul 24  2012 MegaCli-8.04.07-1.noarch.rpm

[root@jxq-01 raid]# rpm -ivh Lib_Utils-1.00-09.noarch.rpm

Preparing...                ########################################### [100%]

Installing....

1:Lib_Utils              ########################################### [100%]

[root@jxq-01 raid]# rpm -ivh MegaCli-8.04.07-1.noarch.rpm

Preparing...                ########################################### [100%]

1:MegaCli                ########################################### [100%]

我在2台机器使用命令查看:

DELL R710服务器:4块SAS硬盘500GB,总共2TB,做完RAID10之后,剩下1TB的容量硬盘空间.

[root@jxq-01 raid]# /opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL|grep "RAID Level"|tail -1|awk -F: '{print $1"        :"$2}'

RAID Level                  : Primary-1, Secondary-3, RAID Level Qualifier-0

DELL R720服务器: 一块SAS硬盘300GB

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

RAID Level                  : Primary-0, Secondary-0, RAID Level Qualifier-0                #我这台主机是RAID 0

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

作者署名:51cto博客 IMySQL

查看本栏目更多精彩内容:http://www.bianceng.cn/OS/Linux/

(编辑:佛山站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读