Re: Recover array after I panicked

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 25, 2017 at 12:40:37PM +0200, Patrik Dahlström wrote:
> I was thinking if it was in fact a 5 disk raid + garbage from 1 disk,
> then the checksum would be correct if the garbage disk was filtered
> out. Does that make sens?

No. With one disk missing there is no parity (no way to verify it).

> You mentioned something about linear device mapping before. What is
> that? Is it something I could experiment with? How do I do that?

https://www.kernel.org/doc/Documentation/device-mapper/linear.txt

Once you have found where data overlaps on both raids, you create 
a linear mapping of start..X of the 6disk raid, followed by X..end 
of the 5disk RAID.

That way you get a device that holds your data intact as a whole, 
whereas the raid sets would give you the first half of data on 
the 6disk raid set (what was already reshaped) and the other half 
on the 5disk raid set (what had yet to be reshaped).

This is only a way to get read access at the data, making the raid 
work as a standalone again (resume reshape with lost raid metadata) 
is another problem, to be tackled after you backed up your data ;)

> Output of examine calls:

> /dev/mapper/sda:
>     Data Offset : 252928 sectors

> /dev/mapper/sda-2:
>     Data Offset : 252928 sectors

Wrong.

mdadm --grow changes the offset, so:

The 5disk raid should have the original offset 
(presumably 128M, 262144 sectors)

The 6disk raid should have the new offset 
(where you found your already reshaped ext4 filesystem header)

Regards
Andreas Klauer
--
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



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux