How to recovery thin LV after mistaken deletion

jiakai1000

New Member
Sep 14, 2021
1
0
1
35
Hi,
I have two 8TB disks(sda, sdb), make up a RAID1 using lvconvert -m1 pve/data_tdata and pve/data_tmeta.
Yesterday I powered off my server and did some other things, when I powered on again, kernel printed some logs:
Code:
[Tue Sep 14 15:02:21 2021] device-mapper: raid: Loading target version 1.14.0
[Tue Sep 14 15:02:21 2021] device-mapper: raid: Failed to read superblock of device at position 0
[Tue Sep 14 15:02:21 2021] device-mapper: raid: Failed to read superblock of device at position 1
[Tue Sep 14 15:02:21 2021] md: pers->run() failed ...
[Tue Sep 14 15:02:21 2021] device-mapper: table: 253:6: raid: Failed to run raid array
[Tue Sep 14 15:02:21 2021] device-mapper: ioctl: error adding target to table
pvs command told me: /dev/sdb3 is 'unknown', so I think I should remove sdb.
next I forgot what I ran, but it told me I should remove missing devices first, and suggest me to run: vgreduce --removemissing, I did so, and failed again, suggest me to add a --force to vgreduce, I followed again.
because disk sda is good, so I think sda won't lost any data, but when I ran `vgreduce --removemissing --force pve`, it ran a long time, after about 20 minutes, I stopped it, I found I lost 7 thin LVs, both in sda and sdb.
Even I restored LVM backup with vgcfgrestore, lost LVs still cannot be found:
[Tue Sep 14 21:38:53 2021] device-mapper: table: 253:19: thin: Couldn't open thin internal device [Tue Sep 14 21:38:53 2021] device-mapper: ioctl: error adding target to table [Tue Sep 14 21:38:53 2021] device-mapper: table: 253:19: thin: Couldn't open thin internal device [Tue Sep 14 21:38:53 2021] device-mapper: ioctl: error adding target to table [Tue Sep 14 21:38:53 2021] device-mapper: table: 253:19: thin: Couldn't open thin internal device [Tue Sep 14 21:38:53 2021] device-mapper: ioctl: error adding target to table [Tue Sep 14 21:38:53 2021] device-mapper: table: 253:19: thin: Couldn't open thin internal device [Tue Sep 14 21:38:53 2021] device-mapper: ioctl: error adding target to table ...
Do I have a chance to get back my data? I will be crazy...
Thanks !
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!