获取 RAID 配置的详细信息 [linux]

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4440873/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-03 23:59:54  来源:igfitidea点击:

Get details of RAID configuration [linux]

linux

提问by Arunjith

How to get the details of RAID configuration in linux ?

如何在linux中获取RAID配置的详细信息?

回答by Michael Trausch

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:

如果您谈论的是 mdadm 配置文件,它通常位于 /etc 或 /etc/mdadm 中,具体取决于您运行的发行版。无论如何,以下命令应该可以找到它:

find /etc -name '*mdadm*'

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

ETA:另外,我强烈建议您仔细研究 mdadm 手册页,以便您非常熟悉该实用程序。了解该实用程序在某些时候节省您的培根。

回答by Gaetano Mendola

mdadm --detail /dev/md0   

(or whatever /dev/mdXXX you are using)

(或您正在使用的任何 /dev/mdXXX)

回答by raj_gt1

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

mdadm -D /dev/mdxx将为您提供raid配置的详细信息。 cat /proc/mdstat将详细介绍 RAID 算法、级别和块大小等。

回答by lolotux

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

如果此 RAID 是软件,这是真实的.... 如果是 RAID 硬件,您可以键入以下命令:

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