Megacli命令安裝及使用(debiancentos)-創(chuàng)新互聯(lián)

我的博客已遷移到xdoujiang.com請去那邊和我交流
======================================Debian============================================
一、Debian下安裝Megacli命令
1、當(dāng)前版本
cat /etc/debian_version 
5.0.1
2、安裝包
apt-get -y install axel --force-yes
apt-get -y install unzip --force-yes
apt-get -y install rpm --force-yes
axel - light download accelerator - console version
unzip - De-archiver for .zip files
rpm - Red Hat package manager
3、下載8.07.10_MegaCLI_Linux.zip
axel -n 10 http://www.lsi.com/downloads/Public/RAID%20Controllers/RAID%20Controllers%20Common%20Files/8.07.10_MegaCLI_Linux.zip
Initializing download: http://www.lsi.com/downloads/Public/RAID%20Controllers/RAID%20Controllers%20Common%20Files/8.07.10_MegaCLI_Linux.zip
Opening output file 8.07.10_MegaCLI_Linux.zip
Server unsupported, starting from scratch with one connection.
Starting download

[  0%]  .......... .......... .......... .......... ..........  [   9.9KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  13.7KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  17.2KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  19.8KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  21.9KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  23.9KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  22.0KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  19.7KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  20.7KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  22.2KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  23.5KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  24.1KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  25.4KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  26.8KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  28.2KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  29.5KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  29.8KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  30.2KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  29.5KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  29.6KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  29.0KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  29.5KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  29.6KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  29.6KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  30.3KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  31.0KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  30.5KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  30.8KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  30.9KB/s]
[  0%]  .......... .......... .......... .......... ..........  [  31.0KB/s]
[  0%]  .......
Connection 0 finished

Downloaded 1507.5 kilobytes in 48 seconds. (30.96 KB/s)
4、解壓
unzip 8.07.10_MegaCLI_Linux.zip
Archive:  8.07.10_MegaCLI_Linux.zip
inflating: 8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10.txt  
creating: 8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10/
inflating: 8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10/MegaCli-8.07.10-1.noarch.rpm  
5、安裝
cd /root/8.07.10_MegaCLI_Linux/Linux\ MegaCLI\ 8.07.10/
rpm2cpio MegaCli-8.07.10-1.noarch.rpm|cpio -idmv
./opt/MegaRAID/MegaCli/MegaCli
./opt/MegaRAID/MegaCli/MegaCli64
./opt/MegaRAID/MegaCli/libstorelibir-2.so.14.07-0
11187 blocks
6、找下相關(guān)命令
find / -name "MegaCli*"
/root/8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10/opt/MegaRAID/MegaCli
/root/8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10/opt/MegaRAID/MegaCli/MegaCli
/root/8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10/opt/MegaRAID/MegaCli/MegaCli64
/root/8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10/MegaCli-8.07.10-1.noarch.rpm
7、將相關(guān)命令復(fù)制到/usr/local/sbin/
cp /root/8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10/opt/MegaRAID/MegaCli/MegaCli* /usr/local/sbin/
8、說明
dpkg -S /usr/bin/rpm2cpio
rpm: /usr/bin/rpm2cpio
dpkg -S /bin/cpio
cpio: /bin/cpio
cpio - GNU cpio -- a program to manage archives of files
-i, --extract                     Extract files from an archive (run in copy-in mode)
-d, --make-directories            Create leading directories where needed
-m, --preserve-modification-time  Retain previous file modification times when creating files
-v, --verbose                     Verbosely list the files processed
======================================Centos============================================
二、Centos下安裝Megacli命令
1、當(dāng)前版本
cat /etc/redhat-release 
CentOS release 6.5 (Final)
2、安裝包
yum -y install wget
yum -y install unzip
3、下載8.07.10_MegaCLI_Linux.zip
wget http://www.lsi.com/downloads/Public/RAID%20Controllers/RAID%20Controllers%20Common%20Files/8.07.10_MegaCLI_Linux.zip
--2015-05-13 17:27:56--  http://www.lsi.com/downloads/Public/RAID%20Controllers/RAID%20Controllers%20Common%20Files/8.07.10_MegaCLI_Linux.zip
Resolving www.lsi.com... 192.19.195.176
Connecting to www.lsi.com|192.19.195.176|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1543709 (1.5M) [application/x-zip-compressed]
Saving to: 8.07.10_MegaCLI_Linux.zip.1

100%[=============================================================================================================================================>] 1,543,709   18.1K/s   in 72s     

2015-05-13 17:29:08 (21.0 KB/s) - 8.07.10_MegaCLI_Linux.zip.1 saved [1543709/1543709]
PS:目前已經(jīng)下載不到這個軟件了 我這里上傳到博客附件里

4、解壓
unzip 8.07.10_MegaCLI_Linux.zip
Archive:  8.07.10_MegaCLI_Linux.zip
inflating: 8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10.txt  
creating: 8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10/
inflating: 8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10/MegaCli-8.07.10-1.noarch.rpm  
5、安裝
cd /root/8.07.10_MegaCLI_Linux/Linux\ MegaCLI\ 8.07.10/
rpm -ivh MegaCli-8.07.10-1.noarch.rpm
Preparing...                ########################################### [100%]
   1:MegaCli                ########################################### [100%]
11187 blocks
6、找下相關(guān)命令
find / -name "MegaCli*"
/root/MegaCli-8.07.10-1.noarch.rpm
/opt/MegaRAID/MegaCli
/opt/MegaRAID/MegaCli/MegaCli64
7、將相關(guān)命令復(fù)制到/usr/local/sbin/
cp /opt/MegaRAID/MegaCli/MegaCli* /usr/local/sbin
=======================================================================================
三、命令參考
1、一般使用這2個命令來檢查硬盤狀態(tài)(無論那個數(shù)字是1都是要更換硬盤的)
MegaCli64 -AdpAllInfo -aALL -NoLog|awk '/Critical Disks/ {print $4}'
1
MegaCli64 -AdpAllInfo -aALL -NoLog|awk '/Failed Disks/ {print $4}'
0
2、MegaCli64 -PDList -aALL(查看具體信息,只截圖了部分)
Media Error Count: 119
Other Error Count: 0
Predictive Failure Count: 1
Media Error Count: 28
Other Error Count: 0
Predictive Failure Count: 0
確實硬盤是有問題存在的
Media Error一般是指RAID卡發(fā)現(xiàn)的磁盤讀寫錯誤。通過這個指標(biāo)我們可以簡單的判斷磁盤介質(zhì)的情況,
有media error并不意味者磁盤一定需要更換,因為磁盤的firmware會對壞塊進行屏蔽及遷移。
但應(yīng)建議對磁盤進行診斷,依據(jù)診斷結(jié)果來判斷是否需要更換該磁盤。
Other error一般是指RAID發(fā)現(xiàn)的SCSI總線通信錯誤。一般表明SCSI總線中存在硬件設(shè)備故障,
一般是SCSI線纜,硬盤背板,SCSI終結(jié)器等。
3、表示正在更換硬盤狀態(tài)
MegaCli64 -PDList -aALL |grep "Firmware state"
Firmware state: Rebuild
Firmware state: Online
Firmware state: Online
Firmware state: Online
Firmware state: Online
Firmware state: Online
Firmware state: Online
Firmware state: Online

4、查看rebuild狀態(tài)(32:0這個是表示Enclosure Device ID: 32和Device Id和Slot Number)
MegaCli64 -PDRbld -ProgDsply -PhysDrv [32:0] -a0

Megacli命令安裝及使用(debian centos)

成都創(chuàng)新互聯(lián)公司是一家集網(wǎng)站建設(shè),中山企業(yè)網(wǎng)站建設(shè),中山品牌網(wǎng)站建設(shè),網(wǎng)站定制,中山網(wǎng)站建設(shè)報價,網(wǎng)絡(luò)營銷,網(wǎng)絡(luò)優(yōu)化,中山網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強企業(yè)競爭力??沙浞譂M足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時我們時刻保持專業(yè)、時尚、前沿,時刻以成就客戶成長自我,堅持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實用型網(wǎng)站。 附件:http://down.51cto.com/data/2367078

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

分享名稱:Megacli命令安裝及使用(debiancentos)-創(chuàng)新互聯(lián)
分享鏈接:http://muchs.cn/article32/dchosc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供關(guān)鍵詞優(yōu)化服務(wù)器托管、標(biāo)簽優(yōu)化自適應(yīng)網(wǎng)站、網(wǎng)站設(shè)計、建站公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

搜索引擎優(yōu)化