↑ ↓ select, Enter open, Esc close

Show details of a software RAID array

Adjust the values, the command updates live
root@server
mdadm --detail /dev/md0

More detailed than /proc/mdstat: State shows, for example, clean or degraded, followed by the counts of active, failed and spare disks. The table at the end maps each member to a device such as /dev/sdb1; failed disks are marked as faulty or removed.

Note: smartctl -i on the respective device returns the serial number of the failed disk for the replacement in the data center.

Also searched as

  • which disk failed in the raid
  • show mdadm details
  • check raid state in detail

Related one-liners

All in System and hardware

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.