On Friday June 27, mark@xxxxxxxxxxxx wrote: > > I'm at a bit of a loss as to what to suggest. The data is mostly > > there, but getting it back is tricky. > > > > What you need to do is > > choose one of sdd and sde which you think is device '3' > > (sdc is 0, sdb is 1, sda is 2). > > rewrite the metadata to assert this fact > > assemble the array read-only with sd[abc] and the one you choose > > read the data to make sure it is all where > > switch to read-write so the reshape competes, leaving you with > > a degraded array > > add the other drive and let it recover. > > > > The early steps in particular are not easy. > > Since there's only two options, what's to stop me taking a backup of the > metadata, and then rewriting the metadata on one drive, mounting it, > seeing if it makes sense. If it does, great. If it doesn't, then > restore the metadata and repeat the process on the other drive. > > Or am I missing an important step? Yes, you could do that. But re-writing the metadata is non-trivial, and I'm not confident about how to start the array read-only. echo 1 > /sys/module/md-mod/parameters/start_ro might do it, bit I would want to test with some scratch data first. I would create some loop back devices over files and try to make a similar situation and assemble the array and assure my self that reshape doesn't start automatically (it shouldn't while the array is readonly) before actually doing anything to the real devices. NeilBrown -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html