添加源:
vim /etc/apt/sources.list
在文件尾添加如下内容:
deb http://hwraid.le-vert.net/ubuntu precise main
执行更新,安装命令:
apt-get update
apt-get install megacli megactl megaraid-status
报错了,需要安装证书
W: GPG error: http://hwraid.le-vert.net/ubuntu precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6005210E23B3D3B4
安装证书:
wget -O - http://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key | sudo apt-key add -
再次执行安装命令:
apt-get install megacli megactl megaraid-status
相关命令:
查看虚拟驱动器的信息:
megacli -LDInfo -Lall -aALL
查看物理磁盘信息
megacli -PDList -aALL