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

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



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
 

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