System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to restore LVM when reinstall a linux system using mondorescue

 
Md. Minhaz Khan
Super Advisor

How to restore LVM when reinstall a linux system using mondorescue

Dear Concern

In my Linux system I have two LV
1)/dev/vgtest/lvtest1
2)/dev/vgtest/lvtest2

But nuke-restore when i run "vgdisplay -v vgtest"
i can not see lv information.I have already use vgscan,pvscan and vgchange -ay vgtest but still i
have not found my previous lv. pls help me to solve this problem

Thanks
Minhaz
3 REPLIES
smatador
Honored Contributor

Re: How to restore LVM when reinstall a linux system using mondorescue

Hi,
It seems very strange, you have activate vgtest and you see nothing? Could you give the output of vgdisplay?
Do you have a file /etc/lvm/backup/vgtest?
Md. Minhaz Khan
Super Advisor

Re: How to restore LVM when reinstall a linux system using mondorescue

I have solve this problem by running
vgcfgrestore -vvy command.For details pls check the attached log.

Note: After re installation i have found UUID for PV(/dev/hda3...) was changed so i use
"pvscan -u" command to find current UUID for /dev/hda. Then modify the file vg0000#.vg under
/etc/lvm/archive directory.Then run vgcfgrestore command.

Thanks
Minhaz
Md. Minhaz Khan
Super Advisor

Re: How to restore LVM when reinstall a linux system using mondorescue

Everything is working well