Linux Software RAID – Failed to RUN_ARRAY /dev/md0 invalid argument Error and Solution

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

ADVERTISEMENTS

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
DifficultyEasy (rss)
Root privilegesYes
RequirementsNone
Time5m

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 SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig 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 jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
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>, <code>...</code> and <kbd>...</kbd> for code samples.