Hi@akhtar,
Using the command vgcfgrestore we can recover deleted LVM partitions. Linux keeps the backup copies of lvm configuration in the /etc/lvm/archive directory. You need to follow the below steps.
- First, find the backed-up configurations of Volume Group using the below commands.
$ vgcfgrestore --list < Volume-Group-Name >
$ vgcfgrestore --list vg1
- Now recover the LVM partition using vgcfgrestore and an archive file.
$ vgcfgrestore -f /etc/lvm/archive/<file-name> <Volume-Group-Name>
$ vgcfgrestore -f /etc/lvm/archive/vg1_00002-692643489.vg vg1
You will see the output like 'Restored volume group vg1'. Now we can mount lvm partition and check whether data is there or not.