Skip to contentSkip to conversation

vg recovery after PV failure

linux-lvm Eamonn Hamilton 2 participants 2 messages Apr 8, 2002 – Apr 10, 2002

lore
Share & tools
lore
#0 lore raw

Hi Folks.

I'm attempting to recover a VG on a friends system after one of the PVs started acting a bit odd. The VG appears to say that it has no PVs associated with it, and a vgscan only finds the second PV on the disk. A pvdisplay, however, show both physical volumes have what appears to be the correct information and extents.

I'm basically wondering how do I get these two physical volumes associated again, and is there any way to determine how they were put topgether, i.e. were they striped? Also, is there any way to get the information off the non-dodgy disk ( it's ext3, btw ).

Cheers,

Eamonn

#1 lore raw

Eamonn,

in case "a bit odd" means a HW flaw, you need to vgcfgrestore the LVM metadata back onto a sane device. You can even "vgcfgrestore -i" to a disk with different size, bacause you loose the data on the old flaky disk anyway (assuming it is completely inaccessable) :-(

If your friend had all LVs striped onto both PVs, data is lost anyway.

Hint: backups are your friends friends.

Quoted 28 lines · Eamonn Hamilton

Hi Folks.

I'm attempting to recover a VG on a friends system after one of the PVs started acting a bit odd. The VG appears to say that it has no PVs associated with it, and a vgscan only finds the second PV on the disk. A pvdisplay, however, show both physical volumes have what appears to be the correct information and extents.

I'm basically wondering how do I get these two physical volumes associated again, and is there any way to determine how they were put topgether, i.e. were they striped? Also, is there any way to get the information off the non-dodgy disk ( it's ext3, btw ).

Cheers,

Eamonn

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-