Skip to contentSkip to conversation

Erroneously formatted PV; 'vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group'...

linux-lvm Tim-Patrick Märk 1 participant 1 message Feb 11, 2003

lore
Share & tools
lore
#0 lore raw

Heinz,

thank you very much!

I built a kernel with LVM2/ device-mapper (and XFS) on my emergency system and ran 'vgscan' and 'vgchange --partial -a y' as you said. The LVs were mounted read-only, so I copied the root-LV to another partition (ext2), booted it and restored the old LVM metadata using 'vgcfgrestore'.
Some "minor" problems (related to properly patching the kernel etc.) occured during this process, but all in all it worked well and now I'm very happy to have my data back :)!

Tank you again!

Quoted 8 lines

Tim-Patrick,

with your root on LV setup you either need:

an emergency boot media with LVM1 on it _and_ /etc/lvmconf/* backup in order to restore you LVM metadata using vgcfgrestore presuming you

setup

Quoted 1 line

your partitions exactly the way they were before ("vgscan;vgchange

-ay" a=

Quoted 18 lines

fter
metadata restore)

- or -

an emergency boot media with LVM2/device-mapper on it to run "vgscan ; vgchange --partial -a y" in order to access your partioal VG without the gone partition

- or -

that LVM2 boot media to restore the metadata.

- or -

to attach your HDDs to another LVM equipped system to repair the volume group configuration

Quoted 8 lines

Regards,
Heinz -- The LVM Guy --

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

=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- =3D=

Quoted 1 line

-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D -=

Quoted 3 lines

=3D-=3D-

Heinz Mauelshagen Sistina Software

Inc.

Quoted 6 lines

Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200

                                                       FAX 924446

=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- =3D=

Quoted 1 line

-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D -=

Quoted 1 line

=3D-=3D-