|
|
|
|
|
by grifferz
2107 days ago
|
|
Interesting. What's the sfdisk for? Is that why my attempts to use --re-add aren't working? I also tried "mdadm --zero-superblock /dev/sdb1" to make mdadm forget that was ever an array member, but that didn't get me any further. I use Debian so this won't help me directly, but once I work out why I can't re-add it will be possible to use something similar in a postinst hook to rebuild all the arrays. |
|
I don't see why this couldn't fix up a RAID device generated by the debian installer. The device name could be parameterized if it's not always the same.
We run this script before there's any real data on the device so loss of redundancy for a brief moment is not a huge deal - md0 is a very small device so it doesn't take long to resync.