↑ ↓ select, Enter open, Esc close

Show software RAID (mdadm) status

user@server
cat /proc/mdstat

Lists each array such as md0 with RAID level and members. The key part is in square brackets: [UU] means both disks are active, [U_] means a failed mirror. During a rebuild, a progress bar with remaining time appears.

Note: Applies only to Linux software RAID. Hardware RAID controllers need the vendor’s tool.

Also searched as

  • is my raid ok
  • check raid degraded
  • show raid rebuild progress

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.