On 28 Feb 2012, at 19:14, Ronan Cunniffe wrote:
>> 1) Get another disk, and assemble it from the readable parts 2 slightly dead disks.
> I think this will be complicated, because for each stripe, one of the disks is parity, not "real" data: if I reconstruct a disk out of the working bits, some of the reconstruction will be bit-inverted due to parity calculations. Whatever-it-is needs to do a *real* RAID-5 reconstruction using a map of which disk is dead.
>> 2) Write a kernel module which returns blocks from disk A when asked for blocks from disk B for the relevant block ranges.
>> A kernel module? This is how you'd solve it? Niall, I am in awe! ;-)
It was an off the cuff answer, written while I waited for a delayed plane, and would in fact have the same issues as you mentioned for the hardware. It certainly seems as if the code frlinux pointed you at will be a step in the right direction.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!