使用Linux在命令行查看服務器硬件RAID

  [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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章