Recover Partition Table - vgdisplay/vgscan fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@paxton:/proc/lvm># vgdisplay datavg
vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run vgscan
<root@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 groups
 
 
 
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
 
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux