Help with recovery of an LVM Volume

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
walkitinkid
Posts: 1
Joined: 10 Feb 2018, 16:03

Help with recovery of an LVM Volume

#1 Post by walkitinkid »

I'm trying to recover and LVM Volume. Using test disk. The Volume is located at /dev/sdb
Gparted looks like this:
Image
Thing is, I'm not sure if the volume was formatted and now it's blank or if the LVM Volume is just damaged.
Any way to tell?

I'm trying to proceed in the safest way possible, ultimately I'd like to repair the LVM, but would settle for a file recovery.
So here's how far I've gone in testdisk...

Code: Select all

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

  TestDisk is free software, and
comes with ABSOLUTELY NO WARRANTY.

Select a media (use Arrow keys, then press Enter):
 Disk /dev/sda - 8000 GB / 7451 GiB - DELL PERC H330 Mini
>Disk /dev/sdb - 3839 GB / 3575 GiB - DELL PERC H330 Mini
 Disk /dev/sdc - 536 GB / 500 GiB - General UDisk
 Disk /dev/mapper/VG_XenStorage--48ad482d--31de--bfeb--dbba--2fab3fbe8892-MGT -
 Disk /dev/mapper/VG_XenStorage--48ad482d--31de--bfeb--dbba--2fab3fbe8892-VHD--0
 Disk /dev/mapper/VG_XenStorage--48ad482d--31de--bfeb--dbba--2fab3fbe8892-VHD--0
 Disk /dev/mapper/VG_XenStorage--48ad482d--31de--bfeb--dbba--2fab3fbe8892-VHD--0
 Disk /dev/mapper/VG_XenStorage--48ad482d--31de--bfeb--dbba--2fab3fbe8892-VHD--0
 Disk /dev/mapper/VG_XenStorage--48ad482d--31de--bfeb--dbba--2fab3fbe8892-VHD--1
 Disk /dev/mapper/VG_XenStorage--48ad482d--31de--bfeb--dbba--2fab3fbe8892-VHD--1
>[Previous]  [  Next  ]  [Proceed ]  [  Quit  ]

Note: Disk capacity must be correctly detected for a successful recovery.
If a disk listed above has incorrect size, check HD jumper settings, BIOS
detection, and install the latest OS patches and disk drivers.
Select my drive. Check. I dont see any other options so I think I did that right.

Code: Select all

estDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org


Disk /dev/sdb - 3839 GB / 3575 GiB - DELL PERC H330 Mini

Please select the partition table type, press Enter when done.
 [Intel  ] Intel/PC partition
>[EFI GPT] EFI GPT partition map (Mac i386, some x86_64...)
 [Humax  ] Humax partition table
 [Mac    ] Apple partition map
 [None   ] Non partitioned media
 [Sun    ] Sun Solaris partition
 [XBox   ] XBox partition
 [Return ] Return to disk selection



Hint: EFI GPT partition table type has been detected.
Note: Do NOT select 'None' for media with only a single partition. It's very
rare for a disk to be 'Non-partitioned'.
Detected EFI GPT, seems to make sense. I dont see any other options so I think I did that right.

Code: Select all

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org


Disk /dev/sdb - 3839 GB / 3575 GiB - DELL PERC H330 Mini
     CHS 466784 255 63 - sector size=512

>[ Analyse  ] Analyse current partition structure and search for lost partitions
 [ Advanced ] Filesystem Utils
 [ Geometry ] Change disk geometry
 [ Options  ] Modify options
 [ Quit     ] Return to disk selection







Note: Correct disk geometry is required for a successful recovery. 'Analyse'
process may give some warnings if it thinks the logical geometry is mismatched.


HERE! should I choose advanced? to do a partition recovery?

Code: Select all

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sdb - 3839 GB / 3575 GiB - CHS 466784 255 63
Current partition structure:
     Partition                  Start        End    Size in sectors

 1 P MS Data                     2048    8388641    8386594 [root-dxovkaup]
No FAT, NTFS, ext2, JFS, Reiser, cramfs or XFS marker
 2 P MS Data                  8390656   16777249    8386594
 2 P MS Data                  8390656   16777249    8386594
No LVM or LVM2 structure
 3 P Linux LVM               16779264 7498891230 7482111967 [Linux LVM]
 3 P Linux LVM               16779264 7498891230 7482111967 [Linux LVM]






                P=Primary  D=Deleted
>[Quick Search]  [ Backup ]
                            Try to locate partition
It seems this option is for scanning the drive and doing a file recovery...

Code: Select all

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sdb - 3839 GB / 3575 GiB - CHS 466784 255 63
     Partition               Start        End    Size in sectors
>P MS Data                     2048    8388639    8386592 [root-dxovkaup]
 D MS Data                 28244664  101436087   73191424
 D MS Data                 66893545  140084968   73191424
 D MS Data                140084968  213276391   73191424
 P Mac HFS                406206199  431375609   25169411 [D^B]
 P Mac HFS                472655021  497824431   25169411 [D^_]
 P Mac HFS                540520729  565690139   25169411 [D^\]
 D MS Data                606316969  679508392   73191424
 D MS Data                679508392  752699815   73191424
 D MS Data                758992961  832184384   73191424
 D MS Data                832184384  905375807   73191424
 P Mac HFS               1077146704 1086321806    9175103
Structure: Ok.  Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
                P=Primary  D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
     Enter: to continue
ext3 blocksize=4096 Large_file Sparse_SB, 4293 MB / 4095 MiB
or maybe not? This disk has about 30 or forty listings like this, I dont see anything referred to as linux LVM.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Help with recovery of an LVM Volume

#2 Post by cgrenier »

Are you able to list files from ext3 partitions found by testdisk ?
It's difficult to recover LVM data, an example is listed at https://www.centos.org/docs/5/html/Clus ... cover.html

Locked