How to use Linux to view server hardware RAID at the command line

Source: Internet
Author: User
Tags dell r710

[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.

Start Zmodem transmission. Press CTRL + C to cancel.

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 lib_utils-1.00-09.noarch.rpm

-rw-r--r--1 root root 1514197 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%]

I use commands on 2 machines to view:

DELL R710 Server: 4 SAS hard Drive 500GB, Total 2TB, after RAID10, left 1TB of capacity hard disk space.

[root@jxq-01 raid]#/opt/megaraid/megacli/megacli64-cfgdsply-aall|grep "RAID level" |tail-1|awk-f: ' {print $ ': "$}"

Raid Level:primary-1, Secondary-3, RAID level Qualifier-0

DELL R720 Server: A SAS hard drive 300GB

[Root@web opt]#/opt/megaraid/megacli/megacli64-cfgdsply-aall|grep "RAID level" |tail-1|awk-f: ' {print $ ': ' $} '

Raid level:primary-0, Secondary-0, RAID level Qualifier-0 #我这台主机是RAID 0

The RAID model corresponding table information is as follows:

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

Author Signature: 51cto blog Imysql

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.