Lost LVM?

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
Post Reply
Message
Author
MattD
Posts: 1
Joined: 25 Aug 2020, 18:38

Lost LVM?

#1 Post by MattD »

Hello

I have a server in a data centre that suffered a kernal panic which then prevented the OS from booting (according to the support staff in the DC). The DC support staff also suggested they could not see the partitions.
Unfortunately I have a file that I need to recover from the server.
To help me the DC have attached a KVM and the SystemRescueCD ISO so I can now access the server via ssh / VCN. I've then run TestDisk.

I can see that the partitions with lsblk:

Code: Select all

[root@sysresccd /]# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0    7:0    0 632.2M  1 loop /run/archiso/sfs/airootfs
sda      8:0    0   1.8T  0 disk 
├─sda1   8:1    0   200M  0 part 
├─sda2   8:2    0     8G  0 part 
└─sda3   8:3    0   1.8T  0 part 
sr0     11:0    1   693M  0 rom  /run/archiso/bootmnt
But comparing that with my other similar server I can see that that has an LVM on sda3:

Code: Select all

lsblk
NAME                        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                           8:0    0  1.8T  0 disk 
├─sda1                        8:1    0  200M  0 part /boot/efi
├─sda2                        8:2    0  500M  0 part /boot
└─sda3                        8:3    0  1.8T  0 part 
  ├─VolGroup-lv_root (dm-0) 253:0    0   50G  0 lvm  /
  ├─VolGroup-lv_swap (dm-1) 253:1    0  7.9G  0 lvm  [SWAP]
  └─VolGroup-lv_home (dm-2) 253:2    0  1.8T  0 lvm  /home
[root@gifted-hypatia /]#
Running TestDisk it seems to see the partitions :

Code: Select all

Partition table type (auto): Intel
Disk /dev/sda - 2000 GB / 1863 GiB - ST2000DM001-1ER164
Partition table type: Intel

Analyse Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63
Geometry from i386 MBR: head=255 sector=63
Current partition structure:
 1 * Linux                    0  32 33    25 159  6     409600
 2 P Linux Swap              25 159  7  1069 244  7   16777216
 3 P Linux                 1069 244  8 243201  78 13 3889840128
But there are no files under P Linux other than lost+found.

I've been running around in circles for a day or so could someone help me understand what I would need to do to recover the LVM under sda3?

Thanks
Matt

Sponsored links

Post Reply