Recovery from a multiple disk failure with mdadm1 min read

Maybe a controller dies and takes two disks offline at the same time or a cable comes loose. This will show you quick way to put your array back be together. It’s likely that your array either didn’t assemble, or assembled incorrectly. The first thing you want to do is make sure you’re working on disks in a read-only state. To do that you first need to stop any running arrays. To view them, do this.

I’ll assume you had a /dev/md0 array show up, so let’s stop it.

Once, it’s stopped the next thing to try to do is just force the array back together using the proper disks.

Hopefully, that got your array assembled correctly, and if something really bad didn’t happen, it’s likely you’re back in business. If that doesn’t work, you can do this…

If all else fails, you can zero the superblocks, and then re-create the array. mdadm is smart enough to detect the existing data, and shouldn’t overwrite it.

Zack

Zack

I love learning new things and trying out the latest technology.

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.