开发者

Get details of RAID configuration on Linux

开发者 https://www.devze.com 2023-01-30 18:18 出处:网络
How to get 开发者_JAVA百科the details of RAID configuration in Linux ?mdadm -D /dev/mdxx will give you detail of raid configuration.

How to get 开发者_JAVA百科the details of RAID configuration in Linux ?


mdadm -D /dev/mdxx will give you detail of raid configuration. cat /proc/mdstat will give detail about raid algorithm,level and chunk size etc .


This is real if this RAID is sofware.... In case of RAID hardware, you could type this command :

lspci -vv | grep -i raid

01:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2208 [Thunderbolt] (rev 01)
        Kernel driver in use: megaraid_sas
        Kernel modules: megaraid_sas


If you're talking about a running array:

cat /proc/mdstat

If you're talking about the mdadm config file, it's usually in /etc or /etc/mdadm depending on the distribution you're running on. The following command should find it in any event:

find /etc -name '*mdadm*'

ETA: Also, I would strongly recommend that you carefully study the mdadm man page so that you are very familiar with that utility. Knowing that utility well will save your bacon at some point.


mdadm --detail /dev/md0   

(or whatever /dev/mdXXX you are using)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号