0
0
  • Sumit Narval asked 1 year ago
  • last edited 1 year ago
  • You must to post comments
0
0

Using the command ‘vgcfgrestore‘ we can recover deleted LVM partitions. Linux keeps the backup copies of lvm configuration in the /etc/lvm/archive directory.

Step 1: First find the backed up configurations of Volume Group (vg1)

Syntax:

# vgcfgrestore –list < Volume-Group-Name >
# vgcfgrestore –list vg1
As you can see the example correct configuration are backed up , in my case “vg_00002-692643489.vg” is correct file through which I will recover my lvm partitions.

Step 2: Now recover the LVM partition using vgcfgrestore and archive file

Syntax:

# vgcfgrestore -f /etc/lvm/archive/<file-name> <Volume-Group-Name>
# vgcfgrestore -f /etc/lvm/archive/vg1_00002-692643489.vg vg1

Output would be : ‘Restored volume group vg1’

Now we can mount lvm partition and check whether data is there or not.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.