[linux-lvm] Recover Partition Table - vgdisplay/vgscan fails

paul.stein at thomson.com paul.stein at thomson.com
Fri Sep 23 16:20:19 UTC 2005

I inadvertantly blew away the partition table on /dev/sdo that was in
use. While the system is still running and no errors have occured...yet,
I need
to get the partition table restored and  be able to vgdisplay the
datavg. Below is the sampling of error messages.
<root at paxton:/proc/lvm># vgdisplay datavg
vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please
run vgscan

<root at paxton:/proc/lvm># vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "rootvg"
vgscan -- found active volume group "localvg"
vgscan -- found active volume group "datavg"
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of
volume group "datavg" from physical volume(s)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume
Is it safe to clear VGDA using the "dd if=/dev/zero of=PhysicalVolume
bs=512 count=1"  shown in the pvcreate man pages and the come back and
recreate the VGDA  using pvcreate, or use pvcreate outright not using
the dd method? Or, is there a better method to get /dev/sdo back into
the datavg
group while recreating the partition table?
Paul Stein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20050923/ba42132a/attachment.htm>

More information about the linux-lvm mailing list