please do "man vgcfgrestore"
I always had success restoring the vg configuration. this should help.
Please take a look at /etc/lvmconf/
you should run "vgcfgbackup" from time to time and then you will find old vg
configurations.
then you can restore lvm vg information with:
Example: restore vg information for volume group "vgDATA"
MYVG="vgDATA"
pvscan|grep $MYVG|awk -F'"' '{ print $2 }'|while read MYDEVICE
do
vgcfgrestore -f /etc/lvmconf/${MYVG}.conf.1.old -n $MYVG $MYDEVICE
done
also copy this older configurations to another server or use a backup tool
to keep this files save.
cu
Martin Lonkwitz
-----Urspr�ngliche Nachricht-----
Von: David Holt [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 15. Dezember 2003 22:59
An: [EMAIL PROTECTED]
Betreff: LVM Help
Yesterday I was trying to expand an existing LVM filesystem and it
appeared ok after I issued the resize2fs command but after I rebooted
the Linux instance the filesystem was mounted but it was not the correct
file system. It appears LVM got the expanded file system confused with
another file system. In trying to correct this problem I think I
corrupted another file system. When I issue a vgdisplay command I get
the following:
vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent;
please run vgscan
I ran vgscan but it didn't help. I found what appeared to be backups
of volume group information in /etc/lvmconf directory. Is there a way
to recover the LVM to a previous state or recover the volume group info?
We are SLES 7 with the 2.4.7 kernel.