recover lvm metadata

Make sure you backups and make sure uuid is correct:

ls -l /etc/lvm/archive/
cat less /etc/lvm/archive/vg_test.vg
physical_volumes {
pv0 {
id = “gT7Kw0-bVoF-8reX-QVYs-9bvh-PMdo-bU5Vzo”

pvcreate –uuid “gT7Kw0-bVoF-8reX-QVYs-9bvh-PMdo-bU5Vzo” \
–restorefile /etc/lvm/archive/vg_test.vg

vgcfgrestore -f /etc/lvm/archive/vg_test.vg vg_test
vgchange -ay vg_test

Leave a Reply

Your email address will not be published. Required fields are marked *