When I run the following command at shell prompt on Debian or Ubuntu Linux

mdadm -Ac partitions /dev/md0 -m dev

I’m getting the message/warning that read as follows:

Failed to RUN_ARRAY /dev/md0 invalid argument.

How do I fix this issue? How do I rebuild array again on Linux operating system using mdadm command?

Tutorial details
Difficulty level Easy
Root privileges Yes
Requirements None
Est. reading time 5m

This error indicate that the RAID metadata is lost or is no longer consistent. However, sometime following command can fix the issue if other two driver are known to be good. /proc/mdstat file will provide RAID status and make sure RAID is active. Type the following command at a shell prompt to fix this issue:
mdadm -A /dev/md0 -f --update=summaries /dev/sda1 /dev/sdb1

For more information, check out the manual page for mdadm:
$ man mdadm


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 3 comments so far... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
3 comments… add one
  • John Sep 2, 2009 @ 16:29

    Grosooooo. This solve my problem, thanks!

  • Pieter Mar 22, 2012 @ 15:06

    this partially solved my problems: at least I can start the raid device and mount it now, but it doesn’t update fstab, mtab or storage.conf.
    And after a reboot I have to start all over again. So how can I make this consistent across reboots?

  • Ben Nov 22, 2013 @ 23:04

    try:

    mdadm --examine --scan --config=mdadm.conf  > /etc/mdadm.conf

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum