[linux-lvm] made a big misstake
Michael Marxmeier
mike at msede.com
Wed Jul 19 04:19:25 UTC 2000
Andreas Dilger wrote:
> Erik writes:
> > Now the misstake, I did not run a vgreduce before I fdisk'ed the whole
> > disk (hdb). Now when I start up, vgscan cannot find any vg's.
>
> Was hdb1 the first PV created in the VG? The problem, I think, is that
> Linux LVM only keeps the VGDA on the first PV. AIX will keep a VGDA
> copy on all of the PVs, and even will keep 2 VGDAs on the first PV for
> backup, in case the first one is corrupt.
Actually, LVM should have a copy of the dscriptor area. It is kept in
the file system in the directory /etc/lvmconf which even has the nice
property that you can back it up. The VGDA is implecitely backed up by
most LVM commands.
You should be able to restore them with vgcfgrestore.
The vgcfgrestore syntax seems to sugest you can even restore it
to another physical volume (no tested, personally) which would
solve the actual problem nicely.
Hope this helps
Michael
--
Michael Marxmeier Marxmeier Software AG
E-Mail: mike at msede.com Besenbruchstrasse 9
Phone : +49 202 2431440 42285 Wuppertal, Germany
Fax : +49 202 2431420 http://www.msede.com/
More information about the linux-lvm
mailing list