如何通过命令行监控DELL服务器磁盘阵列的硬件状态?
----------------------------------------------------------------------
方法1:
下载软件
https://www.broadcom.com/site-search?q=megacli 搜索MegaCli
安装软件
rpm -ivh MegaCli-8.07.14-1.noarch.rpm
ln -s /opt/MegaRAID/MegaCli/MegaCli64 /usr/local/bin/MegaCli
查询命令
查询硬件Raid卡、磁盘、阵列等信息: MegaCli -showsummary -aAll
查询硬盘状态:MegaCli -pdlist -aAll | egrep 'Slot|Firmware state|Enclosure|Adapter'
查询序列号
dmidecode -s system-serial-number
-----------------------------------------------------------
方法2:
yum -y install smartmontools
smartctl --scan
smartctl -i /dev/sda -d megaraid,1 -H -l error
征途漫漫,惟有奋斗!
浙公网安备 33010602011771号