Linux Commands - mdadm --detail (show details of RAID array)

by
Jeremy Canfield |
Updated: May 22 2021
| Linux Commands articles
The mdadm command with the --detail flag can be used to display the details of a RAID array.
mdadm --detail /dev/md0
Something like this should be returned.
/dev/md0:
Version : 1.2
Raid Level : raid0
Total Devices : 1
Persistence : Superblock is persistent
State : inactive
Working Devices : 1
Name : www.example.com:root
UUID : db6713ad:66881ca7:48e01e17:6f0a0053
Events : 209562
Number Major Minor RaidDevice
- 8 17 - /dev/sdb1
Likewise, the mdstat file can be read.
cat /proc/mdstat
Which should return something like this.
Personalities :
md127 : inactive sdb1[0](S)
1930428416 blocks super 1.2
unused devices: <none>
Did you find this article helpful?
If so, consider buying me a coffee over at