, Johann Schmitz

More as a reminder for myself, than as an actual blog post: If you wonder why your mdadm devices start at /dev/md126, it is because the kernel didn't know about the arrays when the were assembled. To fix this:

  1. make sure your /etc/mdadm.conf contains the correct definitions for your your array: mdadm --examine --scan >> /etc/mdadm.conf. You can omit the metadata and name attributes, so it reads something like ARRAY /dev/md0 UUID=4e187066:2a64404e:823acf9d:ed842063
  2. umount the arrays
  3. Stop the array: mdadm --stop /dev/md126
  4. Re-assemble the arrays: mdadm --assemble --scan
  5. Validate the array mdadm --detail /dev/md0