Megacli命令安装及使用(debian centos)
发表于:2025-12-03 作者:千家信息网编辑
千家信息网最后更新 2025年12月03日,我的博客已迁移到xdoujiang.com请去那边和我交流======================================Debian===========================
千家信息网最后更新 2025年12月03日Megacli命令安装及使用(debian centos)
我的博客已迁移到xdoujiang.com请去那边和我交流======================================Debian============================================一、Debian下安装Megacli命令1、当前版本cat /etc/debian_version 5.0.12、安装包apt-get -y install axel --force-yesapt-get -y install unzip --force-yesapt-get -y install rpm --force-yesaxel - light download accelerator - console versionunzip - De-archiver for .zip filesrpm - Red Hat package manager3、下载8.07.10_MegaCLI_Linux.zipaxel -n 10 http://www.lsi.com/downloads/Public/RAID%20Controllers/RAID%20Controllers%20Common%20Files/8.07.10_MegaCLI_Linux.zipInitializing download: http://www.lsi.com/downloads/Public/RAID%20Controllers/RAID%20Controllers%20Common%20Files/8.07.10_MegaCLI_Linux.zipOpening output file 8.07.10_MegaCLI_Linux.zipServer 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 finishedDownloaded 1507.5 kilobytes in 48 seconds. (30.96 KB/s)4、解压unzip 8.07.10_MegaCLI_Linux.zipArchive: 8.07.10_MegaCLI_Linux.zipinflating: 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-011187 blocks6、找下相关命令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.rpm7、将相关命令复制到/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/rpm2cpiorpm: /usr/bin/rpm2cpiodpkg -S /bin/cpiocpio: /bin/cpiocpio - 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、当前版本cat /etc/redhat-release CentOS release 6.5 (Final)2、安装包yum -y install wgetyum -y install unzip3、下载8.07.10_MegaCLI_Linux.zipwget 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.zipResolving www.lsi.com... 192.19.195.176Connecting to www.lsi.com|192.19.195.176|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 1543709 (1.5M) [application/x-zip-compressed]Saving to: 8.07.10_MegaCLI_Linux.zip.1100%[=============================================================================================================================================>] 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:目前已经下载不到这个软件了 我这里上传到博客附件里4、解压unzip 8.07.10_MegaCLI_Linux.zipArchive: 8.07.10_MegaCLI_Linux.zipinflating: 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.rpmPreparing... ########################################### [100%] 1:MegaCli ########################################### [100%]11187 blocks6、找下相关命令find / -name "MegaCli*"/root/MegaCli-8.07.10-1.noarch.rpm/opt/MegaRAID/MegaCli/opt/MegaRAID/MegaCli/MegaCli647、将相关命令复制到/usr/local/sbin/cp /opt/MegaRAID/MegaCli/MegaCli* /usr/local/sbin=======================================================================================三、命令参考1、一般使用这2个命令来检查硬盘状态(无论那个数字是1都是要更换硬盘的)MegaCli64 -AdpAllInfo -aALL -NoLog|awk '/Critical Disks/ {print $4}'1MegaCli64 -AdpAllInfo -aALL -NoLog|awk '/Failed Disks/ {print $4}'02、MegaCli64 -PDList -aALL(查看具体信息,只截图了部分)Media Error Count: 119Other Error Count: 0Predictive Failure Count: 1Media Error Count: 28Other Error Count: 0Predictive Failure Count: 0确实硬盘是有问题存在的Media Error一般是指RAID卡发现的磁盘读写错误。通过这个指标我们可以简单的判断磁盘介质的情况,有media error并不意味者磁盘一定需要更换,因为磁盘的firmware会对坏块进行屏蔽及迁移。但应建议对磁盘进行诊断,依据诊断结果来判断是否需要更换该磁盘。Other error一般是指RAID发现的SCSI总线通信错误。一般表明SCSI总线中存在硬件设备故障,一般是SCSI线缆,硬盘背板,SCSI终结器等。3、表示正在更换硬盘状态MegaCli64 -PDList -aALL |grep "Firmware state"Firmware state: RebuildFirmware state: OnlineFirmware state: OnlineFirmware state: OnlineFirmware state: OnlineFirmware state: OnlineFirmware state: OnlineFirmware state: Online4、查看rebuild状态(32:0这个是表示Enclosure Device ID: 32和Device Id和Slot Number)MegaCli64 -PDRbld -ProgDsply -PhysDrv [32:0] -a0附件:http://down.51cto.com/data/2367078
命令
磁盘
硬盘
状态
博客
总线
版本
错误
附件
介质
信息
建议
情况
意味
截图
指标
故障
数字
正在
硬件
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
百姓网络安全法律
设计web网页数据库
服务器找人带安装安全吗
北京小的软件开发公司
十四运网络安全员面试题
美国军事网络安全部队
2017网络安全问题分析
特斯拉怎么链接到宇宙数据库的
云南学习软件开发排名
通用 数据库操作
网络安全视频观后感300
数据库维护能赚钱吗
链接数据库设计方式
中国平安科技互联网公司简介
网络安全宣传视频完整版
网络安全保护技术培训
互联网科技冷知识
义马软件开发近期行情
软件开发用户使用报告
linux企业服务器硬件配置
嘉兴嵌入式软件开发设计
工业网络技术就业烂吗
智慧城市与网络安全
搭建ss的服务器
内蒙古集中套料软件开发商
集群两台数据库服务器
开展网络安全班会PPT
山西常用软件开发制造价格
加拿大软件开发要求
北京app软件开发公司哪家好