storcli适用于华为、浪潮机器,perccli适用于Dell机器,请注意选择

  1. lspci -k

如果没有lspci需要先安装

yum install pciutils

检查阵列卡类型,后安装storcli/perccli
1.华为浪潮机器

wget https://nas.wyk.hk:99/pcdn/LSI/Unified_storcli_all_os/Linux/storcli-007.1410.0000.0000-1.noarch.rpm
rpm -ivh storcli-007.1410.0000.0000-1.noarch.rpm
ln -s /opt/MegaRAID/storcli/storcli64 /usr/bin/storcli64

2.Dell机器
①720/620

wget https://nas.wyk.hk:99/pcdn/LSI/perccli-007.0529.0000.0000-1.noarch-720.rpm
rpm -ivh perccli-007.0529.0000.0000-1.noarch-720.rpm

②730机型

wget https://nas.wyk.hk:99/pcdn/LSI/perccli-1.17.10-1.noarch-730xd.rpm
rpm -ivh perccli-1.17.10-1.noarch-730xd.rpm

最后

ln -s /opt/MegaRAID/perccli/perccli64 /usr/bin/perccli64

查询SN

yum install smartmontools
smartctl -a /dev/sdi

查询槽位

storcli64 /call/eall/sall show all > /home/slot.txt

硬盘亮灯

storcli64 /c0/e10/s3 start locate

硬盘关灯

storcli64 /c0/e10/s3 stop locate

如何通过硬盘盘符查询硬盘槽位


https://support.huawei.com/enterprise/zh/doc/EDOC1000041337/75f2d44b