Page 1 of 1

Trying to recover 20TB LVM2 on Linux md

Posted: 28 Aug 2012, 16:55
by rickatnight11
I've had an issue with a corrupted checksum on a single drive in my raid-6 md after every reboot. Following some instructions online, I stopped the array and recreated it with the --assume-clean option. The md created fine (although after reboot the drive still demonstrates a corrupted checksum, so I think the drive is borked), but the partition table on it is gone. I'm really hoping my data isn't gone.

When I run testdisk, it does immediately find an LVM2 partition in Quick and Deep scans, and while it and the md are both 20TB/18TiB, it says the hard-drive is too small:

Code: Select all

Disk /dev/md0 - 20 TB / 18 TiB - CHS 4883782460 2 4                                                                                   
                                                                                                                                      
The harddisk (20 TB / 18 TiB) seems too small! (< 23 TB / 21 TiB)                                                                     
Check the harddisk size: HD jumpers settings, BIOS detection...                                                                       
                                                                                                                                      
The following partitions can't be recovered:                                                                                          
     Partition               Start        End    Size in sectors                                                                      
  Linux LVM              512   0  1 588815615   1  4 39070259200
The fact that it can see the partition gives me hope that my data isn't gone, but I'm not sure what to do at this point.

Re: Trying to recover 20TB LVM2 on Linux md

Posted: 01 Sep 2012, 08:01
by cgrenier
There is no partition table on LVM2.
What is the results of
- pvdisplay
- vgdisplay
- lvdisplay