[CentOS] LVM recovery after pvcreate

przemolicc at poczta.fm

przemolicc at poczta.fm
Mon Dec 16 15:22:03 UTC 2013


Hi all,

I had centos 5.9 installed with one of its volumes (non-root) on LVM:
...
/dev/vgapps/lvapps      /opt/apps               ext3    defaults        1 2
...
Then installed centos 6.4 on this servers but without exporting this volume (I wanted to reuse it).
After that instead importing it I did:
# pvcreate /dev/sddlmac
# vgcreate vgapps /dev/sddlmac

And then realised that I should have import it instead of pvcreate/vgcreate.
Can I restore previous state and data from this volume ?
I have files from /etc/lvm/backup (taken before reinstallation) with its old definition.

Regards
P.



More information about the CentOS mailing list