linux 查看服务器 raid 信息
实验环境: dell poweredge r730xd 服务器, dell perc h730 mini raid 卡, centos7 操作系统
- 软件 raid
cat /proc/mdstat
dmesg | grep -i raid
硬件 raid 对外表现就像没做raid一样
- 硬件 raid
如果服务器厂商没有专门的管理工具,可以查看 /proc/scsi/scsi 中的文件信息。显示的信息不多,raid 的厂商,型号,但无法查看各块硬盘的信息以及具体 raid 级别
cat /proc/scsi/scsi
可以安装工具 MegaCli 来查看具体的 raid 信息
cd /opt/MegaRAID/MegaCli
./MegaCli64 -LDinfo -Lall -aALL
MegaCli官方地址
MegaCli 安装步骤
wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
cd Linux
rpm -i MegaCli-8.07.14-1.noarch.rpm
参考文章:
https://blog.youkuaiyun.com/tianlesoftware/article/details/6968948
https://www.dell.com/support/article/us/en/04/sln292232/extracting-the-raid-controller-logs-via-megacli?lang=en
http://www.ttlsa.com/tools/megacli-tool-query-raid-status/

本文详细介绍在Linux环境下,如何通过软件RAID和硬件RAID查看服务器的RAID信息。包括使用cat /proc/mdstat、dmesg | grep -i raid等命令查看软件RAID状态,以及利用cat /proc/scsi/scsi和MegaCli工具获取硬件RAID详情。
1745

被折叠的 条评论
为什么被折叠?



