Re: Accidentally resized array to 9

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

 



On 09/29/2017 03:50 PM, Roman Mamedov wrote:
> On Fri, 29 Sep 2017 10:53:57 -0400
> Eli Ben-Shoshan <eli@xxxxxxxxxxxxxx> wrote:
> 
>> I am just hoping that there might be a way that I can get the 
>> data back.
> 
> In theory what you did was cut the array size to only use 9 KB of each device,
> then reshaped THAT tiny array from 8 to 9 devices, with the rest left
> completely untouched.
> 
> So you could try removing the "new" disk, then try --create --assume-clean
> with old devices only and --raid-devices=8.
> 
> But I'm not sure how you would get the device order right.
> 
> Ideally what you can hope for, is you would get the bulk of array data intact,
> only with the first 9 KB of each device *(8-2), so about the first 54 KB of
> data on the md array, corrupted and unusable. It is likely the LVM and
> filesystem tools will not recognize anything due to that, so you will need to
> use some data recovery software to look for and save the data.
> 

I agree with Roman.  Most of your array should be still on the 8-disk
layout.  But you were mounted and had writing processes immediately
after the broken grow, so there's probably other corruption due to
writes on the 9-disk pattern in the 8 disks.

Roman's suggestion is the best plan, but even after restoring LVM,
expect breakage all over.  Use overlays.

Phil
--
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