One of the easiest ways to find if your Linux system has any RAID arrays currently in use is to view the contents of the /proc/mdstat file. It’s a file that will definitely be present on your Linux system even if you don’t have any actual RAIDs configured yet.
This is how it will look on a system without RAID arrays configured:
And here’s an example from a system which has a number of arrays configured:
First line of the output says Personalities, and this tells you all the possible RAID configurations that your Linux kernel supports:
raid0– striped volume
multipath– not really a RAID type but instead just support for additional paths (using fiber channel cards) to the same storage.
Next you will have active RAID arrays listed and documented, if there are any.
Here’s how to read a RAID configuration example:
md4is the name of a RAID array device
512K(this is different from your Linux I/O block size, but should be considered and configured together for best performance)
That’s it for now! I’ll be posting a full tutorial on creating RAID arrays in Linux soon, so stay tuned! Leave a comment or join my Facebook group to ask questions.